/**
  * 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;
 }
示例#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" => __("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;
 }
示例#3
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
 */
$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'));