/**
  * 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
function zn_woocommerce_options($admin_options)
{
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Enable Catalog Mode?", 'zn_framework'), "description" => __("Choose yes if you want to turn your shop in a catalog mode shop ( all the purchase buttons will be removed. )", 'zn_framework'), "id" => "woo_catalog_mode", "std" => "no", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', 'id' => 'zn_use_second_image', 'name' => 'Show first gallery image on image hover ?', 'description' => 'Select if you want to show the first gallery image when you hover over the product in archive pages.', 'type' => 'toggle2', 'std' => 'yes', 'value' => 'yes');
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', 'id' => 'zn_show_thumb_on_hover', 'name' => 'Replace product main image on hover ?', 'description' => 'Replace product main image when hovering a thumbnail ? <b>Please note that depending on your image sizes, it may be possible that your images won\'t look good if you enable this.</b>', 'type' => 'toggle2', 'std' => 'yes', 'value' => 'yes');
    $header_option = WpkZn::getThemeHeaders(true);
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Header Style for main shop page", 'zn_framework'), "description" => __('Select the background style you want to use.Please note that the styles can be created from the "Unlimited Headers" options in the theme admin\'s page.', 'zn_framework'), "id" => "woo_sub_header", "std" => "", "type" => "select", "options" => $header_option, "class" => "");
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Show cart to visitors?", 'zn_framework'), "description" => __("Choose no if you want to hide the add to cart buttons for visitors. )", 'zn_framework'), "id" => "show_cart_to_visitors", "std" => "yes", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Show MY CART in header", 'zn_framework'), "description" => __("Choose yes if you want to show a link to MY CART and the total value of the cart in\n\t\t                    the header", 'zn_framework'), "id" => "woo_show_cart", "std" => "1", "type" => "zn_radio", "options" => array("1" => __("Show", 'zn_framework'), "0" => __("Hide", 'zn_framework')));
    // Show new items badge
    $show_new_badge = array("1" => __("Show", 'zn_framework'), "0" => __("Hide", 'zn_framework'));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Show new items badge ?", 'zn_framework'), "description" => __("Choose yes if you want to show a NEW item badge over the new products", 'zn_framework'), "id" => "woo_new_badge", "std" => "1", "type" => "zn_radio", "options" => $show_new_badge);
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Show 'Sale!' badge in items ?", 'zn_framework'), "description" => __("Choose yes if you want to show a SALE item badge over the products on sale.", 'zn_framework'), "id" => "woo_sale_badge", "std" => "1", "type" => "zn_radio", "options" => $show_new_badge);
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Hide small description in catalog view and related products ?", 'zn_framework'), "description" => __("Choose yes if you want to hide the short description in the catalog mode and related\n\t\t                    products", 'zn_framework'), "id" => "woo_hide_small_desc", "std" => "no", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')));
    // Days to show as new
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Days to show badge", 'zn_framework'), "description" => __("Please insert the number of days after a product is published to display the badge", 'zn_framework'), "id" => "woo_new_badge_days", "std" => '3', "type" => "text", 'dependency' => array('element' => 'woo_new_badge', 'value' => array('1')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Products per page", 'zn_framework'), "description" => __("Enter the desired number of products to be displayed per page.", 'zn_framework'), "id" => "woo_show_products_per_page", "std" => "9", "type" => "text", "class" => "");
    //$admin_options[] = array (
    //    'slug'        => 'zn_woocommerce_options',
    //    'parent'      => 'zn_woocommerce_options',
    //    "name"        => __( " Products layout ", 'zn_framework' ),
    //    "description" => __( "Choose the products layout", 'zn_framework' ),
    //    "id"          => "woo_prod_layout",
    //    "std"         => "classic",
    //    "type"        => "select",
    //    "options"     => array (
    //        "classic" => __( "Classic", 'zn_framework' ),
    //        "modern"  => __( "Modern v4.0+", 'zn_framework' )
    //    )
    //);
    /*** CATEGORY PAGE ***/
    if (!isset($sidebar_option) || empty($sidebar_option)) {
        $sidebar_option = WpkZn::getThemeSidebars();
    }
    $admin_options[] = array('slug' => 'woo_category_options', 'parent' => 'zn_woocommerce_options', "name" => __("Shop Archive Page Title", 'zn_framework'), "description" => __("Enter the desired page title for the shop archive page.", 'zn_framework'), "id" => "woo_arch_page_title", "std" => __("OUR PRODUCTS", 'zn_framework'), "type" => "text", "translate_name" => __("Shop Archive Page Title", 'zn_framework'), "class" => "");
    $admin_options[] = array('slug' => 'woo_category_options', 'parent' => 'zn_woocommerce_options', "name" => __("Shop Archive Page Subitle", 'zn_framework'), "description" => __("Enter the desired page subtitle for the Shop archive page.", 'zn_framework'), "id" => "woo_arch_page_subtitle", "std" => __("Shop category here with product list", 'zn_framework'), "type" => "text", "translate_name" => __("Shop Archive Page Subtitle", 'zn_framework'), "class" => "");
    $admin_options[] = array('slug' => 'woo_category_options', 'parent' => 'zn_woocommerce_options', "name" => __("Image size", 'zn_framework'), "description" => __("Enter the desired image sizes for the category images. Please note that the single item image sizes can be set from WooCommerce options.", 'zn_framework'), "id" => "woo_cat_image_size", "std" => "", "type" => "image_size", "class" => "");
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Lazy Load Images ?", 'zn_framework'), "description" => __("This option creates a cool simple fade-in effect for images in category listing.", 'zn_framework'), "id" => "woo_img_lazyload", "std" => "no", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Display discount amount in sale flash?", 'zn_framework'), "description" => __("If checked, this option will display the discount amount as percentage in the products sale\n     flash badge.", 'zn_framework'), "id" => "woo_show_sale_flash_discount", "std" => "no", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Search Type - Site-Header search form", 'zn_framework'), "description" => __("Select the type of search functionality should the searchbox in site-header to have. By default it performs a WordPress default search with it's results however you can switch to WooCommerce product search.", 'zn_framework'), "id" => "woo_hd_search_type", "std" => "yes", "type" => "select", "options" => array("wp" => __("Default WordPress results", 'zn_framework'), "wc" => __("WooCommerce products search results", 'zn_framework')));
    $admin_options[] = array('slug' => 'zn_woocommerce_options', 'parent' => 'zn_woocommerce_options', "name" => __("Search Type - <strong>General site search form</strong>", 'zn_framework'), "description" => __("Select the type of search functionality should the searchbox in general site search-forms to have. By default it performs a WordPress default search with it's results however you can switch to WooCommerce product search.", 'zn_framework'), "id" => "woo_site_search_type", "std" => "wp", "type" => "select", "options" => array("wp" => __("Default WordPress results", 'zn_framework'), "wc" => __("WooCommerce products search results", 'zn_framework')));
    $sidebar_options = array('right_sidebar' => 'Right sidebar', 'left_sidebar' => 'Left sidebar', 'no_sidebar' => 'No sidebar');
    $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'woo_archive_sidebar', 'name' => 'Sidebar on Shop archive pages', 'description' => 'Please choose the sidebar position for the shop archive pages.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options));
    $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'woo_single_sidebar', 'name' => 'Sidebar on Shop product page', 'description' => 'Please choose the sidebar position for the shop product pages.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options));
    return $admin_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'];
     return array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Show Page Title", 'zn_framework'), "description" => __("Select if you want to show the page title or not.", 'zn_framework'), "id" => "hm_header_title", "std" => "1", "type" => "select", "options" => array('1' => __('Show', 'zn_framework'), '0' => __('Hide', 'zn_framework')), "class" => ""), array("name" => __("Override Title", 'zn_framework'), "description" => __("Override the default page title.", 'zn_framework'), "id" => "hm_header_ovtitle", "std" => "", "type" => "text", "dependency" => array('element' => 'hm_header_title', 'value' => array('1'))), array("name" => __("Show Page Subtitle", 'zn_framework'), "description" => __("Select if you want to show the page subtitle or not.", 'zn_framework'), "id" => "hm_header_subtitle", "std" => "1", "type" => "select", "options" => array('1' => __('Show', 'zn_framework'), '0' => __('Hide', 'zn_framework')), "class" => ""), array("name" => __("Override SubTitle", 'zn_framework'), "description" => __("Override the default page subtitle.", 'zn_framework'), "id" => "hm_header_ovsubtitle", "std" => "", "type" => "text", "dependency" => array('element' => 'hm_header_subtitle', 'value' => array('1'))), array("name" => __("Show Breadcrumbs", 'zn_framework'), "description" => __("Select if you want to show the breadcrumbs or not.", 'zn_framework'), "id" => "hm_header_bread", "std" => "1", "type" => "select", "options" => array('1' => __('Show', 'zn_framework'), '0' => __('Hide', 'zn_framework')), "class" => ""), array("name" => __("Show Date", 'zn_framework'), "description" => __("Select if you want to show the current date under breadcrumbs or not.", 'zn_framework'), "id" => "hm_header_date", "std" => "1", "type" => "select", "options" => array('1' => __('Show', 'zn_framework'), '0' => __('Hide', 'zn_framework')), "class" => ""))), 'height_pad' => array('title' => 'Height & Padding', 'options' => array(array("name" => __('Use Height & Padding Top from "Unlimited Subheaders" style', 'zn_framework'), "description" => __("In case you select this element to have a Subheader Style defined in Unlimited Headers, this option will enable the 'height' and 'padding top' defined there, to be applied here too. Please note that this option will NOT override the settings below.", 'zn_framework'), "id" => "hm_inherit_ulm", "std" => "no", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_full"), array("name" => __("Edit height and padding for each device breakpoint", 'zn_framework'), "description" => __("Edit the height and padding options for each breakpoint (device). This will enable you to have more control over the subheader on each device. For example you might want the subheader to be shorter on mobiles, but taller on desktops.", 'zn_framework'), "id" => "hm_br_options", "std" => "lg", "type" => "zn_radio", "options" => array("lg" => __("LARGE", 'zn_framework'), "md" => __("MEDIUM", 'zn_framework'), "sm" => __("SMALL", 'zn_framework'), "xs" => __("EXTRA SMALL", 'zn_framework')), "class" => "zn_full zn_breakpoints"), array("name" => __("Header Height on LARGE DEVICES (Desktops)", 'zn_framework'), "description" => __("Please enter your desired height in pixels for this header.", 'zn_framework'), "id" => "hm_header_height", "std" => "300", "type" => "slider", 'class' => 'zn_full', 'helpers' => array('min' => '150', 'max' => '1280', 'step' => '1'), 'live' => array('multiple' => array(array('type' => 'css', 'css_class' => '.' . $this->data['uid'], 'css_rule' => 'height', 'unit' => 'px'), array('type' => 'css', 'css_class' => '.' . $this->data['uid'], 'css_rule' => 'min-height', 'unit' => 'px'))), "dependency" => array('element' => 'hm_br_options', 'value' => array('lg'))), array('id' => 'top_padding', 'name' => 'Top Padding on LARGE DEVICES (Desktops)', 'description' => 'Select the top padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '170', 'class' => 'zn_full', 'helpers' => array('min' => '50', 'max' => '350', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $this->data['uid'] . ' .ph-content-wrap', 'css_rule' => 'padding-top', 'unit' => 'px'), "dependency" => array('element' => 'hm_br_options', 'value' => array('lg'))), array('id' => 'bottom_padding', 'name' => 'Bottom Padding on LARGE DEVICES (Desktops)', 'description' => 'Select the bottom padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '0', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '350', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $this->data['uid'] . ' .ph-content-wrap', 'css_rule' => 'padding-bottom', 'unit' => 'px'), "dependency" => array('element' => 'hm_br_options', 'value' => array('lg'))), array("name" => __("Header Height on MEDIUM DEVICES (Tablets on Landscape mode)", 'zn_framework'), "description" => __("Please enter your desired height in pixels for this header.", 'zn_framework'), "id" => "hm_header_height_md", "std" => "300", "type" => "slider", 'class' => 'zn_full', 'helpers' => array('min' => '150', 'max' => '1280', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('md'))), array('id' => 'top_padding_md', 'name' => 'Top Padding on MEDIUM DEVICES (Tablets on Landscape mode)', 'description' => 'Select the top padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '170', 'class' => 'zn_full', 'helpers' => array('min' => '50', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('md'))), array('id' => 'bottom_padding_md', 'name' => 'Bottom Padding on MEDIUM DEVICES (Tablets on Landscape mode)', 'description' => 'Select the bottom padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '0', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('md'))), array("name" => __("Header Height on SMALL DEVICES (Tablets on Portrait mode)", 'zn_framework'), "description" => __("Please enter your desired height in pixels for this header.", 'zn_framework'), "id" => "hm_header_height_sm", "std" => "300", "type" => "slider", 'class' => 'zn_full', 'helpers' => array('min' => '150', 'max' => '1280', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('sm'))), array('id' => 'top_padding_sm', 'name' => 'Top Padding on SMALL DEVICES (Tablets on Portrait mode)', 'description' => 'Select the top padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '170', 'class' => 'zn_full', 'helpers' => array('min' => '50', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('sm'))), array('id' => 'bottom_padding_sm', 'name' => 'Bottom Padding on SMALL DEVICES (Tablets on Portrait mode)', 'description' => 'Select the bottom padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '0', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('sm'))), array("name" => __("Header Height on EXTRA SMALL DEVICES (SmartPhones)", 'zn_framework'), "description" => __("Please enter your desired height in pixels for this header.", 'zn_framework'), "id" => "hm_header_height_xs", "std" => "300", "type" => "slider", 'class' => 'zn_full', 'helpers' => array('min' => '150', 'max' => '1280', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('xs'))), array('id' => 'top_padding_xs', 'name' => 'Top Padding on EXTRA SMALL DEVICES (SmartPhones)', 'description' => 'Select the top padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '170', 'class' => 'zn_full', 'helpers' => array('min' => '50', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('xs'))), array('id' => 'bottom_padding_xs', 'name' => 'Bottom Padding on EXTRA SMALL DEVICES (SmartPhones)', 'description' => 'Select the bottom padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '0', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '350', 'step' => '1'), "dependency" => array('element' => 'hm_br_options', 'value' => array('xs'))))), 'background' => array('title' => 'Background & Styles Options', 'options' => array(array("name" => __("Sub-Header Style", 'zn_framework'), "description" => __("Select the sub-header style you want to use for this page. Please note that header styles can be created from the theme's Unlimited Subheaders page in Kallyas Options.", 'zn_framework'), "id" => "hm_header_style", "std" => "zn_def_header_style", "type" => "select", "options" => WpkZn::getThemeHeaders(true), 'live' => array('type' => 'class', 'css_class' => '.' . $this->data['uid'], 'val_prepend' => 'uh_')), 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 Header style (if any selected) )", 'zn_framework'), 'image' => __("Image", 'zn_framework'), 'video_self' => __("Self Hosted Video", 'zn_framework'), 'video_youtube' => __("Youtube Video", 'zn_framework'))), array('id' => 'source_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' => $this->opt('source_type'), "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.", '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/#fENF1bmvkmE', 'docs' => 'http://support.hogash.com/documentation/custom-header-layout/', 'copy' => $uid, 'general' => true)));
 }
Пример #5
0
 /**
  * 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" => __("Title", 'zn_framework'), "description" => __("Enter a title for your Latest Posts element", 'zn_framework'), "id" => "lp_title", "std" => "", "type" => "text"), array("name" => __("Blog page Link", 'zn_framework'), "description" => __("Enter the link to your blog page", 'zn_framework'), "id" => "lp_blog_page", "std" => "", "type" => "text"), array("name" => __("Number of posts", 'zn_framework'), "description" => __("Enter the number of posts that you want to show", 'zn_framework'), "id" => "lp_num_posts", "std" => "2", "type" => "text"), array("name" => __("Blog Category", 'zn_framework'), "description" => __("Select the blog category to show items", 'zn_framework'), "id" => "lp_blog_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => WpkZn::getBlogCategories()), 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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'latestposts3--'), array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'element-scheme--')))))), '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/#gFcL4BXQpAs', 'docs' => 'http://support.hogash.com/documentation/latest-posts/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #6
0
 /**
  * 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" => __("Slides", 'zn_framework'), "description" => __("Here you can create your iCarousel Slides.", 'zn_framework'), "id" => "single_icarousel", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "ic_slide_title", "element_img" => 'ic_slide_image', "subelements" => array(array("name" => __("Slide image", 'zn_framework'), "description" => __("Select an image for this Slide", 'zn_framework'), "id" => "ic_slide_image", "std" => "", "type" => "media"), array("name" => __("Slide title", 'zn_framework'), "description" => __("This title will appear over the image", 'zn_framework'), "id" => "ic_slide_title", "std" => "", "type" => "text"), array("name" => __("Slide link", 'zn_framework'), "description" => __("Here you can add a link to your slide", 'zn_framework'), "id" => "ic_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets())));
     $uid = $this->data['uid'];
     return array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Element Height (container)", 'zn_framework'), "description" => __("Custom height (px)", 'zn_framework'), "id" => "ic_height", "std" => "680", "type" => "text"), array("name" => __("Carousel Height (front img)", 'zn_framework'), "description" => __("Carousel's height. The height is only for the main image (px)", 'zn_framework'), "id" => "ic_car_height", "std" => "320", "type" => "text"), array("name" => __("Carousel Width (front img)", 'zn_framework'), "description" => __("Carousel's wid. The width is only for the main image (px)", 'zn_framework'), "id" => "ic_car_width", "std" => "490", "type" => "text"), array("name" => __("Autoplay?", 'zn_framework'), "description" => __("Autoplay the carousel?", 'zn_framework'), "id" => "ic_autoplay", "std" => "true", "type" => "select", "options" => array("true" => "Yes", "false" => "No")), array("name" => __("Timeout duration", 'zn_framework'), "description" => __("Timeout duration in miliseconds. The time between slides", 'zn_framework'), "id" => "ic_timeout", "std" => "5000", "type" => "text"), array("name" => __("Perspective", 'zn_framework'), "description" => __("The 3D perspective option. (Min 0 & Max 100);", 'zn_framework'), "id" => "ic_perspective", "std" => "75", "type" => "text"), array("name" => __("Slides Spaces", 'zn_framework'), "description" => __("Spaces between slides", 'zn_framework'), "id" => "ic_slidesspaces", "std" => "300", "type" => "text"), array("name" => __("Visible Slides", 'zn_framework'), "description" => __("How many slides will be shown (Must be an odd number)", 'zn_framework'), "id" => "ic_slides", "std" => "7", "type" => "text"), array("name" => __("Direction", 'zn_framework'), "description" => __("Carousel direction when change", 'zn_framework'), "id" => "ic_direction", "std" => "ltr", "type" => "select", "options" => array("ltr" => "Left to Right", "rtl" => "Right to left")), array("name" => __("Keyboard navigation", 'zn_framework'), "description" => __("Enable keyboard navigation?", 'zn_framework'), "id" => "ic_keyboard", "std" => "true", "type" => "select", "options" => array("true" => "Yes", "false" => "No")), array("name" => __("Mousewheel navigation", 'zn_framework'), "description" => __("Enable mousewheel navigation?", 'zn_framework'), "id" => "ic_mousewheel", "std" => "true", "type" => "select", "options" => array("true" => "Yes", "false" => "No")), array("name" => __("Timer Type", 'zn_framework'), "description" => __("Timer Style", 'zn_framework'), "id" => "ic_timer", "std" => "Bar", "type" => "select", "options" => array("Bar" => "Bar", "Pie" => "Pie", "360Bar" => "360 Bar")), array('id' => 'ic_timer_opacity', 'name' => 'Timer Opacity.', 'description' => 'Timer\'s Opacity.', 'type' => 'slider', 'std' => '40', "helpers" => array("step" => "10", "min" => "0", "max" => "100")), array("name" => __("Timer diameter/width", 'zn_framework'), "description" => __("Timer diameter or width for the bar type. For example by default it's a 220px width for Bar style", 'zn_framework'), "id" => "ic_timer_diameter", "std" => "220", "type" => "text"), array("name" => __("Timer Color", 'zn_framework'), "description" => __("Set a color for the timer", 'zn_framework'), "id" => "ic_timercolor", "std" => "#fff", "type" => "colorpicker"), array("name" => __("Timer position", 'zn_framework'), "description" => __("Set the timer's position?", 'zn_framework'), "id" => "ic_timerposition", "std" => "bottom-center", "type" => "select", "options" => array("top-left" => "Top Left", "top-right" => "Top Center", "top-center" => "Top Right", "middle-left" => "Middle Left", "middle-center" => "Middle Center", "middle-right" => "Middle Right", "bottom-left" => "Bottom Left", "bottom-center" => "Bottom Center", "bottom-right" => "Bottom Right")), array('id' => 'ic_timer_offset_x', 'name' => 'Timer X position threshold.', 'description' => 'Timer X position offset.', 'type' => 'slider', 'std' => '0', "helpers" => array("step" => "5", "min" => "-100", "max" => "100")), array('id' => 'ic_timer_offset_y', 'name' => 'Timer Y position threshold.', 'description' => 'Timer Y position offset.', 'type' => 'slider', 'std' => '-20', "helpers" => array("step" => "5", "min" => "-100", "max" => "100")))), 'items' => array('title' => 'Add slides', '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" => "ic_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/#-1o-k4VQNXo', 'docs' => 'http://support.hogash.com/documentation/icarousel/', 'copy' => $uid, 'general' => true)));
 }
Пример #7
0
 /**
  * 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" => __("Recent Works Items Height", 'zn_framework'), "description" => __("Enter a height for the carousel items", 'zn_framework'), "id" => "rw_height", "std" => "165", "type" => "text", "placeholder" => "ex: 165px"), array('id' => 'custom_img_size', 'name' => 'Custom image size', 'description' => 'Select if you want to enter a custom size for the images. If not, default size will be used. Please note that this option doesn\'t change the actual width of the image. It is usefull when displaying the element in a large container to prevent image blurring.', 'type' => 'toggle2', 'std' => '', 'value' => 'yes'), array('id' => 'img_width', 'name' => 'Image width', 'description' => 'Enter the desired image width.', 'type' => 'slider', 'std' => '653', 'class' => 'zn_full', 'helpers' => array('min' => '10', 'max' => '1920', 'step' => '1'), 'dependency' => array('element' => 'custom_img_size', 'value' => array('yes'))), array('id' => 'img_height', 'name' => 'Image height', 'description' => 'Enter the desired image height.', 'type' => 'slider', 'std' => '361', 'class' => 'zn_full', 'helpers' => array('min' => '10', 'max' => '1080', 'step' => '1'), 'dependency' => array('element' => 'custom_img_size', 'value' => array('yes'))), array("name" => __("Style", 'zn_framework'), "description" => __("Please select the style you want to use.", 'zn_framework'), "id" => "rw_style", "std" => "1", "type" => "select", "options" => array('1' => __('Style 1', 'zn_framework'), '2' => __('Style 2 - Place inside Full-width Section', 'zn_framework'), '3' => __('Style 3 - Place inside Fixed-width Section', 'zn_framework'))), 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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'recentwork--'), array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'element-scheme--')))), array("name" => __("Recent Works Title", 'zn_framework'), "description" => __("Enter a title for your Recent Works element", 'zn_framework'), "id" => "rw_title", "std" => "", "type" => "text"), array("name" => __("Recent Works Description", 'zn_framework'), "description" => __("Please enter a description that will appear bellow\n\t\t\t\t\t\t\t\t\t\t the title.", 'zn_framework'), "id" => "rw_desc", "std" => "", "type" => "textarea"), array("name" => __("Portfolio page link", 'zn_framework'), "description" => __("Please enter the link to your portfolio page.", 'zn_framework'), "id" => "rw_port_link", "std" => "", "type" => "text"), array("name" => __("Portfolio text button", 'zn_framework'), "description" => __("Please enter the text for the link to your portfolio page.", 'zn_framework'), "id" => "rw_port_link_text", "std" => "VIEW ALL", "type" => "text", "dependency" => array('element' => 'rw_style', 'value' => array('2', '3'))), array("name" => __("Force bigger description column?", 'zn_framework'), "description" => __("By default the descrption column on the left has 4 columns (of 12) in width (aprox. 1/3). This option will force the description column to resize to be smaller (aprox. 1/4). This option helps this element when it's located inside a Fixed-width Section or Full-width Section. <a href='http://hogash.d.pr/16EHy' target='_blank'>Example here</a> ", 'zn_framework'), "id" => "rw_forcebiggerdesc", "std" => "", "value" => "1", "type" => "toggle2", "dependency" => array('element' => 'rw_style', 'value' => array('2', '3'))), array("name" => __("Portfolio Category", 'zn_framework'), "description" => __("Select the portfolio category to show items", 'zn_framework'), "id" => "portfolio_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => WpkZn::getPortfolioCategories()), array("name" => __("Number of portfolio Items", 'zn_framework'), "description" => __("Please enter how many portfolio items you want to load.", 'zn_framework'), "id" => "ports_per_page", "std" => "4", "type" => "text"), array("name" => __("Autoplay carousel?", 'zn_framework'), "description" => __("Does the carousel autoplay itself?", 'zn_framework'), "id" => "rw_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" => "rw_slider_timeout", "std" => "5000", "type" => "text"))), '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/#hnKkfdiu1Ig', 'docs' => 'http://support.hogash.com/documentation/recent-work/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
<?php

/**
 * Theme options > General Options  > Favicon options
 */
global $header_option;
if (!isset($header_option) || empty($header_option)) {
    $header_option = WpkZn::getThemeHeaders(true);
}
$admin_options[] = array('slug' => 'documentation_options', 'parent' => 'documentation_options', "name" => __("Header Style", 'zn_framework'), "description" => __("Select the header style you want to use for this page. Please note that\n\t\t\t\t\theader styles can be created from the theme's admin page.", 'zn_framework'), "id" => "zn_doc_header_style", "std" => "", "type" => "select", "options" => $header_option, "class" => "");
$admin_options[] = array('slug' => 'documentation_options', 'parent' => 'documentation_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "dcmo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator");
$admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'documentation_options', 'parent' => 'documentation_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" => __("Header Style", 'zn_framework'), "description" => __("Select the header style you want to use for this page.Please note that\n\t\t\t\t\t\t\t\t\t\t\t  header styles can be created from the theme's admin page.", 'zn_framework'), "id" => "hm_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'))))), '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/#Yl7l2SVgyRU', 'docs' => 'http://support.hogash.com/documentation/documentation-header/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
<?php

/**
 * Theme options > Blog Options  > Single blog item options
 */
global $sidebar_option;
if (!isset($sidebar_option) || empty($sidebar_option)) {
    $sidebar_option = WpkZn::getThemeSidebars();
}
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Use full width image", 'zn_framework'), "description" => __("Choose Use full width image option if you want the images to be full widht rather then the default layout", 'zn_framework'), "id" => "sb_use_full_image", "std" => 'no', "type" => "select", "options" => array('yes' => __('Use full width image', 'zn_framework'), 'no' => __('Use default layout', 'zn_framework')));
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Image Maximum Width (px)", 'zn_framework'), "description" => __("Add a custom maximum width for the image in the blog post. Leave blank for default value.", 'zn_framework'), "id" => "sb_bp_def_cwidth", "std" => "", "type" => "text", "placeholder" => "eg: 400px", 'dependency' => array("element" => 'sb_use_full_image', 'value' => array('no')));
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Show author info ?", 'zn_framework'), "description" => __("Choose if you want to show the author info section on single post item.", 'zn_framework'), "id" => "zn_show_author_info", "std" => 'yes', "type" => "toggle2", "value" => "yes");
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Show related posts ?", 'zn_framework'), "description" => __("Choose if you want to show related posts section.", 'zn_framework'), "id" => "zn_show_related_posts", "std" => 'yes', "type" => "toggle2", "value" => "yes");
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Show Social Share Buttons?", 'zn_framework'), "description" => __("Choose if you want to show the social share buttons bellow the post's content.", 'zn_framework'), "id" => "show_social", "std" => "show", "type" => "select", "options" => array('show' => __('Show social buttons', 'zn_framework'), 'hide' => __('Do not show social buttons', 'zn_framework')));
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __('Other options', 'zn_framework'), "description" => '', "id" => "sbo_title_main", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator");
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __("Display posts on multiple columns?", 'zn_framework'), "description" => __("Please select if you want .", 'zn_framework'), "id" => "sbo_multicolumns", "std" => "1", "type" => "select", "options" => array('1' => __('1 Column (default)', 'zn_framework'), '2' => __('2 Columns', 'zn_framework')));
$admin_options[] = array('slug' => 'single_blog_options', 'parent' => 'blog_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "sbio_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator");
$admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#Kd0a0kDrg1s', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'recaptcha_options', 'parent' => 'general_options'));
$admin_options[] = zn_options_doc_link_option('http://support.hogash.com/documentation/setting-up-blog/', array('slug' => 'recaptcha_options', 'parent' => 'general_options'));
$admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'recaptcha_options', 'parent' => 'general_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', 'zn_framework'), 'options' => array(array("name" => __("Element Height", 'zn_framework'), "description" => __("<strong><em>Please read!</em></strong><br>Enter a numeric value for the slider height. This option works if Fullscreen is disabled. If you don't add any height, the height will be automatically rely on the content inside the element. ", 'zn_framework'), "id" => "ww_height", "std" => "", "type" => "text", "placeholder" => "ex: 600px", "class" => "zn_input_xs", 'dependency' => array('element' => 'sc_fullscreen', 'value' => array('0'))), array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "sc_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Enable scrolling effect?", 'zn_framework'), "description" => __("Do you want to enable the scrolling effects? Might cause performance issues.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "sc_scrolling", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Parallax Scrolling effect type?", 'zn_framework'), "description" => __("Select the effect type", 'zn_framework'), "id" => "sc_scrolling_type", "std" => "translate_op_scale", "type" => "select", "options" => array('translate_op_scale' => __("Translate + Fade + Scale", 'zn_framework'), 'translate_op' => __("Translate + Fade", 'zn_framework'), 'translate' => __("Translate", 'zn_framework')), 'dependency' => array('element' => 'sc_scrolling', 'value' => array('1'))), array("name" => __("Main title", 'zn_framework'), "description" => __("Please enter a main title.", 'zn_framework'), "id" => "ww_slide_title", "std" => "", "type" => "text"), array("name" => __("Subtitle", 'zn_framework'), "description" => __("Please enter a subtitle", 'zn_framework'), "id" => "ww_slide_subtitle", "std" => "", "type" => "text"), 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"), 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"), 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()))), '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'))))), 'tab_advanced' => array('title' => __('Advanced', 'zn_framework'), 'options' => array(array("name" => __("Month field", 'zn_framework'), "description" => __("Please enter the name for the month field that holds the month when the\n\t\t\t\t\t\t url to the endpoint is generated.", 'zn_framework'), "id" => "ww_month_field", "std" => "", "type" => "text", 'placeholder' => 'm'), array("name" => __("Day field", 'zn_framework'), "description" => __("Please enter the name for the day field that holds the day when the\n\t\t\t\t\t\t url to the endpoint is generated.", 'zn_framework'), "id" => "ww_day_field", "std" => "", "type" => "text", 'placeholder' => 'd'), array("name" => __("Nights field", 'zn_framework'), "description" => __("Please enter the name for the nights field that holds the nights when the\n\t\t\t\t\t\t url to the endpoint is generated.", 'zn_framework'), "id" => "ww_nights_field", "std" => "", "type" => "text", 'placeholder' => 'n'), array("name" => __("Guests field", 'zn_framework'), "description" => __("Please enter the name for the guests field that holds the guests when the\n\t\t\t\t\t\t url to the endpoint is generated.", 'zn_framework'), "id" => "ww_guests_field", "std" => "", "type" => "text", 'placeholder' => 'g'), array("name" => __("Endpoint URL", 'zn_framework'), "description" => __("Please enter the link to the endpoint which will display the search\n\t\t\t\t\t\tresults based on the retrieved values. Ex: http://your.endpoint.url/", 'zn_framework'), "id" => "ww_endpoint_url", "std" => "", "type" => "link", "options" => array('_self' => __("Same window", 'zn_framework'), '_blank' => __("New window", '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/#Hv9y1Qa_5Tw', 'docs' => 'http://support.hogash.com/documentation/static-content-reservation-form/', 'copy' => $uid, 'general' => true)));
     return $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()
 {
     /*
      * Get Shop categories
      */
     $categories = WpkZn::getShopCategories();
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Display style", 'zn_framework'), "description" => __("Select the display layout.", 'zn_framework'), "id" => "woo_spp_display", "std" => 'tabs', "options" => array('tabs' => __('Tabs', 'zn_framework'), 'rows' => __('Simple Rows', 'zn_framework')), "type" => "select"), array("name" => __("Shop Category", 'zn_framework'), "description" => __("Select the shop category to show items", 'zn_framework'), "id" => "woo_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => $categories), array("name" => __("Number of products", 'zn_framework'), "description" => __("Please enter how many products you want to LOAD.", 'zn_framework'), "id" => "prods_per_page", "std" => "6", "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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'spp--')))))), 'featured' => array('title' => 'Featured', 'options' => array(array("name" => __("Show Featured Products?", 'zn_framework'), "description" => __("Select yes if you want to show the featured products.", 'zn_framework'), "id" => "woo_fp_prod", "std" => '1', "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Featured Products Title", 'zn_framework'), "description" => __("Please enter a title for the featured products. If no title is set, the default title\n\t\t\t\t\t\t\t\t\twill be shown ( FEATURED PRODUCTS )", 'zn_framework'), "id" => "woo_fp_title", "std" => "", "type" => "text", "placeholder" => "eg: FEATURED PRODUCTS"), array("name" => __("Shop Category <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Select the shop category to show items", 'zn_framework'), "id" => "woo_categories_fp", "multiple" => true, "std" => "0", "type" => "select", "options" => $categories), array("name" => __("Number of products <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Please enter how many products you want to LOAD.", 'zn_framework'), "id" => "prods_per_page_fp", "std" => "6", "type" => "text"), array("name" => __("Enable Carousel", 'zn_framework'), "description" => __("Please select if you want the products to be wrapped into a carousel.", 'zn_framework'), "id" => "woo_fp_crs", "std" => "1", "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Enable Autoplay?", 'zn_framework'), "description" => __("Please select if you want the Featured Products panel to be auto-played.", 'zn_framework'), "id" => "woo_fp_auto", "std" => "", "value" => "yes", "type" => "toggle2", 'dependency' => array('element' => 'woo_fp_crs', 'value' => array('1'))), array("name" => __("Autoplay timeout", 'zn_framework'), "description" => __("If autoplay is enabled, please select the autoplay timeout, duration between the carousel will slide. Add in miliseconds, 5000ms = 5 seconds .", 'zn_framework'), "id" => "woo_fp_timeout", "std" => "5000", "type" => "text", 'dependency' => array('element' => 'woo_fp_crs', 'value' => array('1'))), array("name" => __("Products per row", 'zn_framework'), "description" => __("Please select how many products per row to display.", 'zn_framework'), "id" => "woo_fp_perrow", "std" => "4", "type" => "select", 'options' => array('1' => '1 per row', '2' => '2 per row', '3' => '3 per row', '4' => '4 per row', '5' => '5 per row', '6' => '6 per row'), 'dependency' => array('element' => 'woo_fp_crs', 'value' => array('0'))))), 'latest' => array('title' => 'Latest', 'options' => array(array("name" => __("Show Latest Products?", 'zn_framework'), "description" => __("Select yes if you want to show the latest products.", 'zn_framework'), "id" => "woo_lp_prod", "std" => '1', "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Latest Products Title", 'zn_framework'), "description" => __("Please enter a title for the latest products. If no title is set, the default title will be shown ( LATEST PRODUCTS )", 'zn_framework'), "id" => "woo_lp_title", "std" => "", "type" => "text", "placeholder" => "eg: LATEST PRODUCTS"), array("name" => __("Shop Category <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Select the shop category to show items", 'zn_framework'), "id" => "woo_categories_lp", "multiple" => true, "std" => "0", "type" => "select", "options" => $categories), array("name" => __("Number of products <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Please enter how many products you want to LOAD.", 'zn_framework'), "id" => "prods_per_page_lp", "std" => "6", "type" => "text"), array("name" => __("Enable Carousel", 'zn_framework'), "description" => __("Please select if you want the products to be wrapped into a carousel.", 'zn_framework'), "id" => "woo_lp_crs", "std" => "1", "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Enable Autoplay?", 'zn_framework'), "description" => __("Please select if you want the Latest Products panel to be auto-played.", 'zn_framework'), "id" => "woo_lp_auto", "std" => "", "value" => "yes", "type" => "toggle2", 'dependency' => array('element' => 'woo_lp_crs', 'value' => array('1'))), array("name" => __("Autoplay timeout", 'zn_framework'), "description" => __("If autoplay is enabled, please select the autoplay timeout, duration between the carousel will slide. Add in miliseconds, 5000ms = 5 seconds .", 'zn_framework'), "id" => "woo_lp_timeout", "std" => "5000", "type" => "text", 'dependency' => array('element' => 'woo_lp_crs', 'value' => array('1'))), array("name" => __("Products per row", 'zn_framework'), "description" => __("Please select how many products per row to display.", 'zn_framework'), "id" => "woo_lp_perrow", "std" => "4", "type" => "select", 'options' => array('1' => '1 per row', '2' => '2 per row', '3' => '3 per row', '4' => '4 per row', '5' => '5 per row', '6' => '6 per row'), 'dependency' => array('element' => 'woo_lp_crs', 'value' => array('0'))))), 'best' => array('title' => 'Best-Selling', 'options' => array(array("name" => __("Show Best Selling Products", 'zn_framework'), "description" => __("Select yes if you want to show the best selling products.", 'zn_framework'), "id" => "woo_bs_prod", "std" => '1', "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Best Selling Title", 'zn_framework'), "description" => __("Please enter a title for the best selling products. If no title is set , the default\n\t\t\t\t\t\t\t\t\ttitle will be shown ( BEST SELLING PRODUCTS )", 'zn_framework'), "id" => "woo_bsp_title", "std" => "", "type" => "text", "placeholder" => "eg: BEST SELLING PRODUCTS"), array("name" => __("Shop Category <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Select the shop category to show items", 'zn_framework'), "id" => "woo_categories_bs", "multiple" => true, "std" => "0", "type" => "select", "options" => $categories), array("name" => __("Number of products <strong>[Override default]</strong>", 'zn_framework'), "description" => __("Please enter how many products you want to LOAD.", 'zn_framework'), "id" => "prods_per_page_bs", "std" => "6", "type" => "text"), array("name" => __("Enable Carousel", 'zn_framework'), "description" => __("Please select if you want the products to be wrapped into a carousel.", 'zn_framework'), "id" => "woo_bs_crs", "std" => "1", "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "type" => "zn_radio"), array("name" => __("Enable Autoplay?", 'zn_framework'), "description" => __("Please select if you want the Best Selling panel to be auto-played.", 'zn_framework'), "id" => "woo_bs_auto", "std" => "", "value" => "yes", "type" => "toggle2", 'dependency' => array('element' => 'woo_bs_crs', 'value' => array('1'))), array("name" => __("Autoplay timeout", 'zn_framework'), "description" => __("If autoplay is enabled, please select the autoplay timeout, duration between the carousel will slide. Add in miliseconds, 5000ms = 5 seconds .", 'zn_framework'), "id" => "woo_bs_timeout", "std" => "5000", "type" => "text", 'dependency' => array('element' => 'woo_bs_crs', 'value' => array('1'))), array("name" => __("Products per row", 'zn_framework'), "description" => __("Please select how many products per row to display.", 'zn_framework'), "id" => "woo_bs_perrow", "std" => "4", "type" => "select", 'options' => array('1' => '1 per row', '2' => '2 per row', '3' => '3 per row', '4' => '4 per row', '5' => '5 per row', '6' => '6 per row'), 'dependency' => array('element' => 'woo_bs_crs', 'value' => array('0'))))), '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/#hy-twTGcQ7c', 'docs' => 'http://support.hogash.com/documentation/shop-products-presentation/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
                    <div class="clearfix"></div>
                </div><!-- end social sharing -->
            <?php 
}
// end social
if (has_tag()) {
    ?>
                <!-- TAGS -->
                <div class="itemTagsBlock kl-blog-post-tags kl-font-alt">
                    <span class="kl-blog-post-tags-text"><?php 
    echo __('Tagged under:', 'zn_framework');
    ?>
</span>
                    <?php 
    echo WpkZn::getPostTags(get_the_ID(), ', ');
    ?>
                    <div class="clearfix"></div>
                </div><!-- end tags blocks -->
            <?php 
}
?>

            <div class="clearfix"></div>

            <?php 
if (zget_option('zn_show_author_info', 'blog_options', false, 'yes') == 'yes') {
    ?>
            <div class="post-author kl-blog-post-author">
                <div class="author-avatar kl-blog-post-author-avatar">
                    <?php 
Пример #14
0
 /**
  * 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" => __("Style", 'zn_framework'), "description" => __("Please select the style you want to use.", 'zn_framework'), "id" => "lp_style_select", "std" => "default-style", "options" => array('default-style' => __('Default Style', 'zn_framework'), 'kl-style-2' => __('Style 2 (since v4.0)', 'zn_framework')), "type" => "select"), 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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'latestposts4--'), array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'element-scheme--')))), array("name" => __("Boxes placement", 'zn_framework'), "description" => __("Please select the boxes placement.", 'zn_framework'), "id" => "lp_placement", "std" => "normal", "options" => array('normal' => __('Normal (title left-top)', 'zn_framework'), 'flipped' => __('Flipped (title box, bottom-right)', 'zn_framework')), "type" => "select", "dependency" => array('element' => 'lp_style_select', 'value' => array('kl-style-2'))), array("name" => __("Title font size", 'zn_framework'), "description" => __("Please select the desired title font size.", 'zn_framework'), "id" => "lp_title_font", "std" => "54", 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '400', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $this->data['uid'] . '.latest_posts--4.kl-style-2 .latest_posts-elm-title', 'css_rule' => 'font-size', 'unit' => 'px'), "type" => "slider", "dependency" => array('element' => 'lp_style_select', 'value' => array('kl-style-2'))), array("name" => __("Title", 'zn_framework'), "description" => __("Enter a title for your Latest Posts element", 'zn_framework'), "id" => "lp_title", "std" => "", "type" => "text"), array("name" => __("Number of posts", 'zn_framework'), "description" => __("Enter the number of posts that you want to show", 'zn_framework'), "id" => "lp_num_posts", "std" => "3", "type" => "text", "dependency" => array('element' => 'lp_style_select', 'value' => array('default-style'))), array("name" => __("Blog Category", 'zn_framework'), "description" => __("Select the blog category to show items", 'zn_framework'), "id" => "lp_blog_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => WpkZn::getBlogCategories()))), '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/#gFcL4BXQpAs', 'docs' => 'http://support.hogash.com/documentation/latest-posts/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #15
0
 /**
  * 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" => __("Select sidebar", 'zn_framework'), "description" => __("Select your desired sidebar to be used on this\n\t\t\t\t\t\t\t\t\t\t\tpost", 'zn_framework'), "id" => "sidebar_select", "std" => "", "type" => "select", "options" => WpkZn::getThemeSidebars()), array("name" => __("Show background?", 'zn_framework'), "description" => __("Select yes if you want to show the default sidebar\n\t\t\t\t\t\t\t\t\t\t\t background or no to use a transparent background.", 'zn_framework'), "id" => "sidebar_bg", "std" => "yes", "type" => "select", "options" => array('yes' => __('Yes', 'zn_framework'), 'no' => __('No', 'zn_framework'))), 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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'kl-sidebar--'), array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'element-scheme--')))))), '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/#QeOx0SoUq9E', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #16
0
<?php

/**
 * Theme options > General Options  > Favicon options
 */
$activelist = WpkZn::getPortfolioCategories();
if (!empty($activelist)) {
    $allarr = array("*" => "All");
    $activelist = $allarr + $activelist;
}
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', 'id' => 'portfolio_scheme', 'name' => 'Portfolio color scheme', 'description' => 'Select the color scheme of the Portfolio', 'type' => 'select', 'std' => '', 'options' => array('' => 'Inherit from Global (Color options)', 'light' => 'Light', 'dark' => 'Dark'));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Portfolio Archive style", 'zn_framework'), "description" => __("Select the desired style for the portfolio archive pages.", 'zn_framework'), "id" => "portfolio_style", "std" => "portfolio_sortable", "type" => "select", "options" => array('portfolio_category' => __('Portfolio Category', 'zn_framework'), 'portfolio_sortable' => __('Portfolio Sortable', 'zn_framework'), 'portfolio_carousel' => __('Portfolio Carousel Layout', 'zn_framework')), "class" => "");
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Frame Style", 'zn_framework'), "description" => __("Please choose which frame style to apply.", 'zn_framework'), "id" => "frame_style", "std" => 'classic', "type" => "select", "options" => array("classic" => 'Classic', "modern" => 'Modern', "minimal" => 'Minimal'), "dependency" => array('element' => 'portfolio_style', 'value' => array('portfolio_carousel')));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Active Button in Portfolio Menu", 'zn_framework'), "description" => __("Choose the active category or wether all should be displayed on page load.", 'zn_framework'), "id" => "ptf_sort_activebutton", "std" => '*', "type" => "select", "options" => $activelist, 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable')));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Show load more button", 'zn_framework'), "description" => __("Choose if you want to show the load more button or not.", 'zn_framework'), "id" => "ptf_sort_loadmore", "std" => 'no', "type" => "toggle2", "value" => "yes", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable')));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Portfolio items per page", 'zn_framework'), "description" => __("Please enter the desired number of portfolio items that will be displayed on a page.", 'zn_framework'), "id" => "portfolio_per_page_show", "std" => "4", "type" => "text");
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Number of columns", 'zn_framework'), "description" => __("Please enter how many portfolio items you want to load on a page if you choose to use\n\t\tthe portfolio category style.", 'zn_framework'), "id" => "ports_num_columns", "std" => "4", "options" => array('1' => __('1', 'zn_framework'), '2' => __('2', 'zn_framework'), '3' => __('3', 'zn_framework'), '4' => __('4', 'zn_framework')), "type" => "select", "dependency" => array('element' => 'portfolio_style', 'value' => array('portfolio_category', 'portfolio_sortable')));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Show item details bellow post content", 'zn_framework'), "description" => __("Here, you can choose to show the portfolio item details like CLIENt, YEAR, etc. <b> Important : Will only work when you select 1 column layout </b> ).", 'zn_framework'), "id" => "ports_extra_content", "std" => "no", "options" => array('yes' => __('Show', 'zn_framework'), 'no' => __('Hide', 'zn_framework')), "type" => "select", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_category')));
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Link Portfolio Media", 'zn_framework'), "description" => __("Select Yes if you want your portfolio images to be linked to the portfolio item as\n\t\topposed to open the image in lightbox. ( only works with portfolio sortable )", 'zn_framework'), "id" => "zn_link_portfolio", "std" => "no", "options" => array('yes' => __('Yes', 'zn_framework'), 'no' => __('No', 'zn_framework')), "type" => "select");
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __("Single item style", 'zn_framework'), "description" => __("Select the desired style for the portfolio single item pages.", 'zn_framework'), "id" => "portfolio_single_style", "std" => "", "type" => "select", "options" => array('' => __('Show compacted description', 'zn_framework'), 'full_desc' => __('Show full description', 'zn_framework')), "class" => "");
$admin_options[] = array('slug' => 'portfolio_options', 'parent' => 'portfolio_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "ptfo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator");
$admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#rVA576HZaYA', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'portfolio_options', 'parent' => 'portfolio_options'));
$admin_options[] = zn_options_doc_link_option('http://support.hogash.com/documentation/setting-up-portfolio/', array('slug' => 'portfolio_options', 'parent' => 'portfolio_options'));
$admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'portfolio_options', 'parent' => 'portfolio_options'));
Пример #17
0
 /**
  * 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" => __("Slides", 'zn_framework'), "description" => __("Here you can create your Flex Slider Slides.", 'zn_framework'), "id" => "single_flex", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "fs_slide_title", "subelements" => array(array("name" => __("Slide image", 'zn_framework'), "description" => __("Select an image for this Slide", 'zn_framework'), "id" => "fs_slide_image", "std" => "", "type" => "media", 'class' => 'zn_full'), array("name" => __("Slide title", 'zn_framework'), "description" => __("This title will appear over the image", 'zn_framework'), "id" => "fs_slide_title", "std" => "", "type" => "text"), array("name" => __("Slide link", 'zn_framework'), "description" => __("Here you can add a link to your slide", 'zn_framework'), "id" => "fs_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Slide label", 'zn_framework'), "description" => __("This label will appear over the title.<br> <strong>Only for Modern style!</strong>", 'zn_framework'), "id" => "fs_slide_label", "std" => "", "type" => "text"), array("name" => __("Slide label color", 'zn_framework'), "description" => __("The color that the label will have.<br> <strong>Only for Modern style!</strong>", 'zn_framework'), "id" => "fs_slide_label_color", "std" => "#cd2122", "type" => "colorpicker")));
     $uid = $this->data['uid'];
     return array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Slider height (px)", 'zn_framework'), "description" => __("Add a height for the slider. Empty means automatic height.", 'zn_framework'), "id" => "fs_height", "std" => "470", "type" => "text", "class" => "", "placeholder" => "ex: 470px"), array("name" => __("Slider style", 'zn_framework'), "description" => __("Select a style for the slider.", 'zn_framework'), "id" => "fs_style", "std" => "classic", "type" => "select", "options" => array('calssic' => __('Classic', 'zn_framework'), 'modern' => __('Modern ( from v4.0+ )', 'zn_framework')), "class" => ""), array("name" => __("Slider Transition", 'zn_framework'), "description" => __("Select the desired transition that you want to use for this slider.", 'zn_framework'), "id" => "fs_transition", "std" => "fade", "type" => "select", "options" => array('fade' => __('Fade', 'zn_framework'), 'crossfade' => __('Cross Fade', 'zn_framework'), 'slide' => __('Slide', 'zn_framework')), "class" => ""), array("name" => __("Slider Speed", 'zn_framework'), "description" => __("Adjust the speed between sliding timeout.", 'zn_framework'), "id" => "fs_speed", "std" => "5000", "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" => __("Slider Navigation", 'zn_framework'), "description" => __("Display arrows?", 'zn_framework'), "id" => "fs_nav", "std" => "1", "type" => "select", "options" => array('true' => __('Yes', 'zn_framework'), 'false' => __('No', 'zn_framework'))), array("name" => __("Slider Bullets", 'zn_framework'), "description" => __("Display navigation bullets?.", 'zn_framework'), "id" => "fs_bullets", "std" => "true", "type" => "select", "options" => array('true' => __('Yes', 'zn_framework'), 'false' => __('No', 'zn_framework'))), array("name" => __("Show Thumbnails?", 'zn_framework'), "description" => __("Select if yes if you want to display thumbnails of images on the right side of the slider. Will replace bullets.", 'zn_framework'), "id" => "fs_show_thumbs", "std" => "0", "type" => "select", "options" => array('1' => __('Yes', 'zn_framework'), '0' => __('No', 'zn_framework')), "class" => ""), array("name" => __("Shadow style", 'zn_framework'), "description" => __("Select the desired shadow that you want to use for this slider.", 'zn_framework'), "id" => "fs_shadow", "std" => "lifted", "type" => "select", "options" => array('' => __('No Shadow', 'zn_framework'), 'lifted' => __('Lifted', 'zn_framework')), "class" => ""))), 'slides' => array('title' => 'Slides configuration', '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/#YeqY8rqbI7Q', 'docs' => 'http://support.hogash.com/documentation/simple-slider/', 'copy' => $uid, 'general' => true)));
 }
Пример #18
0
 /**
  * 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()
 {
     /*
      * Get Shop categories
      */
     $categories = WpkZn::getShopCategories();
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Element Title", 'zn_framework'), "description" => __("Enter a title for this element", 'zn_framework'), "id" => "woo_lo_title", "std" => "", "type" => "text"), array("name" => __("Shop Category", 'zn_framework'), "description" => __("Select the shop category to show items", 'zn_framework'), "id" => "woo_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => $categories), array("name" => __("Number of products", 'zn_framework'), "description" => __("Please enter how many products you want to load.", 'zn_framework'), "id" => "prods_per_page", "std" => "6", "type" => "text"), array("name" => __("Autoplay carousel?", 'zn_framework'), "description" => __("Does the carousel autoplay itself?", 'zn_framework'), "id" => "sl_autoplay", "std" => "1", "value" => "1", "type" => "toggle2"), array("name" => __("Timeout duration", 'zn_framework'), "description" => __("The amount of milliseconds the carousel will pause", 'zn_framework'), "id" => "sl_timeout", "std" => "6000", "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('multiple' => array(array('type' => 'class', 'css_class' => '.' . $uid, 'val_prepend' => 'slo--')))))), '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/#H06NN5lC_Ic', 'docs' => 'http://support.hogash.com/documentation/shop-limited-offers/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #19
0
 /**
  * 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" => __("Recent Works Items Height", 'zn_framework'), "description" => __("Enter a height for the carousel items", 'zn_framework'), "id" => "rw_height", "std" => "165", "type" => "text", "placeholder" => "ex: 165px"), array("name" => __("Recent Works Title", 'zn_framework'), "description" => __("Enter a title for your Recent Works element", 'zn_framework'), "id" => "rw_title", "std" => "", "type" => "text"), array("name" => __("Portfolio page link", 'zn_framework'), "description" => __("Please enter the link to your portfolio page.", 'zn_framework'), "id" => "rw_port_link", "std" => "", "type" => "text"), array("name" => __("Portfolio Category", 'zn_framework'), "description" => __("Select the portfolio category to show items", 'zn_framework'), "id" => "portfolio_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => WpkZn::getPortfolioCategories()), array("name" => __("Number of portfolio Items", 'zn_framework'), "description" => __("Please enter how many portfolio items you want to load.", 'zn_framework'), "id" => "ports_per_page", "std" => "6", "type" => "text"), array("name" => __("Autoplay carousel?", 'zn_framework'), "description" => __("Does the carousel autoplay itself?", 'zn_framework'), "id" => "rw2_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" => "rw2_slider_timeout", "std" => "5000", "type" => "text"))), '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/#g4kQDgLIZ38', 'docs' => 'http://support.hogash.com/documentation/recent-work/', 'copy' => $uid, 'general' => true)));
     return $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()
 {
     $mail_lists = array();
     $mailchimp_api = zget_option('mailchimp_api', 'general_options');
     if (!empty($mailchimp_api)) {
         if (!class_exists('MCAPI')) {
             include_once THEME_BASE . '/template_helpers/widgets/mailchimp/MCAPI.class.php';
         }
         $api_key = $mailchimp_api;
         $mcapi = new MCAPI($api_key);
         $lists = $mcapi->lists();
         if (!empty($lists['data'])) {
             foreach ($lists['data'] as $key => $value) {
                 $mail_lists[$value['id']] = $value['name'];
             }
         }
     }
     $extra_options = array("name" => __("Social Icons", 'zn_framework'), "description" => __("Here you can add your desired social icons.", 'zn_framework'), "id" => "single_ec_social", "std" => "", "type" => "group", "add_text" => __("Social Icon", 'zn_framework'), "remove_text" => __("Social Icon", 'zn_framework'), "group_sortable" => true, "element_title" => "sc_ec_social_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 for your\n\t\t\t\t\t\t\t\tinformation as this text will not be visible on the site.", 'zn_framework'), "id" => "sc_ec_social_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 blank, the\n\t\t\t\t\t\t\t\ticon will not be linked.", 'zn_framework'), "id" => "sc_ec_social_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_ec_social_iconcolor", "std" => "#000", "type" => "colorpicker"), array("name" => __("Social icon", 'zn_framework'), "description" => __("Select your desired social icon.", 'zn_framework'), "id" => "sc_ec_social_icon", "std" => "", "type" => "icon_list", 'class' => 'zn_full')));
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Element Height", 'zn_framework'), "description" => __("<strong><em>Please read!</em></strong><br>Enter a numeric value for the slider height. This option works if Fullscreen is disabled. If you don't add any height, the height will be automatically rely on the content inside the element. ", 'zn_framework'), "id" => "ww_height", "std" => "", "type" => "text", "placeholder" => "ex: 600px", "class" => "zn_input_xs", 'dependency' => array('element' => 'sc_fullscreen', 'value' => array('0'))), array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "sc_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Enable scrolling effect?", 'zn_framework'), "description" => __("Do you want to enable the scrolling effects? Might cause performance issues.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "sc_scrolling", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Parallax Scrolling effect type?", 'zn_framework'), "description" => __("Select the effect type", 'zn_framework'), "id" => "sc_scrolling_type", "std" => "translate_op_scale", "type" => "select", "options" => array('translate_op_scale' => __("Translate + Fade + Scale", 'zn_framework'), 'translate_op' => __("Translate + Fade", 'zn_framework'), 'translate' => __("Translate", 'zn_framework')), 'dependency' => array('element' => 'sc_scrolling', 'value' => array('1'))), array("name" => __("Title", 'zn_framework'), "description" => __("Please enter a title.", 'zn_framework'), "id" => "sc_ec_title", "std" => "", "type" => "textarea"), array("name" => __("Video", 'zn_framework'), "description" => __("Please enter the link for your desired video (\n\t\t\t\t\t\t\t\t\t\t\tyoutube or vimeo ).", 'zn_framework'), "id" => "sc_ec_vime", "std" => "", "type" => "text"), array("name" => __("Video Description", 'zn_framework'), "description" => __("Please enter a description for this video that will appear above the video.", 'zn_framework'), "id" => "sc_ec_vid_desc", "std" => "", "type" => "textarea"), array("name" => __("Date", 'zn_framework'), "description" => __("Here you can select the date until the countdown finishes.", 'zn_framework'), "id" => "sc_ec_date", "std" => "", "type" => "date_picker"), array("name" => __("Mailchimp List ID", 'zn_framework'), "description" => __("Please enter your Mailchimp list id. In order to make Mailchimp work, you should\n\t\t\t\t\t\t\t\t\talso add your Mailchimp api key in the theme's admin page.", 'zn_framework'), "id" => "sc_ec_mlid", "std" => "", "type" => "select", 'options' => $mail_lists), array("name" => __("Use normal or colored social icons?", 'zn_framework'), "description" => __("Here you can choose to use the normal social icons or the colored version of each icon.", 'zn_framework'), "id" => "sc_ec_social_color", "std" => "normal", "type" => "select", "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'))))), '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'))))), 'items' => array('title' => 'Add Icons', 'options' => array($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/#eH7M2AWz_OI', 'docs' => 'http://support.hogash.com/documentation/static-content-event-countdown/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #21
0
 /**
  * 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()
 {
     global $wpdb;
     $revslider_options = array();
     if (!function_exists('is_plugin_active')) {
         include_once ABSPATH . 'wp-admin/includes/plugin.php';
     }
     if (is_plugin_active('revslider/revslider.php')) {
         // Table name
         $table_name = $wpdb->prefix . "revslider_sliders";
         // Get sliders
         $rev_sliders = $wpdb->get_results("SELECT title,alias FROM {$table_name}");
         // Iterate over the sliders
         if (!empty($rev_sliders)) {
             foreach ($rev_sliders as $key => $item) {
                 if (isset($item->alias) && isset($item->title)) {
                     $revslider_options[$item->alias] = $item->title;
                 }
             }
         }
     }
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General 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\t\t\t\t\t\t\t\tfrom 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" => __("Select slider", 'zn_framework'), "description" => __("Select the desired slider you want to use. Please note that the slider can be created\n\t\t\t\t\t\t\t\t\tfrom inside the Revolution Slider options page.", 'zn_framework'), "id" => "revslider_id", "std" => "", "type" => "select", "options" => $revslider_options), array("name" => __("Use Paralax effect", 'zn_framework'), "description" => __("Select yes if you have used the paralax classes\n\t\t\t\t\t\t\t\t\t\t\twhen you created your slider.", 'zn_framework'), "id" => "revslider_paralax", "std" => "0", "type" => "select", "options" => array(0 => __('No', 'zn_framework'), 1 => __('Yes', 'zn_framework'))), 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'))))), '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/#pP-ktSGJabg', 'docs' => 'http://support.hogash.com/documentation/revolution-slider/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
    /**
     * Add option to select custom header in Edit Category page
     * @param $term
     * @hooked to sanitize_text_field( $_REQUEST['taxonomy'] ) . '_edit_form'
     * @see functions.php
     */
    function wpk_zn_edit_category_form($term)
    {
        ?>
        <h2><?php 
        _e('Kallyas Options', 'zn_framework');
        ?>
</h2>
        <table class="form-table">
            <tbody>
            <tr class="form-field form-required term-name-wrap">
                <th scope="row">
                    <label for="wpk_zn_select_custom_header"><?php 
        _e('Select header', 'zn_framework');
        ?>
</label>
                </th>
                <td>
                    <?php 
        // GET ALL CUSTOM HEADERS
        $allHeaders = WpkZn::getThemeHeaders(true);
        if (!empty($allHeaders)) {
            echo '<select name="wpk_zn_select_custom_header" id="wpk_zn_select_custom_header">';
            // Check option to display the previously checked option
            $optData = get_option('wpk_zn_select_custom_header_' . $term->term_id);
            $selectedSlug = 'zn_def_header_style';
            // use default by default
            if (!empty($optData)) {
                $selectedSlug = $optData;
            }
            foreach ($allHeaders as $slug => $name) {
                echo '<option value="' . $slug . '"';
                if ($slug == $selectedSlug) {
                    echo ' selected="selected"';
                }
                echo '>' . $name . '</option>';
            }
            echo '</select>';
        }
        ?>
                    <p class="description"><?php 
        _e('The custom header you want to display for this category.', 'zn_framework');
        ?>
</p>
                </td>
            </tr>
            </tbody>
        </table>
    <?php 
    }
 /**
  * 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" => __('<strong style="font-size:120%">Warning!</strong>', 'zn_framework'), "description" => __('Since v4.x, <strong>this element is <em>deprecated</em> & <em>unsuported</em></strong>. It\'s not recommended to be used bucause at some point it\'ll be removed (now it\'s kept only for backwards compatibilty).<br> Instead, try to use a  <strong>Section element</strong> and have tons of options.', 'zn_framework'), 'type' => 'zn_message', 'id' => 'zn_error_notice', 'show_blank' => 'true', 'supports' => 'warning'), array("name" => __("Element Height", 'zn_framework'), "description" => __("<strong><em>Please read!</em></strong><br>Enter a numeric value for the slider height. This option works if Fullscreen is disabled. If you don't add any height, the height will be automatically rely on the content inside the element. ", 'zn_framework'), "id" => "ww_height", "std" => "", "type" => "text", "placeholder" => "ex: 600px", "class" => "zn_input_xs", 'dependency' => array('element' => 'sc_fullscreen', 'value' => array('0'))), array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "sc_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Enable scrolling effect?", 'zn_framework'), "description" => __("Do you want to enable the scrolling effects? Might cause performance issues.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "sc_scrolling", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Parallax Scrolling effect type?", 'zn_framework'), "description" => __("Select the effect type", 'zn_framework'), "id" => "sc_scrolling_type", "std" => "translate_op_scale", "type" => "select", "options" => array('translate_op_scale' => __("Translate + Fade + Scale", 'zn_framework'), 'translate_op' => __("Translate + Fade", 'zn_framework'), 'translate' => __("Translate", 'zn_framework')), 'dependency' => array('element' => 'sc_scrolling', 'value' => array('1'))), array("name" => __("Line 1 Title", 'zn_framework'), "description" => __("Please enter a title that will appear on the first line.", 'zn_framework'), "id" => "sc_vb_line1", "std" => "", "type" => "textarea"), array("name" => __("Line 2 Title", 'zn_framework'), "description" => __("Please enter a title that will appear on the second line.", 'zn_framework'), "id" => "sc_vb_line2", "std" => "", "type" => "textarea"), array("name" => __("Caption align", 'zn_framework'), "description" => __("Select where to align the captions.", 'zn_framework'), "id" => "sc_caption_pos", "std" => "middle", "type" => "select", "options" => array('middle' => __("Middle (default)", 'zn_framework'), 'top' => __("Top", 'zn_framework'), 'bottom' => __("Bottom", 'zn_framework'))))), '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" => "sc_vb_video_type", "std" => "", "type" => "select", "options" => array('' => __("None (Will just rely on the background color (if any) )", 'zn_framework'), 'image' => __("Image", 'zn_framework'), 'self' => __("Self Hosted Video", 'zn_framework'), 'video_youtube' => __("Youtube Video", 'zn_framework'), 'iframe' => __("Embed Iframe", 'zn_framework'))), array("name" => __("Video link", 'zn_framework'), "description" => __("Please enter the video link as seen in the browser address bar for the desired video.", 'zn_framework'), "id" => "sc_vb_embed", "std" => "", "type" => "text", 'dependency' => array('element' => 'sc_vb_video_type', 'value' => array('iframe'))), 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' => 'sc_vb_video_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' => 'sc_vb_video_type', 'value' => array('video_youtube'))), array('id' => 'sc_vb_sh_video1', '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' => 'sc_vb_video_type', 'value' => array('self'))), array('id' => 'sc_vb_sh_video2', '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' => 'sc_vb_video_type', 'value' => array('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' => 'sc_vb_video_type', 'value' => array('self'))), array('id' => 'sc_vb_sh_video_cover', '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' => 'sc_vb_video_type', 'value' => array('self', 'video_youtube'))), array('id' => 'source_vd_autoplay', 'name' => 'Autoplay video?', 'description' => 'Enable autoplay for video?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'sc_vb_video_type', 'value' => array('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' => 'sc_vb_video_type', 'value' => array('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' => 'sc_vb_video_type', 'value' => array('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' => 'sc_vb_video_type', 'value' => array('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' => 'sc_vb_video_type', 'value' => array('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'))))), '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/#QemCMBG4R90', 'docs' => 'http://support.hogash.com/documentation/static-content-video-background/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #24
0
 /**
  * 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 iOS Slider Slides.", 'zn_framework'), "id" => "single_iosslider", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "scapt_title", "subelements" => array('has_tabs' => true, 'media' => array('title' => 'Slide media', 'options' => array(array("name" => __("Slide Type", 'zn_framework'), "description" => __("Please select the slide type", 'zn_framework'), "id" => "io_slide_type", "std" => "image", "type" => "select", "options" => array('image' => __("Image", 'zn_framework'), 'video_self' => __("Self Hosted Video", 'zn_framework'), 'video_youtube' => __("Youtube Video", 'zn_framework'), 'embed_iframe' => __("Embed Iframe (Vimeo etc.)", 'zn_framework'))), array('id' => 'io_slide_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' => 'io_slide_type', 'value' => array('video_self'))), array('id' => 'io_slide_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' => 'io_slide_type', 'value' => array('video_self'))), array('id' => 'io_slide_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' => 'io_slide_type', 'value' => array('video_self'))), array('id' => 'io_slide_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' => 'io_slide_type', 'value' => array('video_self', 'video_youtube'))), array('id' => 'io_slide_vd_autoplay', 'name' => 'Autoplay video?', 'description' => 'Enable autoplay for video?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'io_slide_type', 'value' => array('video_self', 'video_youtube', 'embed_iframe')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'io_slide_vd_loop', 'name' => 'Loop video?', 'description' => 'Enable looping the video?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'io_slide_type', 'value' => array('video_self', 'video_youtube', 'embed_iframe')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'io_slide_vd_muted', 'name' => 'Start mute?', 'description' => 'Start the video with muted audio?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'io_slide_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'io_slide_vd_controls', 'name' => 'Video controls', 'description' => 'Enable video controls?', 'type' => 'select', 'std' => 'yes', "dependency" => array('element' => 'io_slide_type', 'value' => array('video_self', 'video_youtube')), "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'io_slide_vd_controls_pos', 'name' => 'Video controls position', 'description' => 'Video controls position in the slide', 'type' => 'select', 'std' => 'bottom-right', "dependency" => array('element' => 'io_slide_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("name" => __("Slide Image", 'zn_framework'), "description" => __("Select an image for this slide", 'zn_framework'), "id" => "io_slide_image", "std" => "", "type" => "media", "alt" => "yes", "dependency" => array('element' => 'io_slide_type', 'value' => array('image'))), array("name" => __("Slide Image Vertical Position", 'zn_framework'), "description" => __("Select the vertical position of the image. Your image might be bigger in height than the actual slider's height so you can select which part should be visible", 'zn_framework'), "id" => "io_slide_image_vert_pos", "std" => "center", "type" => "select", "options" => array("top" => __("Top", 'zn_framework'), "center" => __("Center", 'zn_framework'), "bottom" => __("Bottom", 'zn_framework')), "dependency" => array('element' => 'io_slide_type', 'value' => array('image'))), array("name" => __("Slide Video Youtube ID", 'zn_framework'), "description" => __("Add an Youtube ID", 'zn_framework'), "id" => "io_slide_vd_yt", "std" => "", "type" => "text", "placeholder" => "ex: tR-5AZF9zPI", "dependency" => array('element' => 'io_slide_type', 'value' => array('video_youtube'))), array("name" => __("Embed Iframe link", 'zn_framework'), "description" => __("Add a link", 'zn_framework'), "id" => "source_vd_embed_iframe", "std" => "", "type" => "text", "placeholder" => "ex: https://vimeo.com/17874452", "dependency" => array('element' => 'source_type', 'value' => array('embed_iframe'))), array('id' => 'io_slide_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' => 'io_slide_overlay_color', 'name' => 'Overlay background color', 'description' => 'Pick a color', 'type' => 'colorpicker', 'std' => '#353535', "dependency" => array('element' => 'io_slide_overlay', 'value' => array('1', '2', '3'))), array('id' => 'io_slide_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' => 'io_slide_overlay', 'value' => array('1', '2', '3'))), array('id' => 'io_slide_overlay_color_gradient', 'name' => 'Overlay Gradient 2nd Bg. Color', 'description' => 'Pick a color', 'type' => 'colorpicker', 'std' => '#353535', "dependency" => array('element' => 'io_slide_overlay', 'value' => array('2', '3'))), array('id' => 'io_slide_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' => 'io_slide_overlay', 'value' => array('2', '3'))))), 'caption' => array('title' => 'Slide caption', 'options' => array(array("name" => __("Slide Caption Options", 'zn_framework'), "id" => "scapt_title", "std" => "", "type" => "zn_title", "class" => "zn-custom-title-xl"), array("name" => __("Slider Caption Style", 'zn_framework'), "description" => __("Select the desired style for this slide. !!! STYLE PREVIEW LINK TO ADD !!!", 'zn_framework'), "id" => "io_slide_caption_style", "std" => "", "type" => "select", "options" => array("style1" => __("Style 1", 'zn_framework'), "style2" => __("Style 2", 'zn_framework'), "style3" => __("Style 3", 'zn_framework'), "style3 s3ext" => __("Style 3s (since v4.0+)", 'zn_framework'), "style4" => __("Style 4 (since v4.0+)", 'zn_framework'), "style4 s4ext" => __("Style 4s (since v4.0+)", 'zn_framework'), "style5" => __("Style 5 (since v4.0+)", 'zn_framework'), "style6" => __("Style 6 (since v4.0+)", 'zn_framework')), "class" => ""), array("name" => __("POPUP Video Youtube ID", 'zn_framework'), "description" => __("Add an Youtube ID to be displayed inside the popup", 'zn_framework'), "id" => "io_slide_s6_yt", "std" => "", "type" => "text", "placeholder" => "ex: tR-5AZF9zPI", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style6'))), array("name" => __("Slide main title", 'zn_framework'), "description" => __("Enter a main title for this slide. Accepts HTML.", 'zn_framework'), "id" => "io_slide_m_title", "std" => "", "type" => "text", "class" => "zn_input_xl"), array("name" => __("Add square box?", 'zn_framework'), "description" => __("Add a dark square box behind the main title?", 'zn_framework'), "id" => "io_slide_m_title_s5_sqbox", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style5'))), array("name" => __("Add Separator Line?", 'zn_framework'), "description" => __("Add a fancy separator line under the main title?", 'zn_framework'), "id" => "io_slide_sep_line", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style5'))), array("name" => __("Slide big title", 'zn_framework'), "description" => __("Enter a title for this slide. Accepts HTML.", 'zn_framework'), "id" => "io_slide_b_title", "std" => "", "type" => "text", "class" => "zn_input_xl", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style1', 'style2', 'style3', 'style3 s3ext', 'style4', 'style4 s4ext', 'style5'))), array("name" => __("Slide small title", 'zn_framework'), "description" => __("Enter a small title for this slide. Accepts HTML.", 'zn_framework'), "id" => "io_slide_s_title", "std" => "", "type" => "text", "class" => "zn_input_xl"), array("name" => __("Slide small top text", 'zn_framework'), "description" => __("Enter a text that will be displayed before the main title. Accepts HTML.", 'zn_framework'), "id" => "io_slide_s_title_top", "std" => "", "type" => "text", "class" => "zn_input_xl", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style5'))), array("name" => __("Slide link", 'zn_framework'), "description" => __("Here you can add a link to your slide", 'zn_framework'), "id" => "io_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "class" => "zn_link_styled", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style1', 'style2', 'style3', 'style3 s3ext', 'style4', 'style4 s4ext', 'style5'))), array("name" => __("Slide link (secondary link)", 'zn_framework'), "description" => __("Here you can add link for a second button", 'zn_framework'), "id" => "io_slide_link2", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "class" => "zn_link_styled", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style5'))), array("name" => __("Buttons sizes", 'zn_framework'), "description" => __("You can select the sizes of the buttons", 'zn_framework'), "id" => "io_btn_sizes", "std" => "", "type" => "select", "options" => array('' => __("Default", 'zn_framework'), 'btn-lg' => __("Large", 'zn_framework'), 'btn-md' => __("Medium", 'zn_framework'), 'btn-sm' => __("Small", 'zn_framework'), 'btn-xs' => __("Extra small", 'zn_framework')), "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style3', 'style3 s3ext', 'style5'))), array("name" => __("Link Image?", 'zn_framework'), "description" => __("Select yes if you want to also link the slide image. Please note that by enabling this\n\t\t\t\t\t\t\t\t\toption, in Internet Explorer 8 the swipe function won't behave properly.", 'zn_framework'), "id" => "io_slide_link_image", "std" => "no", "type" => "select", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "class" => "zn_input_xs", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style1', 'style2', 'style3', 'style3 s3ext', 'style4', 'style4 s4ext', 'style5'))), array("name" => __("Slider Caption Entry Animation/Position", 'zn_framework'), "description" => __("Select the desired entry Animation/Position for this slide.", 'zn_framework'), "id" => "io_slide_caption_pos", "std" => "", "type" => "select", "options" => array("zn_def_anim_pos" => __("Slide from Left", 'zn_framework'), "fromright" => __("Slide from Right", 'zn_framework'), "zoomin" => __("Zoom In", 'zn_framework'), "sfb" => __("Slide from bottom", 'zn_framework')), "class" => "", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style1', 'style2', 'style3', 'style3 s3ext', 'style4', 'style4 s4ext', 'style5'))), array("name" => __("Slider Caption Horizontal Position", 'zn_framework'), "description" => __("Select the desired horizontal position for this slide. Center only works for Style 5 and 6.", 'zn_framework'), "id" => "io_slide_caption_pos_horiz", "std" => "left", "type" => "select", "options" => array("aligncenter" => __("Center (Only for caption style 5 and 6)", 'zn_framework'), "alignleft" => __("Left (default)", 'zn_framework'), "alignright" => __("Right", 'zn_framework')), "class" => ""), array("name" => __("Slider Caption Vertical Position", 'zn_framework'), "description" => __("Select the desired vertical position for this\n\t\t\t\t\t\t\t\t\t\t\t\t\t slide.", 'zn_framework'), "id" => "io_slide_caption_pos_vert", "std" => "bottom", "type" => "select", "options" => array("top" => __("Top", 'zn_framework'), "bottom" => __("Bottom (default)", 'zn_framework'), "middle" => __("Middle", 'zn_framework')), "class" => ""), array("name" => __("Add image boxes?", 'zn_framework'), "description" => __("This feature will enable displaying multiple small images/thumbs.", 'zn_framework'), "id" => "io_slide_imgboxes", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs", "dependency" => array('element' => 'io_slide_caption_style', 'value' => array('style1', 'style2', 'style3', 'style3 s3ext', 'style4', 'style4 s4ext', 'style5'))), array("name" => __("Image Box 1", 'zn_framework'), "description" => __("Select an image for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i1_src", "std" => "", "type" => "media", "alt" => "yes", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1'))), array("name" => __("Image Box 1 - URL", 'zn_framework'), "description" => __("Add an url for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i1_url", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "class" => "zn_link_styled", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1'))), array("name" => __("Image Box 2", 'zn_framework'), "description" => __("Select an image for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i2_src", "std" => "", "type" => "media", "alt" => "yes", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1'))), array("name" => __("Image Box 2 - URL", 'zn_framework'), "description" => __("Add an url for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i2_url", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "class" => "zn_link_styled", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1'))), array("name" => __("Image Box 3", 'zn_framework'), "description" => __("Select an image for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i3_src", "std" => "", "type" => "media", "alt" => "yes", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1'))), array("name" => __("Image Box 3 - URL", 'zn_framework'), "description" => __("Add an url for this Image Box", 'zn_framework'), "id" => "io_slide_imgboxes_i3_url", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "class" => "zn_link_styled", "dependency" => array('element' => 'io_slide_imgboxes', 'value' => array('1')))))));
     return array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Fullscreen", 'zn_framework'), "description" => __("Chose wether the slider should be fixed height or fullscreen.", 'zn_framework'), "id" => "io_s_s_fullscreen", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array("name" => __("Slider Height", 'zn_framework'), "description" => __("Enter a numeric value for the slider height.Please note that the value will be used\n\t\t\t\t\t\t\t\t\tas percentage. The default value is 39%. This option works if Fullscreen is disabled.", 'zn_framework'), "id" => "io_s_s_height", "std" => "", "type" => "text", "placeholder" => "39%", "class" => "zn_input_xs", "dependency" => array('element' => 'io_s_s_fullscreen', 'value' => array('0'))), array("name" => __("Autoplay?", 'zn_framework'), "description" => __("Autoplay slider?", 'zn_framework'), "id" => "io_s_autoplay", "std" => "1", "value" => "1", "type" => "toggle2"), array("name" => __("Transition Speed", 'zn_framework'), "description" => __("Enter a numeric value for the transition speed (default: 5000)", 'zn_framework'), "id" => "io_s_trans", "std" => "5000", "type" => "text", "class" => "zn_input_xs"), array("name" => __("Slider Navigation", 'zn_framework'), "description" => __("Choose what type of navigation you want to use for your slide.", 'zn_framework'), "id" => "io_s_navigation", "std" => "bullets", "type" => "select", "options" => array("bullets" => __("Bullets", 'zn_framework'), "bullets2" => __("Bullets Style 2 (since v4.0+)", 'zn_framework'), "thumbs" => __("Thumbnails", 'zn_framework'))), array("name" => __("Enable Slide Dragging", 'zn_framework'), "description" => __("Enable Slides Dragging with your mouse cursor?", 'zn_framework'), "id" => "io_s_clickdrag", "std" => "1", "value" => "1", "type" => "toggle2"))), 'styling' => array('title' => 'Styles Options', 'options' => array(array("name" => __("Add Fade Effect?", 'zn_framework'), "description" => __("Choose if you want to add a bottom fade effect to your slider.", 'zn_framework'), "id" => "io_s_fade", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'io_s_fade_color', 'name' => 'Color for the fading background', 'description' => 'Pick a color', 'type' => 'colorpicker', 'std' => '#f5f5f5', "dependency" => array('element' => 'io_s_fade', 'value' => array('1'))), array("name" => __("Use fixed width slider?", 'zn_framework'), "description" => __("Choose if you want to use a full width slider or a fixed width one.", 'zn_framework'), "id" => "io_s_width", "std" => "0", "type" => "select", "options" => array("0" => __("Full Width", 'zn_framework'), "1" => __("Fixed Width", 'zn_framework')), "class" => "zn_input_sm"), array("name" => __("Relative Height for Fixed width slider", 'zn_framework'), "description" => __("In case you select Fixed width, please specify if you want the slider to resize relatively to the width of the screen on smaller screen devices. Basically if you enable this, the slider will shrink itself vertically relative to width of the page.", 'zn_framework'), "id" => "io_s_fixdwidth_relative", "std" => "", "value" => "ios--fw--relativeresp", "type" => "toggle2", "dependency" => array('element' => 'io_s_width', 'value' => array('1'))), array("name" => __("Use fixed position (scroll) slider?", 'zn_framework'), "description" => __("Choose if you want your slider to be fixed on the page when you scroll down", 'zn_framework'), "id" => "io_s_scroll", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array("name" => __("Add scrolling effect?", 'zn_framework'), "description" => __("Choose if you want the slider to have a scrolling effect on the entire slider and captions. The captions will fade while the slider will slowly move downwards upon scrolling.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "io_s_scrolling_effect", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array("name" => __("Slider Background Style", 'zn_framework'), "description" => __("Select the background style you want to use for this slider. Please note that styles\n\t\t\t\t\t\t\tcan be created from the unlimited headers options in the theme admin's page.", 'zn_framework'), "id" => "io_header_style", "std" => "", "type" => "select", "options" => WpkZn::getThemeHeaders(true), "class" => "", 'live' => array('type' => 'class', 'css_class' => '.' . $this->data['uid'], 'val_prepend' => 'uh_')), 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')), "dependency" => array('element' => 'bullets', 'value' => array('bullets', 'bullets2'))))), 'slides' => array('title' => 'Slides options', 'options' => array($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/#Hgwzjxw7ng4', 'docs' => 'http://support.hogash.com/documentation/ios-slider/', 'copy' => $uid, 'general' => true)));
 }
Пример #25
0
 /**
  * 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" => __("Slides", 'zn_framework'), "description" => __("Here you can create your Laptop Slider Slides.", 'zn_framework'), "id" => "single_lslides", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "ls_slide_title", "subelements" => array(array("name" => __("Slide image", 'zn_framework'), "description" => __("Select an image for this Slide", 'zn_framework'), "id" => "ls_slide_image", "std" => "", "type" => "media"), array("name" => __("Slide title", 'zn_framework'), "description" => __("This title will appear on the left side.", 'zn_framework'), "id" => "ls_slide_title", "std" => "", "type" => "text"), array("name" => __("Slide Description", 'zn_framework'), "description" => __("This description will appear on the left side.", 'zn_framework'), "id" => "ls_slide_desc", "std" => "", "type" => "textarea"), array("name" => __("Primary Button", 'zn_framework'), "description" => __("Here you can add data for the primary button. In case the general slider style is 'Just Laptop', this link will be used to add a link to the title of the slide.", 'zn_framework'), "id" => "ls_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Secondary Button", 'zn_framework'), "description" => __("Here you can add data for the secondary button.", 'zn_framework'), "id" => "ls_slide_link_sec", "std" => "", "type" => "link", "options" => zn_get_link_targets())));
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "ls_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Slider Title", 'zn_framework'), "description" => __("Here you can enter a main title that will appear above the slider.", 'zn_framework'), "id" => "ls_slider_desc", "std" => "", "type" => "textarea", "class" => ''), array("name" => __("Slider Display", 'zn_framework'), "description" => __("Select how to display the slider.", 'zn_framework'), "id" => "ls_slider_display", "std" => "laptop", "type" => "select", "options" => array('laptop' => __("Just laptop", 'zn_framework'), 'lapt_desc' => __("Laptop with ITEMS description", 'zn_framework'), 'lapt_slider_desc' => __("Laptop with SLIDER details", 'zn_framework'))), array("name" => __("Main title", 'zn_framework'), "description" => __("This title will appear on the left side.", 'zn_framework'), "id" => "ls_slide_title", "std" => "", "type" => "text", "dependency" => array('element' => 'ls_slider_display', 'value' => array('lapt_slider_desc'))), array("name" => __("Main Description", 'zn_framework'), "description" => __("This description will appear on the left side.", 'zn_framework'), "id" => "ls_slide_desc", "std" => "", "type" => "textarea", "dependency" => array('element' => 'ls_slider_display', 'value' => array('lapt_slider_desc'))), array("name" => __("Primary Button", 'zn_framework'), "description" => __("Here you can add data for the primary button. In case the general slider style is 'Just Laptop', this link will be used to add a link to the title of the slide.", 'zn_framework'), "id" => "ls_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "dependency" => array('element' => 'ls_slider_display', 'value' => array('lapt_slider_desc'))), array("name" => __("Secondary Button", 'zn_framework'), "description" => __("Here you can add data for the secondary button.", 'zn_framework'), "id" => "ls_slide_link_sec", "std" => "", "type" => "link", "options" => zn_get_link_targets(), "dependency" => array('element' => 'ls_slider_display', 'value' => array('lapt_slider_desc'))), array('id' => 'ls_slide_bullets', 'name' => 'Enable bullets?', 'description' => 'Enable bullets for the slides?', 'type' => 'select', 'std' => '1', "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'ls_slide_arrows', 'name' => 'Enable Control Arrows?', 'description' => 'Enable next & prev arrows?', 'type' => 'select', 'std' => '1', "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'enable_autoplay', 'name' => 'Enable Auto play ?', 'description' => 'Select if you want to autoplay the slider', 'type' => 'toggle2', 'std' => 'yes', 'value' => 'yes'), array("name" => __("Transition Timeout", 'zn_framework'), "description" => __("Enter a numeric value automatic timeout between slides (default: 5000)", 'zn_framework'), "id" => "ls_trans", "std" => "5000", "type" => "text", "class" => "zn_input_xs", 'dependency' => array('element' => 'enable_autoplay', 'value' => array('yes'))), array("name" => __("Text Theme Colors", 'zn_framework'), "description" => __("Select the color theming. Perhaps you want a light background with dark text or viceversa.", 'zn_framework'), "id" => "ls_theme_color", "std" => "light", "type" => "select", "options" => array('light' => __("Light", 'zn_framework'), 'dark' => __("Dark", 'zn_framework'))))), 'items' => array('title' => 'Add slides', '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" => "ls_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('id' => 'source_mask', 'name' => 'Add bottom mask?', 'description' => 'Add a bottom mask?', 'type' => 'select', 'std' => '1', "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", '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/#tyNiHoWQsUE', 'docs' => 'http://support.hogash.com/documentation/laptop-slider/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #26
0
 /**
  * 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" => __("Slides", 'zn_framework'), "description" => __("Here you can create your Portfolio Slider Slides.", 'zn_framework'), "id" => "single_pslides", "std" => "", "type" => "group", "add_text" => __("Slide", 'zn_framework'), "remove_text" => __("Slide", 'zn_framework'), "group_sortable" => true, "element_title" => "ps_slide_title", "subelements" => array(array("name" => __("Slide title", 'zn_framework'), "description" => __("This title will appear as browser title", 'zn_framework'), "id" => "ps_slide_title", "std" => "", "type" => "text"), array("name" => __("Slide link", 'zn_framework'), "description" => __("Here you can add a link to your slide", 'zn_framework'), "id" => "ps_slide_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array("name" => __("Front Image", 'zn_framework'), "description" => __("Select an image that will appear on front", 'zn_framework'), "id" => "ps_slide_image1", "std" => "", "type" => "media"), array("name" => __("Left Image", 'zn_framework'), "description" => __("Select an image that will appear on left", 'zn_framework'), "id" => "ps_slide_image2", "std" => "", "type" => "media"), array("name" => __("Right Image", 'zn_framework'), "description" => __("Select an image that will appear on right", 'zn_framework'), "id" => "ps_slide_image3", "std" => "", "type" => "media")));
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "psl_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Element Height", 'zn_framework'), "description" => __("<strong><em>Please read!</em></strong><br>Enter a numeric value for the slider height. This option works if Fullscreen is disabled. If you don't add any height, the height will be automatically rely on the content inside the element. ", 'zn_framework'), "id" => "ww_height", "std" => "", "type" => "text", "placeholder" => "ex: 600px", "class" => "zn_input_xs", 'dependency' => array('element' => 'psl_fullscreen', 'value' => array('0'))), array("name" => __("Slider Main Title", 'zn_framework'), "description" => __("Here you can enter a description that will appear above the slider.", 'zn_framework'), "id" => "ps_slider_title", "std" => "", "type" => "text", "class" => ''), array("name" => __("Slider Description", 'zn_framework'), "description" => __("Here you can enter a description that will appear above the slider.", 'zn_framework'), "id" => "ps_slider_desc", "std" => "", "type" => "textarea", "class" => ''), array("name" => __("Sliding Direction", 'zn_framework'), "description" => __("Select the desired sliding direction.", 'zn_framework'), "id" => "ps_sliding_direction", "std" => "Vertical", "type" => "select", "options" => array("Horizontal" => __("Horizontal from right", 'zn_framework'), "horizontal psl--left" => __("Horizontal from left", 'zn_framework'), "Vertical" => __("Vertical", 'zn_framework')), "class" => ""), array("name" => __("Parallax scrolling effect?", 'zn_framework'), "description" => __("Choose if you want the slider to have a scrolling effect on the slider.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "ps_scrolling_effect", "std" => "0", "type" => "select", "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"))), 'items' => array('title' => 'Add Items', 'options' => array($extra_options)), 'background' => array('title' => 'Background & Styles Options', 'options' => array(array("name" => __("Slider Background Style", 'zn_framework'), "description" => __("Select the background style you want to use for this slider. Please note that styles\n\t\t\t\t\t\t\tcan be created from the unlimited headers options in the theme admin's page.", 'zn_framework'), "id" => "ps_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/#1P0fu6T1GrU', 'docs' => 'http://support.hogash.com/documentation/portfolio-slider/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #27
0
<?php

global $sidebar_option;
$zn_meta_locations = array(array('title' => __('Post Options', 'zn_framework'), 'slug' => 'post_options', 'page' => array('post'), 'context' => 'side', 'priority' => 'default'), array('title' => __('Page Options', 'zn_framework'), 'slug' => 'page_options', 'page' => array('page', 'product'), 'context' => 'side', 'priority' => 'default'), array('title' => __('Portfolio Options', 'zn_framework'), 'slug' => 'portfolio_options', 'page' => array('portfolio', 'showcase'), 'context' => 'side', 'priority' => 'default'), array('title' => __('General Options', 'zn_framework'), 'slug' => 'portfolio_g_options', 'page' => array('portfolio'), 'context' => 'normal', 'priority' => 'high'));
$general_options_slug = array('page_options', 'portfolio_options', 'post_options', 'woocommerce_options');
$zn_meta_elements[] = array('slug' => array('post_options', 'page_options'), 'name' => __('Post Layout Options', 'zn_framework'), 'description' => __('Select your desired layout', 'zn_framework'), 'id' => 'zn_page_layout', 'std' => 'default', 'type' => 'select', 'class' => 'zn_full', 'options' => array('left_sidebar' => __('Left Sidebar', 'zn_framework'), 'right_sidebar' => __('Right sidebar', 'zn_framework'), 'no_sidebar' => __('No sidebar', 'zn_framework'), 'default' => __('Default - Set from theme options', 'zn_framework')));
if (!isset($sidebar_option) || empty($sidebar_option)) {
    $sidebar_option = WpkZn::getThemeSidebars();
}
$page_sidebar = array_merge($sidebar_option, array('default' => __('Default - Set from theme options', 'zn_framework')));
$zn_meta_elements[] = array('slug' => array('post_options', 'page_options'), 'name' => __('Select sidebar', 'zn_framework'), 'description' => __('Select your desired sidebar to be used on this post. <b>Please note that for the blog and shop assigned pages, the sidebar needs to be selected from the theme options panel.</b>', 'zn_framework'), 'id' => 'zn_sidebar_select', 'std' => 'default', 'type' => 'select', 'class' => 'zn_full', 'options' => $page_sidebar);
/** POST OPTIONS **/
$zn_meta_elements[] = array('slug' => array('post_options'), 'name' => __('Show Social Share Buttons?', 'zn_framework'), 'description' => __('Choose if you want to show the social share buttons bellow the post\'s content.', 'zn_framework'), 'id' => 'zn_show_social', 'std' => 'default', 'type' => 'select', 'options' => array('show' => __('Show social buttons', 'zn_framework'), 'hide' => __('Do not show social buttons', 'zn_framework'), 'default' => __('Default - Set from theme options', 'zn_framework')), 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('post_options', 'page_options', 'portfolio_options'), 'name' => __('Hide page subheader?', 'zn_framework'), 'description' => __('Chose yes if you want to hide the page sub-header ( including sliders ). Please note that this option will overwrite the option set in the admin panel', 'zn_framework'), 'id' => 'zn_zn_disable_subheader', 'std' => '', 'options' => array('' => __('Default - Set from theme options', 'zn_framework'), 'yes' => __('Yes', 'zn_framework'), 'no' => __('No', 'zn_framework')), 'type' => 'select', 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('post_options', 'page_options', 'portfolio_options'), 'name' => __('Sub-header style', 'zn_framework'), 'description' => __('Choose what sub-header style to use.', 'zn_framework'), 'id' => 'zn_subheader_style', 'std' => 'zn_def_header_style', 'options' => WpkZn::getThemeHeaders(true), 'type' => 'select', 'class' => 'zn_full');
/** END POST OPTIONS **/
/** PAGE OPTIONS **/
$zn_meta_elements[] = array('slug' => array('page_options'), "name" => __("Boxed layout?", 'zn_framework'), "description" => __("Select whether or not you want to use Boxed layout or just use the\n\t\t\t\t\t\tdefault theme setting.", 'zn_framework'), "id" => "zn_page_override_boxed_layout", "std" => "def", "options" => array('def' => __('Default', 'zn_framework'), 'yes' => __('Yes', 'zn_framework'), 'no' => __('No', 'zn_framework')), "type" => "zn_radio", 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('page_options'), "name" => __("Show Page Title?", 'zn_framework'), "description" => __("Choose yes if you want to show the page title above the content.", 'zn_framework'), "id" => "zn_page_title_show", "std" => "yes", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), "type" => "zn_radio", 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('page_options'), "name" => __("Alternative Page Title", 'zn_framework'), "description" => __("Enter your desired title for this page. Please note that this title will appear on the\n\t\t\t\t\t\ttop-right of your header if you choose to use a page header.If this field is not completed, the normal page title\n\t\t\t\t\t\t will appear in both top-right part of the header as well as the normal location of page title.", 'zn_framework'), "id" => "zn_page_title", "std" => "", "type" => "text", 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('page_options'), "name" => __("Page Subtitle", 'zn_framework'), "description" => __("Enter your desired subtitle for this page.Please note that the appearance of this subtitle is subject of default or custom options of the header part.", 'zn_framework'), "id" => "zn_page_subtitle", "std" => "", "type" => "text", 'class' => 'zn_full');
/** END PAGE OPTIONS **/
/** PORTFOLIO GENERAL OPTIONS **/
$zn_meta_elements[] = array('slug' => array('portfolio_options'), "name" => __("Show Title?", 'zn_framework'), "description" => __("Choose yes if you want to show the title above the content.", 'zn_framework'), "id" => "zn_page_title_show", "std" => "yes", "type" => "zn_radio", "options" => array("yes" => __("Yes", 'zn_framework'), "no" => __("No", 'zn_framework')), 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('portfolio_options'), "name" => __("Alternative Title", 'zn_framework'), "description" => __("Enter your desired title for this page. Please note that this title will appear on the\n\t\t\t\t\t\ttop-right of your header if you choose to use a page header.If this field is not completed, the normal page title\n\t\t\t\t\t\twill appear in both top-right part of the header as well as the normal location of page title.", 'zn_framework'), "id" => "zn_page_title", "std" => "", "type" => "text", 'class' => 'zn_full');
$zn_meta_elements[] = array('slug' => array('portfolio_options'), "name" => __("Subtitle", 'zn_framework'), "description" => __("Enter your desired subtitle for this page.Please note that the appearance of this subtitle is subject of default or custom options of the header part.", 'zn_framework'), "id" => "zn_page_subtitle", "std" => "", "type" => "text", 'class' => 'zn_full');
/** END PORTFOLIO GENERAL OPTIONS **/
/** PORTFOLIO OPTIONS **/
$zn_meta_elements[] = array('slug' => array('portfolio_g_options'), "name" => __("Project Live Link", 'zn_framework'), "description" => __("Please choose the live url for this project.", 'zn_framework'), "id" => "zn_sp_link", "std" => "", "type" => "link", "options" => zn_get_link_targets(array('modal_inline_dyn')));
$zn_meta_elements[] = array('slug' => array('portfolio_g_options'), "name" => __("Live link button text", 'zn_framework'), "description" => __("Enter your default text that will appear on the Live link. The default text is Project live preview", 'zn_framework'), "id" => "zn_sp_link_text", "std" => "", "type" => "text", "placeholder" => "eg: PROJECT LIVE PREVIEW");
/** PORTFOLIO Predefined fields **/
 /**
  * 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 Height", 'zn_framework'), "description" => __("<strong><em>Please read!</em></strong><br>Enter a numeric value for the slider height. This option works if Fullscreen is disabled. If you don't add any height, the height will be automatically rely on the content inside the element. ", 'zn_framework'), "id" => "ww_height", "std" => "", "type" => "text", "placeholder" => "ex: 600px", "class" => "zn_input_xs", 'dependency' => array('element' => 'sc_fullscreen', 'value' => array('0'))), array("name" => __("Enable fullscreen?", 'zn_framework'), "description" => __("Do you want to display the static content as fullscreen?", 'zn_framework'), "id" => "sc_fullscreen", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Enable scrolling effect?", 'zn_framework'), "description" => __("Do you want to enable the scrolling effects? Might cause performance issues.<br> <strong style=' color: #9B4F4F;'>This options works only if the slider is positioned at the very top opf the page!!</strong>", 'zn_framework'), "id" => "sc_scrolling", "std" => "0", "type" => "select", "options" => array('1' => __("Yes", 'zn_framework'), '0' => __("No", 'zn_framework'))), array("name" => __("Parallax Scrolling effect type?", 'zn_framework'), "description" => __("Select the effect type", 'zn_framework'), "id" => "sc_scrolling_type", "std" => "translate_op_scale", "type" => "select", "options" => array('translate_op_scale' => __("Translate + Fade + Scale", 'zn_framework'), 'translate_op' => __("Translate + Fade", 'zn_framework'), 'translate' => __("Translate", 'zn_framework')), 'dependency' => array('element' => 'sc_scrolling', 'value' => array('1'))), array("name" => __("Text", 'zn_framework'), "description" => __("Please enter your desired text.", 'zn_framework'), "id" => "sc_sc", "std" => "", "type" => "textarea"), array("name" => __("Button Text", 'zn_framework'), "description" => __("Please enter a text that will appear as a button bellow your text.", 'zn_framework'), "id" => "sc_button_text", "std" => "", "type" => "text"), array("name" => __("Button Style", 'zn_framework'), "description" => __("Select a button style.", 'zn_framework'), "id" => "sc_button_style", "std" => "btn-fullcolor", "type" => "select", "options" => array('btn-fullcolor' => __("Flat", 'zn_framework'), 'btn-fullcolor btn-skewed' => __("Flat & Skewed", 'zn_framework'), 'btn-lined' => __("Lined", 'zn_framework'), 'btn-lined btn-skewed' => __("Lined & Skewed", 'zn_framework'))), array("name" => __("Text color theme", 'zn_framework'), "description" => __("Please choose a color theme.", 'zn_framework'), "id" => "sc_text_theme", "std" => "grayish", "type" => "select", "options" => array('light' => __("Light", 'zn_framework'), 'grayish' => __("Grayish (default)", 'zn_framework'), 'dark' => __("Dark", 'zn_framework'))), array("name" => __("Button link", 'zn_framework'), "description" => __("Please choose the link you want to use for your button.", 'zn_framework'), "id" => "sc_button_link", "std" => "", "type" => "link", "options" => zn_get_link_targets()), array('id' => 'sc_fademask', 'name' => 'Enable Faded Mask?', 'description' => 'Add a faded mask at the bottom?', 'type' => 'select', 'std' => '0', "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs"), array('id' => 'sc_fadeboxed', 'name' => 'Enable Boxed Mask?', 'description' => 'Enable Boxed Mask with content over Static content?', 'type' => 'select', 'std' => '0', "options" => array("1" => __("Yes", 'zn_framework'), "0" => __("No", 'zn_framework')), "class" => "zn_input_xs", "dependency" => array('element' => 'sc_fademask', 'value' => array('1'))))), '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'))))), '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/#MrhHNfeZYrk', 'docs' => 'http://support.hogash.com/documentation/static-content-simple-text/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #29
0
 /**
  * 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()
 {
     $activelist = WpkZn::getPortfolioCategories();
     if (!empty($activelist)) {
         $allarr = array("*" => "All");
         $activelist = $allarr + $activelist;
     }
     $uid = $this->data['uid'];
     $options = array('has_tabs' => true, 'general' => array('title' => 'General options', 'options' => array(array("name" => __("Archive style", 'zn_framework'), "description" => __("Please choose the desired archive style to display.", 'zn_framework'), "id" => "portfolio_style", "std" => 'portfolio_sortable', "type" => "select", "options" => array('portfolio_category' => __('Portfolio Category', 'zn_framework'), 'portfolio_sortable' => __('Portfolio Sortable', 'zn_framework'), 'portfolio_carousel' => __('Portfolio Carousel Layout', 'zn_framework'))), array("name" => __("Frame Style", 'zn_framework'), "description" => __("Please choose which frame style to apply.", 'zn_framework'), "id" => "frame_style", "std" => 'classic', "type" => "select", "options" => array("classic" => 'Classic', "modern" => 'Modern', "minimal" => 'Minimal'), 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_carousel'))), array("name" => __("Portfolio Category", 'zn_framework'), "description" => __("Select the portfolio category to show items", 'zn_framework'), "id" => "portfolio_categories", "multiple" => true, "std" => "0", "type" => "select", "options" => WpkZn::getPortfolioCategories()), array("name" => __("Number of portfolio Items Per Page", 'zn_framework'), "description" => __("Please enter how many portfolio items you want to load on a page.", 'zn_framework'), "id" => "ports_per_page_visible", "std" => "4", "type" => "text"), array("name" => __("Show load more button", 'zn_framework'), "description" => __("Choose if you want to show the load more button or not.", 'zn_framework'), "id" => "ptf_sort_loadmore", "std" => 'no', "type" => "toggle2", "value" => "yes", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Active Button in Portfolio Menu", 'zn_framework'), "description" => __("Choose the active category or wether all should be displayed on page load.", 'zn_framework'), "id" => "ptf_sort_activebutton", "std" => '*', "type" => "select", "options" => $activelist, 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Number of columns", 'zn_framework'), "description" => __("Please enter how many portfolio items you want to load on a page.", 'zn_framework'), "id" => "ports_num_columns", "std" => "4", "options" => array('1' => __('1', 'zn_framework'), '2' => __('2', 'zn_framework'), '3' => __('3', 'zn_framework'), '4' => __('4', 'zn_framework')), "type" => "select", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable', 'portfolio_category'))), array("name" => __("Show Sort by Name/Date & Direction Toolbar?", 'zn_framework'), "description" => __("Choose if you want to show Sort by Name/Date & Direction bar.", 'zn_framework'), "id" => "ptf_show_sort", "std" => 'yes', "type" => "toggle2", "value" => "yes", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Default Sorting type", 'zn_framework'), "description" => __("Choose the default sorting type.", 'zn_framework'), "id" => "ptf_sortby_type", "std" => 'date', "type" => "select", "options" => array('name' => __('Name', 'zn_framework'), 'date' => __('Date', 'zn_framework')), 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Default Sorting Direction", 'zn_framework'), "description" => __("Choose the default sorting direction.", 'zn_framework'), "id" => "ptf_sort_dir", "std" => 'asc', "type" => "select", "options" => array('asc' => __('Asc', 'zn_framework'), 'desc' => __('Desc', 'zn_framework')), 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Show item description", 'zn_framework'), "description" => __("Choose if you want to show the item description.", 'zn_framework'), "id" => "ptf_show_desc", "std" => 'yes', "type" => "toggle2", "value" => "yes", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_sortable'))), array("name" => __("Show item details bellow post content", 'zn_framework'), "description" => __("Here, you can choose to show the portfolio item details like CLIENt, YEAR, etc. <b> Important : Will only work when you select 1 column layout </b> ).", 'zn_framework'), "id" => "ports_extra_content", "std" => "no", "options" => array('yes' => __('Show', 'zn_framework'), 'no' => __('Hide', 'zn_framework')), "type" => "select", 'dependency' => array('element' => 'portfolio_style', 'value' => array('portfolio_category'))), array('id' => 'portfolio_scheme', 'name' => 'Portfolio color scheme', 'description' => 'Select the color scheme of the Portfolio', 'type' => 'select', 'std' => '', 'options' => array('' => 'Inherit from Portfolio Options (Kallyas options)', 'light' => 'Light', 'dark' => 'Dark')))), '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/#b1z44M6EaM4', 'docs' => 'http://support.hogash.com/documentation/portfolio-archive/', 'copy' => $uid, 'general' => true)));
     return $options;
 }
Пример #30
0
 /**
  * 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" => __("Background Style", 'zn_framework'), "description" => __("Select the background style you want to use. Please note that styles can be created\n\t\t\t\t\t\t\t\t\tfrom 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" => __("Select slider", 'zn_framework'), "description" => __("Select the desired slider you want to use. Please note that the slider can be created\n\t\t\t\t\t\t\t\t\tfrom inside the Cute Slider option.", 'zn_framework'), "id" => "cuteslider_id", "std" => "", "type" => "select", "options" => $this->_sliders), array('id' => 'top_padding', 'name' => 'Top padding', 'description' => 'Select the top padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '170', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '400', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $this->data['uid'] . ' .kl-slideshow-inner', 'css_rule' => 'padding-top', 'unit' => 'px')), array('id' => 'bottom_padding', 'name' => 'Bottom padding', 'description' => 'Select the bottom padding ( in pixels ) for this section.', 'type' => 'slider', 'std' => '50', 'class' => 'zn_full', 'helpers' => array('min' => '0', 'max' => '400', 'step' => '1'), 'live' => array('type' => 'css', 'css_class' => '.' . $this->data['uid'] . ' .kl-slideshow-inner', 'css_rule' => 'padding-bottom', 'unit' => 'px')), 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'))))), '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/#hiQeyNfwHXw', 'docs' => 'http://support.hogash.com/documentation/3d-cute-slider/', 'copy' => $uid, 'general' => true)));
     return $options;
 }