예제 #1
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;
 }
예제 #2
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;
 }
 /**
  * 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 the latest posts carousel", 'zn_framework'), "id" => "lpc_title", "std" => "", "type" => "text"), array("name" => __("Posts Category", 'zn_framework'), "description" => __("Select the category to show items", 'zn_framework'), "id" => "lpc_categories", "multiple" => true, "std" => 0, "type" => "select", "options" => WpkZn::getBlogCategories()), array("name" => __("Number of items", 'zn_framework'), "description" => __("Please enter how many items you want to load.", 'zn_framework'), "id" => "lpc_num_posts", "std" => 10, "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/#gFcL4BXQpAs', 'docs' => 'http://support.hogash.com/documentation/latest-posts-carousel/', 'copy' => $uid, 'general' => true)));
     return $options;
 }