本文整理汇总了PHP中zn_get_link_targets函数的典型用法代码示例。如果您正苦于以下问题:PHP zn_get_link_targets函数的具体用法?PHP zn_get_link_targets怎么用?PHP zn_get_link_targets使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zn_get_link_targets函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: options
/**
* This method is used to retrieve the configurable options of the element.
* @return array The list of options that compose the element and then passed as the argument for the render() function
*/
function options()
{
$uid = $this->data['uid'];
$extra_options = array("name" => __("Slides", 'zn_framework'), "description" => __("Here you can create your Circular Content Slides.", 'zn_framework'), "id" => "single_circ1", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "ww_slide_title", "subelements" => array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Slide image", 'zn_framework'), "description" => __("Select an image for this Slide", 'zn_framework'), "id" => "ww_slide_image", "std" => "", "type" => "media"), array("name" => __("Slide title", 'zn_framework'), "description" => __("This title will appear over the image", 'zn_framework'), "id" => "ww_slide_title", "std" => "", "type" => "text"), array("name" => __("Slide description", 'zn_framework'), "description" => __("This description will appear under the title", 'zn_framework'), "id" => "ww_slide_desc", "std" => "", "type" => "textarea"), array("name" => __("Slide bottom title", 'zn_framework'), "description" => __("This title will appear on the bottom left of the slide", 'zn_framework'), "id" => "ww_slide_bottom_title", "std" => "", "type" => "text"), array("name" => __("Slide more text", 'zn_framework'), "description" => __("Please enter a text that you want to use as read more text", 'zn_framework'), "id" => "ww_slide_read_text", "std" => "", "type" => "text"))), 'content' => array('title' => 'Content panel options', 'options' => array(array("name" => __("Slide content title", 'zn_framework'), "description" => __("This title will appear after someone will press the read more text button, above the content.", 'zn_framework'), "id" => "ww_slide_content_title", "std" => "", "type" => "text"), array("name" => __("Slide content text", 'zn_framework'), "description" => __("This text will appear after someone will press the read more button. Please note that you can use HTML in this textarea.", 'zn_framework'), "id" => "ww_slide_desc_full", "std" => "", "type" => "visual_editor", 'class' => 'zn_full'), array("name" => __("Slide read more text", 'zn_framework'), "description" => __("Please enter a text that you want to use as read more text that will appear bellow the content", 'zn_framework'), "id" => "ww_slide_read_text_content", "std" => "", "type" => "text"), array("name" => __("Content read more link", 'zn_framework'), "description" => __("Here you can add a link bellow the content of your slide", 'zn_framework'), "id" => "ww_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets())))));
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Slide height", 'zn_framework'), "description" => __("Please enter a height number in pixels ( for example : 450 )", 'zn_framework'), "id" => "ww_slider_height", "std" => "450", "type" => "text"), array("name" => __("Autoplay carousel?", 'zn_framework'), "description" => __("Does the carousel autoplay itself?", 'zn_framework'), "id" => "ww_slider_autoplay", "std" => "1", "value" => "1", "type" => "toggle2"), array("name" => __("Timout duration", 'zn_framework'), "description" => __("The amount of milliseconds the carousel will pause", 'zn_framework'), "id" => "ww_slider_timeout", "std" => "9000", "type" => "text"))), 'items' => array('title' => 'Carousel Items', 'options' => array($extra_options)), 'background' => array('title' => 'Background & Styles Options', 'options' => array(array("name" => __("Element Background Style", 'zn_framework'), "description" => __("Select the background style you want to use for this slider. Please note that styles can be created from the unlimited headers options in the theme admin's page.", 'zn_framework'), "id" => "ww_header_style", "std" => "", "type" => "select", "options" => WpkZn::getThemeHeaders(true), "class" => ""), array("name" => __("Background Source Type", 'zn_framework'), "description" => __("Please select the source type of the background.", 'zn_framework'), "id" => "source_type", "std" => "", "type" => "select", "options" => array('' => __("None (Will just rely on the background color (if any) )", 'zn_framework'), 'image' => __("Image", 'zn_framework'), 'video_self' => __("Self Hosted Video", 'zn_framework'), 'video_youtube' => __("Youtube Video", 'zn_framework'))), array('id' => 'background_image', 'name' => 'Background image', 'description' => 'Please choose a background image for this section.', 'type' => 'background', 'options' => array("repeat" => true, "position" => true, "attachment" => true, "size" => true), 'class' => 'zn_full', 'dependency' => array('element' => 'source_type', 'value' => array('image'))), array("name" => __("Slide Video Youtube ID", 'zn_framework'), "description" => __("Add an Youtube ID", 'zn_framework'), "id" => "source_vd_yt", "std" => "", "type" => "text", "placeholder" => "ex: tR-5AZF9zPI", "dependency" => array('element' => 'source_type', 'value' => array('video_youtube'))), array('id' => 'source_vd_self_mp4', 'name' => 'Mp4 video source', 'description' => 'Add the MP4 video source for your local video', 'type' => 'media_upload', 'std' => '', 'data' => array('type' => 'video/mp4', 'button_title' => 'Add / Change mp4 video'), "dependency" => array('element' => 'source_type', 'value' => array('video_self'))), array('id' => 'source_vd_self_ogg', 'name' => 'Ogg/Ogv video source', 'description' => 'Add the OGG video source for your local video', 'type' => 'media_upload', 'std' => '', 'data' => array('type' => 'video/ogg', 'button_title' => 'Add / Change ogg video'), "dependency" => array('element' => 'source_type', 'value' => array('video_self'))), array('id' => 'source_vd_self_webm', 'name' => 'Webm video source', 'description' => 'Add the WEBM video source for your local video', 'type' => 'media_upload', 'std' => '', 'data' => array('type' => 'video/webm', 'button_title' => 'Add / Change webm video'), "dependency" => array('element' => 'source_type', 'value' => array('video_self'))), array('id' => 'source_vd_vp', 'name' => 'Video poster', 'description' => 'Using this option you can add your desired video poster that will be shown on unsuported devices.', 'type' => 'media', 'std' => '', 'class' => 'zn_full', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube'))), array('id' => 'source_vd_autoplay', 'name' => 'Autoplay video?', 'description' => 'Enable autoplay for video?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'source_vd_loop', 'name' => 'Loop video?', 'description' => 'Enable looping the video?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'source_vd_muted', 'name' => 'Start mute?', 'description' => 'Start the video with muted audio?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'source_vd_controls', 'name' => 'Video controls', 'description' => 'Enable video controls?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'source_vd_controls_pos', 'name' => 'Video controls position', 'description' => 'Video controls position in the slide', 'type' => 'select', 'std' => 'bottom-right', "dependency" => array('element' => 'source_type', 'value' => array('video_self', 'video_youtube')), "options" => array("top-right" => __("top-right", 'zn_framework'), "top-left" => __("top-left", 'zn_framework'), "top-center" => __("top-center", 'zn_framework'), "bottom-right" => __("bottom-right", 'zn_framework'), "bottom-left" => __("bottom-left", 'zn_framework'), "bottom-center" => __("bottom-center", 'zn_framework'), "middle-right" => __("middle-right", 'zn_framework'), "middle-left" => __("middle-left", 'zn_framework'), "middle-center" => __("middle-center", 'zn_framework')), "class" => "zn_input_sm"), array('id' => 'source_overlay', 'name' => 'Background colored overlay', 'description' => 'Add slide color overlay over the image or video to darken or enlight?', 'type' => 'select', 'std' => '0', "options" => array("1" => __("Yes (Normal color)", 'zn_framework'), "2" => __("Yes (Horizontal gradient)", 'zn_framework'), "3" => __("Yes (Vertical gradient)", 'zn_framework'), "0" => __("No", 'zn_framework'))), array('id' => 'source_overlay_color', 'name' => 'Overlay background color', 'description' => 'Pick a color', 'type' => 'colorpicker', 'std' => '#353535', "dependency" => array('element' => 'source_overlay', 'value' => array('1', '2', '3'))), array('id' => 'source_overlay_opacity', 'name' => 'Overlay\'s opacity.', 'description' => 'Overlay background colors opacity level.', 'type' => 'slider', 'std' => '30', "helpers" => array("step" => "5", "min" => "0", "max" => "100"), "dependency" => array('element' => 'source_overlay', 'value' => array('1', '2', '3'))), array('id' => 'source_overlay_color_gradient', 'name' => 'Overlay Gradient 2nd Bg. Color', 'description' => 'Pick a color', 'type' => 'colorpicker', 'std' => '#353535', "dependency" => array('element' => 'source_overlay', 'value' => array('2', '3'))), array('id' => 'source_overlay_color_gradient_opac', 'name' => 'Gradient Overlay\'s 2nd Opacity.', 'description' => 'Overlay gradient 2nd background color opacity level.', 'type' => 'slider', 'std' => '30', "helpers" => array("step" => "5", "min" => "0", "max" => "100"), "dependency" => array('element' => 'source_overlay', 'value' => array('2', '3'))), array("name" => __("Bottom masks override", 'zn_framework'), "description" => __("The new masks are svg based, vectorial and color adapted. <br> <strong>Disclaimer:</strong> may now work perfectly for all elements!", 'zn_framework'), "id" => "hm_header_bmasks", "std" => "none", "type" => "select", "options" => array('none' => __('None, just rely on Background style.', 'zn_framework'), 'shadow' => __('Shadow Up', 'zn_framework'), 'shadow_ud' => __('Shadow Up and down', 'zn_framework'), 'mask1' => __('Raster Mask 1 (Old, not recommended)', 'zn_framework'), 'mask2' => __('Raster Mask 2 (Old, not recommended)', 'zn_framework'), 'mask3' => __('Vector Mask 3 CENTER (New! From v4.0)', 'zn_framework'), 'mask3 mask3l' => __('Vector Mask 3 LEFT (New! From v4.0)', 'zn_framework'), 'mask3 mask3r' => __('Vector Mask 3 RIGHT (New! From v4.0)', 'zn_framework'), 'mask4' => __('Vector Mask 4 CENTER (New! From v4.0)', 'zn_framework'), 'mask4 mask4l' => __('Vector Mask 4 LEFT (New! From v4.0)', 'zn_framework'), 'mask4 mask4r' => __('Vector Mask 4 RIGHT (New! From v4.0)', 'zn_framework'), 'mask5' => __('Vector Mask 5 (New! From v4.0)', 'zn_framework'), 'mask6' => __('Vector Mask 6 (New! From v4.0)', 'zn_framework'))))), 'other' => array('title' => 'Other Options', 'options' => array(array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))), 'help' => znpb_get_helptab(array('video' => 'http://support.hogash.com/kallyas-videos/#2Q_KC-SrYL4', 'docs' => 'http://support.hogash.com/documentation/circular-content-style-1/', 'copy' => $uid, 'general' => true)));
return $options;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:11,代码来源:TH_CircularContentStyle1.php
示例2: options
function options()
{
$zoom = array();
for ($i = 1; $i < 24; $i++) {
$zoom[$i] = $i;
}
$icon_sizes = array('20' => '20 x 20', '30' => '30 x 30', '40' => '40 x 40', '50' => '50 x 50', '60' => '60 x 60', '70' => '70 x 70', '80' => '80 x 80');
$mapstyleurl = 'http://snazzymaps.com';
$latlong_url = esc_url('http://www.latlong.net/');
$itouchmap_url = esc_url('http://itouchmap.com/latlong.html');
$uid = $this->data['uid'];
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array('id' => 'single_multiple_maps', 'name' => 'Locations', 'description' => 'Here you can add your map locations.', 'type' => 'group', 'sortable' => true, 'element_title' => 'Map Location', 'subelements' => array(array("name" => "Marker Latitude", "description" => 'Please enter the latitude value for your location. Here\'s 2 links where you can get the coordinates <a href="' . $latlong_url . '" target="_blank">LatLong.net</a> or <a href="' . $itouchmap_url . '" target="_blank">iTouchMap.com</a>.', "id" => "sc_map_latitude", "std" => "41.447390", "type" => "text"), array("name" => "Marker Longitude", "description" => 'Please enter the longitude value for your location. Here\'s 2 links where you can get the coordinates <a href="' . $latlong_url . '" target="_blank">LatLong.net</a> or <a href="' . $itouchmap_url . '" target="_blank">iTouchMap.com</a>.', "id" => "sc_map_longitude", "std" => "-72.843868", "type" => "text"), array("name" => "Marker tooltip", "description" => "Add a text that will appear when the user clicks on the marker.", "id" => "tooltip", "type" => "textarea"), array("name" => "Marker location icon", "description" => "Select an icon that will appear as your current location. The default icon will be used if this is left blank.", "id" => "sc_map_icon", "std" => "", 'class' => 'zn_full', "type" => "media"), array("name" => "Marker animation", "description" => "Select an animation that the icon will use.", "id" => "sc_map_icon_animation", "std" => "", "type" => "select", "options" => array("" => "None", "DROP" => "Drop", "BOUNCE" => "Bounce")), array("name" => "Icon size", "description" => "Select the size of the marker icon.", "id" => "icon_size", "type" => "select", "options" => $icon_sizes))), array("name" => "Zoom level", "description" => "Select the start zoom level you want to use for this map ( default is 14 )", "id" => "sc_map_zoom", "std" => "14", "type" => "select", "options" => $zoom, "class" => ""), array("name" => "Map Type", "description" => "Select the desired map type you want to use.", "id" => "sc_map_type", "std" => "roadmap", "type" => "select", "options" => array("ROADMAP" => "Roadmap", "SATELLITE" => "Satellite", "TERRAIN" => "Terrain", "HYBRID" => "Hybrid"), "class" => ""), array("name" => "Add directions box", "description" => "Select if you want to add a textbox in which the user can enter a departure location and get directions to the office location (first one if there are more than one).", "id" => "sc_map_directions", "std" => 'yes', "type" => "toggle2", "value" => "yes"), array("name" => "Directions box text", "description" => "Please enter the direction box text you want to use.", "id" => "sc_map_directions_text", "std" => 'Visit us from...', "type" => "text", 'dependency' => array('element' => 'sc_map_directions', 'value' => array('yes'))), array("name" => "Directions box position", "description" => "Please select the direction box's position.", "id" => "sc_map_directions_pos", "std" => 'top-left', "type" => "select", "options" => array("top-left" => "Top Left", "middle-left" => "Middle Left", "bottom-left" => "Bottom Left", "top-right" => "Top Right", "middle-right" => "Middle Right", "bottom-right" => "Bottom Right", "top-center" => "Top Center", "bottom-center" => "Bottom Center"), 'dependency' => array('element' => 'sc_map_directions', 'value' => array('yes'))), array('id' => 'show_overview', 'name' => 'Show overview map', 'description' => 'Select if you wish to add the overview map option', 'type' => 'toggle2', 'std' => '', 'value' => 'yes'), array('id' => 'show_streetview', 'name' => 'Show street view', 'description' => 'Select if you wish to add the street view option', 'type' => 'toggle2', 'std' => '', 'value' => 'yes'), array('id' => 'show_maptype', 'name' => 'Show map type', 'description' => 'Select if you wish to add the map type option', 'type' => 'toggle2', 'std' => '', 'value' => 'yes'), array("name" => __("Info bubble type", 'zn_framework'), "description" => __("Please select the info type", 'zn_framework'), "id" => "ww_mapinfo_type", "std" => "infobox", "type" => "select", "options" => array('infobox' => __("Info Box", 'zn_framework'), 'infopanel' => __("Info Panel", 'zn_framework'))), array("name" => __("Button Main Text", 'zn_framework'), "description" => __("Please enter a main text for this button", 'zn_framework'), "id" => "ww_slide_m_button", "std" => "", "type" => "text", "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infobox'))), array("name" => __("Button Link Text", 'zn_framework'), "description" => __("Please enter a text that will appear on the right side of the button", 'zn_framework'), "id" => "ww_slide_l_text", "std" => "", "type" => "text", "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infobox'))), array("name" => __("Button link", 'zn_framework'), "description" => __("Please enter a link that will appear on the right side of the button", 'zn_framework'), "id" => "ww_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infobox'))), array("name" => __("Panel Image", 'zn_framework'), "description" => __("Display an image into the info panel.", 'zn_framework'), "id" => "sc_map_panel_img", "std" => "", "type" => "media", "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infopanel'))), array("name" => __("Panel Title", 'zn_framework'), "description" => __("Title in panel.", 'zn_framework'), "id" => "sc_map_panel_title", "std" => "", "type" => "text", "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infopanel'))), array("name" => __("Panel Content", 'zn_framework'), "description" => __("Content in panel.", 'zn_framework'), "id" => "sc_map_panel_text", "std" => "", "type" => "visual_editor", 'class' => 'zn_full', "dependency" => array('element' => 'ww_mapinfo_type', 'value' => array('infopanel'))))), 'styling' => array('title' => 'Styling options', 'options' => array(array("name" => __("Background Style", 'zn_framework'), "description" => __("Select the background style you want to use. Please note that styles can be created\n\t from the unlimited headers options in the theme admin's page.", 'zn_framework'), "id" => "ww_header_style", "std" => "", "type" => "select", "options" => WpkZn::getThemeHeaders(true), "class" => ""), array("name" => __("Bottom masks override", 'zn_framework'), "description" => __("The new masks are svg based, vectorial and color adapted.", 'zn_framework'), "id" => "hm_header_bmasks", "std" => "none", "type" => "select", "options" => array('none' => __('None, just rely on Background style.', 'zn_framework'), 'shadow' => __('Shadow Up', 'zn_framework'), 'shadow_ud' => __('Shadow Up and down', 'zn_framework'), 'mask1' => __('Raster Mask 1 (Old, not recommended)', 'zn_framework'), 'mask2' => __('Raster Mask 2 (Old, not recommended)', 'zn_framework'), 'mask3' => __('Vector Mask 3 CENTER (New! From v4.0)', 'zn_framework'), 'mask3 mask3l' => __('Vector Mask 3 LEFT (New! From v4.0)', 'zn_framework'), 'mask3 mask3r' => __('Vector Mask 3 RIGHT (New! From v4.0)', 'zn_framework'), 'mask4' => __('Vector Mask 4 CENTER (New! From v4.0)', 'zn_framework'), 'mask4 mask4l' => __('Vector Mask 4 LEFT (New! From v4.0)', 'zn_framework'), 'mask4 mask4r' => __('Vector Mask 4 RIGHT (New! From v4.0)', 'zn_framework'), 'mask5' => __('Vector Mask 5 (New! From v4.0)', 'zn_framework'), 'mask6' => __('Vector Mask 6 (New! From v4.0)', 'zn_framework'))), array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "sc_fullscreen", "std" => "no", "type" => "select", "options" => array('yes' => __("Yes", 'zn_framework'), 'no' => __("No", 'zn_framework'))), array("name" => "Map Height", "description" => "Please select value in pixels for the map height.", "id" => "sc_map_height", "std" => "600", "type" => "slider", 'class' => 'zn_full', 'helpers' => array('min' => '200', 'max' => '1080', 'step' => '1'), "dependency" => array('element' => 'sc_fullscreen', 'value' => array('no'))), array('id' => 'use_custom_style', 'name' => 'Map custom style', 'description' => 'Use a custom map style. You can get custom styles from <a href="' . $mapstyleurl . '" target="_blank">' . $mapstyleurl . '</a>.', 'type' => 'toggle2', 'std' => '', 'value' => 'yes'), array('id' => 'custom_style', 'name' => 'Normal map style', 'description' => 'Paste your custom style here (Javascript style array). You can get custom styles from <a href="' . $mapstyleurl . '" target="_blank">' . $mapstyleurl . '</a>.', 'type' => 'textarea', 'std' => '', 'dependency' => array('element' => 'use_custom_style', 'value' => array('yes'))), array('id' => 'custom_style_active', 'name' => 'Active map style (when a popup is visible)', 'description' => 'Paste your custom style here (Javascript style array). You can get custom styles from <a href="' . $mapstyleurl . '" target="_blank">' . $mapstyleurl . '</a>.', 'type' => 'textarea', 'std' => '', 'dependency' => array('element' => 'use_custom_style', 'value' => array('yes'))))), 'misc' => array('title' => 'Miscellaneous', 'options' => array(array("name" => "Custom center point", "description" => "You might want to have the center point of the map onto the a side. For example if you enable the info-panel, it might overlap a marker from the map. Therefore you can custom center the map to show all markers.", "id" => "sc_ccenter", "std" => "", "value" => "1", "type" => "toggle2"), array("name" => "Marker Latitude", "description" => 'Please enter the latitude value for your location. Here\'s 2 links where you can get the coordinates <a href="' . $latlong_url . '" target="_blank">LatLong.net</a> or <a href="' . $itouchmap_url . '" target="_blank">iTouchMap.com</a>.', "id" => "sc_cc_latitude", "std" => "", "placeholder" => 'eg: 41.447390', "type" => "text", "dependency" => array('element' => 'sc_ccenter', 'value' => array('1'))), array("name" => "Marker Longitude", "description" => 'Please enter the longitude value for your location. Here\'s 2 links where you can get the coordinates <a href="' . $latlong_url . '" target="_blank">LatLong.net</a> or <a href="' . $itouchmap_url . '" target="_blank">iTouchMap.com</a>.', "id" => "sc_cc_longitude", "std" => "", "placeholder" => 'eg: -72.843868', "type" => "text", "dependency" => array('element' => 'sc_ccenter', 'value' => array('1'))), array("name" => "Allow Mousewheel", "description" => "Select if you want to allow map zooming using the mouse scroll (may interfere with page scroll).", "id" => "sc_map_zooming_mousewheel", "std" => "", "type" => "toggle2", "value" => "yes"), array("name" => "Map localization", "description" => "Force the map localization to a specific language", "id" => "sc_map_localization", "std" => "", "type" => "select", "options" => array('' => 'Use browser language', 'ar' => 'ARABIC', 'eu' => 'BASQUE', 'bg' => 'BULGARIAN', 'bn' => 'BENGALI', 'ca' => 'CATALAN', 'cs' => 'CZECH', 'da' => 'DANISH', 'de' => 'GERMAN', 'el' => 'GREEK', 'en' => 'ENGLISH', 'en-AU' => 'ENGLISH (AUSTRALIAN)', 'en-GB' => 'ENGLISH (GREAT BRITAIN)', 'es' => 'SPANISH', 'eu' => 'BASQUE', 'fa' => 'FARSI', 'fi' => 'FINNISH', 'fil' => 'FILIPINO', 'fr' => 'FRENCH', 'gl' => 'GALICIAN', 'gu' => 'GUJARATI', 'hi' => 'HINDI', 'hr' => 'CROATIAN', 'hu' => 'HUNGARIAN', 'id' => 'INDONESIAN', 'it' => 'ITALIAN', 'iw' => 'HEBREW', 'ja' => 'JAPANESE', 'kn' => 'KANNADA', 'ko' => 'KOREAN', 'lt' => 'LITHUANIAN', 'lv' => 'LATVIAN', 'ml' => 'MALAYALAM', 'mr' => 'MARATHI', 'nl' => 'DUTCH', 'no' => 'NORWEGIAN', 'pl' => 'POLISH', 'pt' => 'PORTUGUESE', 'pt-BR' => 'PORTUGUESE (BRAZIL)', 'pt-PT' => 'PORTUGUESE (PORTUGAL)', 'ro' => 'ROMANIAN', 'ru' => 'RUSSIAN', 'sk' => 'SLOVAK', 'sl' => 'SLOVENIAN', 'sr' => 'SERBIAN', 'sv' => 'SWEDISH', 'tl' => 'TAGALOG', 'ta' => 'TAMIL', 'te' => 'TELUGU', 'th' => 'THAI', 'tr' => 'TURKISH', 'uk' => 'UKRAINIAN', 'vi' => 'VIETNAMESE', 'zh-CN' => 'CHINESE (SIMPLIFIED)', 'zh-TW' => 'CHINESE (TRADITIONAL)'), "class" => ""), array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))), 'help' => znpb_get_helptab(array('video' => 'http://support.hogash.com/kallyas-videos/#qtw5ShCYcNY', 'docs' => 'http://support.hogash.com/documentation/google-map/', 'copy' => $uid, 'general' => true)));
return $options;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:14,代码来源:google_map.php
示例3: options
/**
* This method is used to retrieve the configurable options of the element.
* @return array The list of options that compose the element and then passed as the argument for the render() function
*/
function options()
{
$extra_options = array("name" => __("Steps", 'zn_framework'), "description" => __("Here you can create your desired steps.", 'zn_framework'), "id" => "steps_single2", "std" => "", "type" => "group", "add_text" => __("Step", 'zn_framework'), "remove_text" => __("Step", 'zn_framework'), "group_sortable" => true, "element_title" => "stp_single_title", "subelements" => array(array("name" => __("Step Title", 'zn_framework'), "description" => __("Please enter a title for this step.", 'zn_framework'), "id" => "stp_single_title", "std" => "", "type" => "text"), array("name" => __("Step content", 'zn_framework'), "description" => __("Please enter a content for this step.", 'zn_framework'), "id" => "stp_single_desc", "std" => "", "type" => "textarea"), array("name" => __("Box Link", 'zn_framework'), "description" => __("Please choose the link you want to use for this box.", 'zn_framework'), "id" => "stp_single_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Use alternative style?", 'zn_framework'), "description" => __("Select yes if you want your box to use a different background color and display an OK\n\t\t\t\t\t\t\t\ticon on the left", 'zn_framework'), "id" => "stp_single_ok", "type" => "select", "std" => "no", "options" => array('yes' => __('Yes', 'zn_framework'), 'no' => __('No', 'zn_framework')))));
$uid = $this->data['uid'];
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Title", 'zn_framework'), "description" => __("Please enter a title that will appear on over the boxes", 'zn_framework'), "id" => "stp_title", "std" => "", "type" => "text"), array('id' => 'element_scheme', 'name' => 'Element Color Scheme', 'description' => 'Select the color scheme of this element', 'type' => 'select', 'std' => '', 'options' => array('' => 'Inherit from Kallyas options > Color Options [Requires refresh]', 'light' => 'Light (default)', 'dark' => 'Dark'), 'live' => array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'stepsbox2--')), array('id' => 'f_bg_color', 'name' => 'Featured Box Background color', 'description' => 'Here you can override the background color for the intro column.', 'type' => 'colorpicker', 'std' => ''), array('id' => 'f_text_color', 'name' => 'Intro Column Text color', 'description' => 'Here you can override the text color for the intro column.', 'type' => 'colorpicker', 'std' => '', 'live' => array('multiple' => array(array('type' => 'css', 'css_class' => '.' . $uid . ' .gobox.ok', 'css_rule' => 'color', 'unit' => ''), array('type' => 'css', 'css_class' => '.' . $uid . ' .gobox.ok h4', 'css_rule' => 'color', 'unit' => ''), array('type' => 'css', 'css_class' => '.' . $uid . ' .gobox.ok > .glyphicon', 'css_rule' => 'color', 'unit' => '')))), $extra_options)), 'other' => array('title' => 'Other Options', 'options' => array(array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))), 'help' => znpb_get_helptab(array('video' => 'http://support.hogash.com/kallyas-videos/#B0LG1fxTQv0', 'docs' => 'http://support.hogash.com/documentation/steps-box/', 'copy' => $uid, 'general' => true)));
return $options;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:11,代码来源:TH_StepsBox2.php
示例4: options
/**
* This method is used to retrieve the configurable options of the element.
* @return array The list of options that compose the element and then passed as the argument for the render() function
*/
function options()
{
$uid = $this->data['uid'];
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Element Alignment", 'zn_framework'), "description" => __("Please select the alignment of the button/s.", 'zn_framework'), "id" => "el_alignment", "std" => "left", "options" => array('left' => __('Left (default)', 'zn_framework'), 'right' => __('Right', 'zn_framework'), 'center' => __('Center', 'zn_framework')), "type" => "select", 'live' => array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'text-')), array("name" => __("Social icons style", 'zn_framework'), "description" => __("Select the style of the social icons.", 'zn_framework'), "id" => "sc_style", "std" => "normal", "options" => array('normal' => __('Normal Icons', 'zn_framework'), 'colored' => __('Colored icons', 'zn_framework'), 'colored_hov' => __('Colored on Hover icons', 'zn_framework'), 'clean' => __('Clean icons', 'zn_framework')), "type" => "select", 'live' => array('type' => 'class', 'css_class' => '.' . $uid . ' .elm-social-icons', 'val_prepend' => 'sc--')), array("name" => __("Social Icons Shape", 'zn_framework'), "description" => __("Select the shape of the social icons.", 'zn_framework'), "id" => "sc_shape", "std" => "rounded", "options" => array('rounded' => __('Rounded Square', 'zn_framework'), 'square' => __('Square', 'zn_framework'), 'circle' => __('Circle', 'zn_framework'), 'special1' => __('Special shaped (needs bigger padding)', 'zn_framework')), "type" => "select", 'live' => array('type' => 'class', 'css_class' => '.' . $uid . ' .elm-social-icons', 'val_prepend' => 'sh--')), array("name" => __("Social icons Font-size", 'zn_framework'), "description" => __("Select the size of the social icons.", 'zn_framework'), "id" => "sc_size", "std" => "14", "type" => "slider", 'helpers' => array('min' => '10', 'max' => '100', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $uid . ' .elm-sc-icon', 'css_rule' => 'font-size', 'unit' => 'px')), array("name" => __("Social icons padding inside", 'zn_framework'), "description" => __("Select the size of the social icons.", 'zn_framework'), "id" => "icon_padding", "std" => "30", "type" => "slider", 'helpers' => array('min' => '0', 'max' => '200', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $uid . ' .elm-sc-icon', 'css_rule' => 'padding', 'unit' => 'px')), array("name" => __("Social icons Distance (horizontal)", 'zn_framework'), "description" => __("Select the distance between the social icons.", 'zn_framework'), "id" => "icon_distance", "std" => "3", "type" => "slider", 'helpers' => array('min' => '0', 'max' => '300', 'step' => '1'), 'live' => array('multiple' => array(array('type' => 'css', 'css_class' => '.' . $uid . ' .elm-social-icons>li', 'css_rule' => 'margin-left', 'unit' => 'px'), array('type' => 'css', 'css_class' => '.' . $uid . ' .elm-social-icons>li', 'css_rule' => 'margin-right', 'unit' => 'px')))), array("name" => __("Social Icons", 'zn_framework'), "description" => __("Add Social Icons.", 'zn_framework'), "id" => "single_sc", "std" => "", "type" => "group", "add_text" => __("Social Icon", 'zn_framework'), "remove_text" => __("Social Icon", 'zn_framework'), "group_sortable" => true, "element_title" => "sc_icon_title", "subelements" => array(array("name" => __("Icon title", 'zn_framework'), "description" => __("Here you can enter a title for this social icon.Please note that this is just\n\t\t\t\t\t\t\t\t\tfor your information as this text will not be visible on the site.", 'zn_framework'), "id" => "sc_icon_title", "std" => "", "type" => "text"), array("name" => __("Social icon link", 'zn_framework'), "description" => __("Please enter your desired link for the social icon. If this field is left\n\t\t\t\t\t\t\t\t\tblank, the icon will not be linked.", 'zn_framework'), "id" => "sc_icon_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Social icon Background color", 'zn_framework'), "description" => __("Select a background color for the icon (if you selected <strong>Colored</strong> or <strong>Colored on hover</strong> options)", 'zn_framework'), "id" => "sc_icon_color", "std" => "#000000", "type" => "colorpicker"), array("name" => __("Social icon color", 'zn_framework'), "description" => __("Select a color for the icon", 'zn_framework'), "id" => "sc_icon_textcolor", "std" => "#ffffff", "type" => "colorpicker"), array("name" => __("Social icon", 'zn_framework'), "description" => __("Select your desired social icon.", 'zn_framework'), "id" => "sc_icon_icon", "std" => "", "type" => "icon_list", 'class' => 'zn_full'))))), 'other' => array('title' => 'Other Options', 'options' => array(array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))));
return $options;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:10,代码来源:TH_SocialIcons.php
示例5: options
/**
* This method is used to retrieve the configurable options of the element.
* @return array The list of options that compose the element and then passed as the argument for the render() function
*/
function options()
{
$uid = $this->data['uid'];
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Image Box Title", 'zn_framework'), "description" => __("Enter a title for your Image box", 'zn_framework'), "id" => "image_box_title", "std" => "", "type" => "text"), array("name" => __("Image Box Text", 'zn_framework'), "description" => __("Please enter a text that will appear inside your action Image button.", 'zn_framework'), "id" => "image_box_text", "std" => "", "type" => "textarea"), array("name" => __("Image", 'zn_framework'), "description" => __("Please select an image that will appear above the title.", 'zn_framework'), "id" => "image_box_image", "std" => "", "type" => "media", "alt" => true), array("name" => __("Image Box Style", 'zn_framework'), "description" => __("Please select the style you want to use.", 'zn_framework'), "id" => "image_box_style", "std" => "imgboxes_style1", "options" => array('imgboxes_style1' => __('Style 1', 'zn_framework'), 'style2' => __('Style 2', 'zn_framework'), 'style3' => __('Style 3', 'zn_framework'), 'style4' => __('Style 4 (since v4.0)', 'zn_framework')), "type" => "select"), array("name" => __("Image Box Title Style", 'zn_framework'), "description" => __("Please select the style you want to use.", 'zn_framework'), "id" => "image_box_title_style", "std" => "title_style_center", "options" => array('title_style_center' => __('Title Centered', 'zn_framework'), 'title_style_left' => __('Title Left', 'zn_framework'), 'title_style_bottom' => __('Title Left with border bottom', 'zn_framework')), "type" => "select", "dependency" => array('element' => 'image_box_style', 'value' => array('style4'))), array("name" => __("Link text", 'zn_framework'), "description" => __("Enter a that will appear as link over the image.", 'zn_framework'), "id" => "image_box_link_text", "std" => "", "type" => "text"), array("name" => __("Image Box link", 'zn_framework'), "description" => __("Please choose the link you want to use for your Image box button.", 'zn_framework'), "id" => "image_box_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()))), 'other' => array('title' => 'Other Options', 'options' => array(array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))), 'help' => znpb_get_helptab(array('video' => 'http://support.hogash.com/kallyas-videos/#aKNFr7BfB5k', 'docs' => 'http://support.hogash.com/documentation/image-box/', 'copy' => $uid, 'general' => true)));
return $options;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:10,代码来源:TH_ImageBox.php
示例6: options
/**
* This method is used to retrieve the configurable options of the element.
* @return array The list of options that compose the element and then passed as the argument for the render() function
*/
function options()
{
$extra_options = array("name" => __("Images", 'zn_framework'), "description" => __("Here you can add your images.", 'zn_framework'), "id" => "ib2_single", "std" => "", "type" => "group", "add_text" => __("Image", 'zn_framework'), "remove_text" => __("Image", 'zn_framework'), "group_sortable" => true, "element_img" => 'ib2_image', "subelements" => array(array("name" => __("Image", 'zn_framework'), "description" => __("Please select an image.", 'zn_framework'), "id" => "ib2_image", "std" => "", "type" => "media", "alt" => true), array("name" => __("Image Link", 'zn_framework'), "description" => __("Please choose the link you want to use.", 'zn_framework'), "id" => "ib2_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Image Width", 'zn_framework'), "description" => __("Please select the desired width for this image.The number 3 means the image will take\n\t\t\ta quarter of the space and 12 means it will take the full width of the page. Depending on the image sizes,\n\t\t\tyou can stack images one under the other.", 'zn_framework'), "id" => "ib2_width", "std" => "one-third", "options" => array('four' => __('3', 'zn_framework'), 'one-third' => __('4', 'zn_framework'), 'span5' => __('5', 'zn_framework'), 'eight' => __('6', 'zn_framework'), 'span7' => __('7', 'zn_framework'), 'two-thirds' => __('8', 'zn_framework'), 'twelve' => __('9', 'zn_framework'), 'span10' => __('10', 'zn_framework'), 'span11' => __('11', 'zn_framework'), 'sixteen' => __('12', 'zn_framework')), "type" => "select"), array("name" => __("Image Height", 'zn_framework'), "description" => __("Please select an image height. This option works only with the COVER option of the resize method.", 'zn_framework'), "id" => "ib2_image_height", "std" => "330", 'type' => 'slider', 'class' => 'zn_full', 'helpers' => array('min' => '50', 'max' => '500', 'step' => '5'))));
$uid = $this->data['uid'];
$options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Image Box Title", 'zn_framework'), "description" => __("Enter a title for your Image box", 'zn_framework'), "id" => "image_box_title", "std" => "", "type" => "text"), array("name" => __("Resize Method", 'zn_framework'), "description" => __("This option determines wether the images should be resized by a default 1170px grid column split; or, by a un resized but filled block with custom height.", 'zn_framework'), "id" => "ib2_resize_method", "std" => "default", "options" => array('no-resize' => __('No Resize', 'zn_framework'), 'default' => __('Default resize (grid formula)', 'zn_framework'), 'cover' => __('Cover ( No resize, cover image and custom image height).', 'zn_framework')), "type" => "select"), array("name" => __("Bottom Margins", 'zn_framework'), "description" => __("Please select an image height. This option works only with the COVER option of the resize method.", 'zn_framework'), "id" => "ib2_bottommargin", "std" => "20", 'type' => 'slider', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '100', 'step' => '1')), $extra_options)), 'other' => array('title' => 'Other Options', 'options' => array(array('id' => 'css_class', 'name' => 'CSS class', 'description' => 'Enter a css class that will be applied to this element. You can than edit the custom css, either in the Page builder\'s CUSTOM CSS (which is loaded only into that particular page), or in Kallyas options > Advanced > Custom CSS which will load the css into the entire website.', 'type' => 'text', 'std' => ''))), 'help' => znpb_get_helptab(array('video' => 'http://support.hogash.com/kallyas-videos/#NduGrZO1S4E', 'docs' => 'htt
|
请发表评论