예제 #1
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category"), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "3", "subtype" => array(__('1 Columns', 'avia_framework') => '1', __('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5')), array("name" => __("Entry Number", 'avia_framework'), "desc" => __("How many items should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "9", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling posts. Useful if you want to remove a certain number of posts because you already query them with another post slider element.", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("name" => __("Title and Excerpt", 'avia_framework'), "desc" => __("Choose if you want to only display the post title or title and excerpt", 'avia_framework'), "id" => "contents", "type" => "select", "std" => "excerpt", "subtype" => array(__('Title and Excerpt', 'avia_framework') => 'excerpt', __('Title and Excerpt + Read More Link', 'avia_framework') => 'excerpt_read_more', __('Only Title', 'avia_framework') => 'title', __('Only Title + Read More Link', 'avia_framework') => 'title_read_more', __('Only excerpt', 'avia_framework') => 'only_excerpt', __('Only excerpt + Read More Link', 'avia_framework') => 'only_excerpt_read_more', __('No Title and no excerpt', 'avia_framework') => 'no')), array("name" => __("Preview Image Size", 'avia_framework'), "desc" => __("Set the image size of the preview images", 'avia_framework'), "id" => "preview_mode", "type" => "select", "std" => "auto", "subtype" => array(__('Set the preview image size automatically based on column width', 'avia_framework') => 'auto', __('Choose the preview image size manually (select thumbnail size)', 'avia_framework') => 'custom')), array("name" => __("Select custom preview image size", 'avia_framework'), "desc" => __("Choose image size for Preview Image", 'avia_framework'), "id" => "image_size", "type" => "select", "required" => array('preview_mode', 'equals', 'custom'), "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "no", "subtype" => array(__('Yes', 'avia_framework') => 'yes', __('No', 'avia_framework') => 'no')), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Slideshow will rotate every X seconds", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('autoplay', 'equals', 'yes'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')));
     if (current_theme_supports('add_avia_builder_post_type_option')) {
         $element = array("name" => __("Select Post Type", 'avia_framework'), "desc" => __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.\n                                      If yo don't select post type all registered post types will be used", 'avia_framework'), "id" => "post_type", "type" => "select", "multiple" => 6, "std" => "", "subtype" => AviaHtmlHelper::get_registered_post_type_array());
         array_unshift($this->elements, $element);
     }
 }
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Slider Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category"), array("name" => __("Entry Number", 'avia_framework'), "desc" => __("How many items should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "3", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling posts. Useful if you want to remove a certain number of posts because you already query them with another element.", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "enforce_duplicates", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates', __('Enforce duplicates (if a blog element on the page should show the same entries as this slider use this setting)', 'avia_framework') => 'enforce_duplicates'))), array("name" => __("Title and Read More Button", 'avia_framework'), "desc" => __("Choose if you want to only display the post title or title and a call to action button", 'avia_framework'), "id" => "contents", "type" => "select", "std" => "title", "subtype" => array(__('Only Title', 'avia_framework') => 'title', __('Only Title + Read More Button', 'avia_framework') => 'title_read_more')), array("name" => __("Slider Width/Height Ratio", 'avia_framework'), "desc" => __("The slider will always stretch the full available width. Here you can enter the coresponding height (eg: 4:3, 16:9) or a fixed height in px (eg: 300px)", 'avia_framework'), "id" => "slider_size", "type" => "input", "std" => "16:9"), array("name" => __("Preview Image Size", 'avia_framework'), "desc" => __("Set the image size of the preview images", 'avia_framework'), "id" => "preview_mode", "type" => "select", "std" => "auto", "subtype" => array(__('Set the preview image size automatically based on slider height', 'avia_framework') => 'auto', __('Choose the preview image size manually (select thumbnail size)', 'avia_framework') => 'custom')), array("name" => __("Select custom preview image size", 'avia_framework'), "desc" => __("Choose image size for Preview Image", 'avia_framework'), "id" => "image_size", "type" => "select", "required" => array('preview_mode', 'equals', 'custom'), "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Slideshow control styling?", 'avia_framework'), "desc" => __("Here you can select if and how to display the slideshow controls", 'avia_framework'), "id" => "control_layout", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Minimal', 'avia_framework') => 'av-control-minimal', __('Hidden', 'avia_framework') => 'av-control-hidden')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Slider Transitions", 'avia_framework'), 'nodescription' => true), array("name" => __("Transition", 'avia_framework'), "desc" => __("Choose the transition for your Slider.", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "fade", "subtype" => array(__('Slide', 'avia_framework') => 'slide', __('Fade', 'avia_framework') => 'fade')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "no", "subtype" => array(__('Yes', 'avia_framework') => 'yes', __('No', 'avia_framework') => 'no')), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Slideshow will rotate every X seconds", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('autoplay', 'equals', 'yes'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Slide Overlay", 'avia_framework'), 'nodescription' => true), array("name" => __("Enable Overlay?", 'avia_framework'), "desc" => __("Check if you want to display a transparent color and/or pattern overlay above your slideshow image/video", 'avia_framework'), "id" => "overlay_enable", "std" => "", "type" => "checkbox"), array("name" => __("Overlay Opacity", 'avia_framework'), "desc" => __("Set the opacity of your overlay: 0.1 is barely visible, 1.0 is opaque ", 'avia_framework'), "id" => "overlay_opacity", "type" => "select", "std" => "0.5", "required" => array('overlay_enable', 'not', ''), "subtype" => array(__('0.1', 'avia_framework') => '0.1', __('0.2', 'avia_framework') => '0.2', __('0.3', 'avia_framework') => '0.3', __('0.4', 'avia_framework') => '0.4', __('0.5', 'avia_framework') => '0.5', __('0.6', 'avia_framework') => '0.6', __('0.7', 'avia_framework') => '0.7', __('0.8', 'avia_framework') => '0.8', __('0.9', 'avia_framework') => '0.9', __('1.0', 'avia_framework') => '1')), array("name" => __("Overlay Color", 'avia_framework'), "desc" => __("Select a custom  color for your overlay here. Leave empty if you want no color overlay", 'avia_framework'), "id" => "overlay_color", "type" => "colorpicker", "required" => array('overlay_enable', 'not', ''), "std" => ""), array("required" => array('overlay_enable', 'not', ''), "id" => "overlay_pattern", "name" => __("Background Image", 'avia_framework'), "desc" => __("Select an existing or upload a new background image", 'avia_framework'), "type" => "select", "subtype" => array(__('No Background Image', 'avia_framework') => '', __('Upload custom image', 'avia_framework') => 'custom'), "std" => "", "folder" => "images/background-images/", "folderlabel" => "", "group" => "Select predefined pattern", "exclude" => array('fullsize-', 'gradient')), array("name" => __("Custom Pattern", 'avia_framework'), "desc" => __("Upload your own seamless pattern", 'avia_framework'), "id" => "overlay_custom_pattern", "type" => "image", "fetch" => "url", "secondary_img" => true, "required" => array('overlay_pattern', 'equals', 'custom'), "title" => __("Insert Pattern", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
     if (current_theme_supports('add_avia_builder_post_type_option')) {
         $element = array("name" => __("Select Post Type", 'avia_framework'), "desc" => __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.\n                                      If yo don't select post type all registered post types will be used", 'avia_framework'), "id" => "post_type", "type" => "select", "multiple" => 6, "std" => "", "subtype" => AviaHtmlHelper::get_registered_post_type_array());
         array_unshift($this->elements, $element);
     }
 }
예제 #3
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category"), array("name" => __("Sortable?", 'avia_framework'), "desc" => __("Should sorting options based on the taxonomies above be displayed?", 'avia_framework'), "id" => "sort", "type" => "select", "std" => "yes", "subtype" => array(__('Yes, display sort options', 'avia_framework') => 'yes', __('Yes, display sort options and currently active taxonomy', 'avia_framework') => 'yes-tax', __('No, do not display sort options', 'avia_framework') => 'no')), array("name" => __("Post Number", 'avia_framework'), "desc" => __("How many items should be displayed per page?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "12", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns do you want to display?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "flexible", "subtype" => array(__('Automatic, based on screen width', 'avia_framework') => 'flexible', __('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5', __('6 Columns', 'avia_framework') => '6')), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination or load more option be displayed to view additional entries?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "required" => array('items', 'not', '-1'), "subtype" => array(__('Display Pagination', 'avia_framework') => 'pagination', __('Display "Load More" Button', 'avia_framework') => 'load_more', __('No option to view additional entries', 'avia_framework') => 'none')), array("name" => __("Order by", 'avia_framework'), "desc" => __("You can order the result by various attributes like creation date, title, author etc", 'avia_framework'), "id" => "query_orderby", "type" => "select", "std" => "date", "subtype" => array(__('Date', 'avia_framework') => 'date', __('Title', 'avia_framework') => 'title', __('Random', 'avia_framework') => 'rand', __('Author', 'avia_framework') => 'author', __('Name (Post Slug)', 'avia_framework') => 'name', __('Last modified', 'avia_framework') => 'modified', __('Comment Count', 'avia_framework') => 'comment_count', __('Page Order', 'avia_framework') => 'menu_order')), array("name" => __("Display order", 'avia_framework'), "desc" => __("Display the results either in ascending or descending order", 'avia_framework'), "id" => "query_order", "type" => "select", "std" => "DESC", "subtype" => array(__('Ascending Order', 'avia_framework') => 'ASC', __('Descending Order', 'avia_framework') => 'DESC')), array("name" => __("Size Settings", 'avia_framework'), "desc" => __("Here you can select how the masonry should behave and handle all entries and the feature images of those entries", 'avia_framework'), "id" => "size", "type" => "radio", "std" => "fixed masonry", "options" => array('flex' => __('Flexible Masonry: All entries get the same width but Images of each entry are displayed with their original height and width ratio', 'avia_framework'), 'fixed' => __('Perfect Grid: Display a perfect grid where each element has exactly the same size. Images get cropped/stretched if they don\'t fit', 'avia_framework'), 'fixed masonry' => __('Perfect Automatic Masonry: Display a grid where most elements get the same size, only elements with very wide images get twice the width and elements with very high images get twice the height. To qualify for "very wide" or "very high" the image must have a aspect ratio of 16:9 or higher', 'avia_framework'), 'fixed manually' => __('Perfect Manual Masonry: Manually control the height and width of entries by adding either a "landscape" or "portrait" tag when creating the entry. Elements with no such tag use a fixed default size, elements with both tags will display extra large', 'avia_framework'))), array("name" => __("Gap between elements", 'avia_framework'), "desc" => __("Select the gap between the elements", 'avia_framework'), "id" => "gap", "type" => "select", "std" => "1px", "subtype" => array(__('No Gap', 'avia_framework') => 'no', __('1 Pixel Gap', 'avia_framework') => '1px', __('Large Gap', 'avia_framework') => 'large')), array("name" => __("Image overlay effect", 'avia_framework'), "desc" => __("Do you want to display the image overlay effect that gets removed on mouseover?", 'avia_framework'), "id" => "overlay_fx", "type" => "select", "std" => "active", "subtype" => array(__('Overlay activated', 'avia_framework') => 'active', __('Overlay deactivated', 'avia_framework') => '')), array("name" => __("Element Title and Excerpt", 'avia_framework'), "desc" => __("You can choose if you want to display title and/or excerpt", 'avia_framework'), "id" => "caption_elements", "type" => "select", "std" => "title excerpt", "subtype" => array(__('Display Title and Excerpt', 'avia_framework') => 'title excerpt', __('Display Title', 'avia_framework') => 'title', __('Display Excerpt', 'avia_framework') => 'excerpt', __('Display Neither', 'avia_framework') => 'none')), array("name" => __("Element Title and Excerpt", 'avia_framework'), "desc" => __("You can choose whether to always display Title and Excerpt or only on hover", 'avia_framework'), "id" => "caption_display", "type" => "select", "std" => "always", "required" => array('caption_elements', 'not', 'none'), "subtype" => array(__('Always Display', 'avia_framework') => 'always', __('Display on mouse hover', 'avia_framework') => 'on-hover')), array("name" => __("For Developers: Section ID", 'avia_framework'), "desc" => __("Apply a custom ID Attribute to the section, so you can apply a unique style via CSS. This option is also helpful if you want to use anchor links to scroll to a sections when a link is clicked", 'avia_framework') . "<br/><br/>" . __("Use with caution and make sure to only use allowed characters. No special characters can be used.", 'avia_framework'), "id" => "id", "type" => "input", "std" => ""));
     if (current_theme_supports('add_avia_builder_post_type_option')) {
         $element = array("name" => __("Select Post Type", 'avia_framework'), "desc" => __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.\n                                      If yo don't select post type all registered post types will be used", 'avia_framework'), "id" => "post_type", "type" => "select", "multiple" => 6, "std" => "", "subtype" => AviaHtmlHelper::get_registered_post_type_array());
         array_unshift($this->elements, $element);
     }
 }
예제 #4
0
파일: blog.php 프로젝트: Jiersone/mac
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Do you want to display blog posts?", 'avia_framework'), "desc" => __("Do you want to display blog posts or entries from a custom taxonomy?", 'avia_framework'), "id" => "blog_type", "type" => "select", "std" => "posts", "subtype" => array(__('Display blog posts', 'avia_framework') => 'posts', __('Display entries from a custom taxonomy', 'avia_framework') => 'taxonomy')), array("name" => __("Which categories should be used for the blog?", 'avia_framework'), "desc" => __("You can select multiple categories here. The Page will then show posts from only those categories.", 'avia_framework'), "id" => "categories", "type" => "select", "multiple" => 6, "required" => array('blog_type', 'equals', 'posts'), "subtype" => "cat"), array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "required" => array('blog_type', 'equals', 'taxonomy'), "std" => "category"), array("name" => __("Blog Style", 'avia_framework'), "desc" => __("Choose the default blog layout here.", 'avia_framework'), "id" => "blog_style", "type" => "select", "std" => "single-big", "no_first" => true, "subtype" => array(__('Multi Author Blog (displays Gravatar of the article author beside the entry and feature images above)', 'avia_framework') => 'multi-big', __('Single Author, small preview Pic (no author picture is displayed, feature image is small)', 'avia_framework') => 'single-small', __('Single Author, big preview Pic (no author picture is displayed, feature image is big)', 'avia_framework') => 'single-big', __('Grid Layout', 'avia_framework') => 'blog-grid')), array("name" => __("Blog Grid Columns", 'avia_framework'), "desc" => __("How many columns do you want to display?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "3", "required" => array('blog_style', 'equals', 'blog-grid'), "subtype" => AviaHtmlHelper::number_array(1, 5, 1)), array("name" => __("Define Blog Grid layout", 'avia_framework'), "desc" => __("Do you want to display a read more link?", 'avia_framework'), "id" => "contents", "type" => "select", "std" => "excerpt", "required" => array('blog_style', 'equals', 'blog-grid'), "subtype" => array(__('Title and Excerpt', 'avia_framework') => 'excerpt', __('Title and Excerpt + Read More Link', 'avia_framework') => 'excerpt_read_more', __('Only Title', 'avia_framework') => 'title', __('Only Title + Read More Link', 'avia_framework') => 'title_read_more', __('Only excerpt', 'avia_framework') => 'only_excerpt', __('Only excerpt + Read More Link', 'avia_framework') => 'only_excerpt_read_more', __('No Title and no excerpt', 'avia_framework') => 'no')), array("name" => __("Blog Content length", 'avia_framework'), "desc" => __("Should the full entry be displayed or just a small excerpt?", 'avia_framework'), "id" => "content_length", "type" => "select", "std" => "content", "required" => array('blog_style', 'not', 'blog-grid'), "subtype" => array(__('Full Content', 'avia_framework') => 'content', __('Excerpt', 'avia_framework') => 'excerpt', __('Excerpt With Read More Link', 'avia_framework') => 'excerpt_read_more')), array("name" => __("Preview Image Size", 'avia_framework'), "desc" => __("Set the image size of the preview images", 'avia_framework'), "id" => "preview_mode", "type" => "select", "std" => "auto", "subtype" => array(__('Set the preview image size automatically based on column or layout width', 'avia_framework') => 'auto', __('Choose the preview image size manually (select thumbnail size)', 'avia_framework') => 'custom')), array("name" => __("Select custom preview image size", 'avia_framework'), "desc" => __("Choose image size for Preview Image", 'avia_framework'), "id" => "image_size", "type" => "select", "required" => array('preview_mode', 'equals', 'custom'), "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Post Number", 'avia_framework'), "desc" => __("How many items should be displayed per page?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "3", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling posts. Useful if you want to remove a certain number of posts because you already query them with another blog element.", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination be displayed?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')));
     if (current_theme_supports('add_avia_builder_post_type_option')) {
         $element = array("name" => __("Select Post Type", 'avia_framework'), "desc" => __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.\n                                      If yo don't select post type all registered post types will be used", 'avia_framework'), "id" => "post_type", "type" => "select", "required" => array('blog_type', 'equals', 'taxonomy'), "multiple" => 6, "std" => "", "subtype" => AviaHtmlHelper::get_registered_post_type_array());
         array_splice($this->elements, 2, 0, array($element));
     }
 }
예제 #5
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which categories should be used for the portfolio?", 'avia_framework'), "desc" => __("You can select multiple categories here. The Page will then show posts from only those categories.", 'avia_framework'), "id" => "categories", "type" => "select", "multiple" => 6, "taxonomy" => "portfolio_entries", "subtype" => "cat"), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "4", "subtype" => array(__('1 Column', 'avia_framework') => '1', __('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5', __('6 Columns', 'avia_framework') => '6')), array("name" => __("1 Column layout", 'avia_framework'), "desc" => __("Choose the 1 column layout", 'avia_framework'), "id" => "one_column_template", "type" => "select", "required" => array('columns', 'equals', '1'), "std" => "special", "subtype" => array(__('Use special 1 column layout (side by side)', 'avia_framework') => 'special', __('Use default portfolio layout', 'avia_framework') => 'default')), array("name" => __("Post Number", 'avia_framework'), "desc" => __("How many items should be displayed per page?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "16", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Excerpt", 'avia_framework'), "desc" => __("Display Excerpt and Title below the preview image?", 'avia_framework'), "id" => "contents", "type" => "select", "std" => "yes", "subtype" => array(__('Title and Excerpt', 'avia_framework') => 'excerpt', __('Only Title', 'avia_framework') => 'title', __('Only excerpt', 'avia_framework') => 'only_excerpt', __('No Title and no excerpt', 'avia_framework') => 'no')), array("name" => __("Portfolio Grid Image Size", 'avia_framework'), "desc" => __("Set the image size of the Portfolio Grid images", 'avia_framework'), "id" => "preview_mode", "type" => "select", "std" => "auto", "subtype" => array(__('Set the Portfolio Grid image size automatically based on column or layout width', 'avia_framework') => 'auto', __('Choose the Portfolio Grid image size manually (select thumbnail size)', 'avia_framework') => 'custom')), array("name" => __("Select custom image size", 'avia_framework'), "desc" => __("Choose image size for Portfolio Grid Images", 'avia_framework') . "<br/><small>" . __("(Note: Images will be scaled to fit for the amount of columns chosen above)", 'avia_framework') . "</small>", "id" => "image_size", "type" => "select", "required" => array('preview_mode', 'equals', 'custom'), "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo', 'thumbnail', 'widget'))), array("name" => __("Link Handling", 'avia_framework'), "desc" => __("When clicking on a portfolio item you can choose to open the link to the single entry, open a preview (aka AJAX Portfolio) or show a bigger version of the image in a lightbox overlay", 'avia_framework'), "id" => "linking", "type" => "select", "std" => "", "subtype" => array(__('Open the entry on a new page', 'avia_framework') => '', __('Open a preview of the entry (known as AJAX Portfolio)', 'avia_framework') => 'ajax', __('Display the big image in a lightbox', 'avia_framework') => 'lightbox')), array("name" => __("Sortable?", 'avia_framework'), "desc" => __("Should the sorting options based on categories be displayed?", 'avia_framework'), "id" => "sort", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination be displayed?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')));
     if (current_theme_supports('avia_template_builder_custom_post_type_grid')) {
         $this->elements[0] = array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category");
         if (current_theme_supports('add_avia_builder_post_type_option')) {
             $element = array("name" => __("Select Post Type", 'avia_framework'), "desc" => __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.\n\t\t\t\t\t\t                      If yo don't select post type all registered post types will be used", 'avia_framework'), "id" => "post_type", "type" => "select", "multiple" => 6, "std" => "", "subtype" => AviaHtmlHelper::get_registered_post_type_array());
             array_unshift($this->elements, $element);
         }
     }
 }
예제 #6
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Add/Edit Testimonial", 'avia_framework'), "desc" => __("Here you can add, remove and edit your Testimonials.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Testimonial", 'avia_framework'), "std" => array(array('name' => __('Name', 'avia_framework'), 'Subtitle' => '', 'check' => 'is_empty')), 'subelements' => array(array("name" => __("Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "src", "type" => "image", "fetch" => "id", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("name" => __("Name", 'avia_framework'), "desc" => "Enter the Name of the Person to quote", "id" => "name", "std" => "", "type" => "input"), array("name" => __("Subtitle bellow name", 'avia_framework'), "desc" => "Can be used for a job description", "id" => "subtitle", "std" => "", "type" => "input"), array("name" => __("Quote", 'avia_framework'), "desc" => __("Enter the testimonial here", 'avia_framework'), "id" => "content", "std" => "", "type" => "tiny_mce"), array("name" => __("Website Link", 'avia_framework'), "desc" => "Link to the Persons website", "id" => "link", "std" => "http://", "type" => "input"), array("name" => __("Website Name", 'avia_framework'), "desc" => "Linktext for the above Link", "id" => "linktext", "std" => "", "type" => "input"))), array("name" => __("Testimonial Style", 'avia_framework'), "desc" => __("Here you can select how to display the testimonials. You can either create a testimonial slider or a testimonial grid with multiple columns", 'avia_framework'), "id" => "style", "type" => "select", "std" => "grid", "subtype" => array(__('Testimonial Grid', 'avia_framework') => 'grid', __('Testimonial Slider', 'avia_framework') => 'slider')), array("name" => __("Testimonial Grid Columns", 'avia_framework'), "desc" => __("How many columns do you want to display", 'avia_framework'), "id" => "columns", "required" => array('style', 'equals', 'grid'), "type" => "select", "std" => "2", "subtype" => AviaHtmlHelper::number_array(1, 4, 1)), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Slideshow will rotate every X seconds", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('style', 'equals', 'slider'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')));
 }
예제 #7
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Image Settings", 'avia_framework'), 'nodescription' => true), array("name" => __("Choose Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "src", "type" => "image", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => AviaBuilder::$path['imagesURL'] . "placeholder.jpg"), array("name" => __("Image Alignment", 'avia_framework'), "desc" => __("Choose here, how to align your image", 'avia_framework'), "id" => "align", "type" => "select", "std" => "center", "subtype" => array(__('Center', 'avia_framework') => 'center', __('Right', 'avia_framework') => 'right', __('Left', 'avia_framework') => 'left', __('No special alignment', 'avia_framework') => '')), array("name" => __("Image Fade in Animation", 'avia_framework'), "desc" => __("Add a small animation to the image when the user first scrolls to the image position. This is only to add some 'spice' to the site and only works in modern browsers", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "no-animation", "subtype" => array(__('None', 'avia_framework') => 'no-animation', __('Pop up', 'avia_framework') => 'pop-up', __('Top to Bottom', 'avia_framework') => 'top-to-bottom', __('Bottom to Top', 'avia_framework') => 'bottom-to-top', __('Left to Right', 'avia_framework') => 'left-to-right', __('Right to Left', 'avia_framework') => 'right-to-left')), array("name" => __("Image Styling", 'avia_framework'), "desc" => __("Chose a styling variaton", 'avia_framework'), "id" => "styling", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Circle (image height and width must be equal)', 'avia_framework') => 'circle', __('No Styling (no border, no border radius etc)', 'avia_framework') => 'no-styling')), array("name" => __("Image Hover effect", 'avia_framework'), "desc" => __("Add a mouse hover effect to the image", 'avia_framework'), "id" => "hover", "type" => "select", "std" => "", "subtype" => array(__('No', 'avia_framework') => '', __('Yes, slightly increase the image size', 'avia_framework') => 'av-hover-grow')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Link Settings", 'avia_framework'), 'nodescription' => true), array("name" => __("Image Link?", 'avia_framework'), "desc" => __("Where should your image link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('No Link', 'avia_framework') => '', __('Lightbox', 'avia_framework') => 'lightbox', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open new tab/window", 'avia_framework'), "desc" => __("Do you want to open the link url in a new tab/window?", 'avia_framework'), "id" => "target", "type" => "select", "std" => "", "required" => array('link', 'not_empty_and', 'lightbox'), "subtype" => AviaHtmlHelper::linking_options()), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Caption", 'avia_framework'), 'nodescription' => true), array("name" => __("Image Caption", 'avia_framework'), "desc" => __("Display a caption overlay?", 'avia_framework'), "id" => "caption", "type" => "select", "std" => "", "subtype" => array(__('No', 'avia_framework') => '', __('Yes', 'avia_framework') => 'yes')), array("name" => __("Caption", 'avia_framework'), "id" => "content", "type" => "textarea", "required" => array('caption', 'equals', 'yes'), "std" => ""), array("name" => __("Caption custom font size?", 'avia_framework'), "desc" => __("Size of your caption in pixel", 'avia_framework'), "id" => "font_size", "type" => "select", "required" => array('caption', 'equals', 'yes'), "subtype" => AviaHtmlHelper::number_array(10, 40, 1, array('Default' => ''), 'px'), "std" => ""), array("name" => __("Caption Appearance", 'avia_framework'), "desc" => __("When to display the caption?", 'avia_framework'), "id" => "appearance", "type" => "select", "std" => "", "container_class" => 'av_half av_half_first', "required" => array('caption', 'equals', 'yes'), "subtype" => array(__('Always display caption', 'avia_framework') => '', __('Only display on hover', 'avia_framework') => 'on-hover')), array("name" => __("Caption Overlay Opacity", 'avia_framework'), "desc" => __("Set the opacity of your overlay: 0.1 is barely visible, 1.0 is opaque ", 'avia_framework'), "id" => "overlay_opacity", "type" => "select", "std" => "0.4", "container_class" => 'av_half', "required" => array('caption', 'equals', 'yes'), "subtype" => array(__('0.1', 'avia_framework') => '0.1', __('0.2', 'avia_framework') => '0.2', __('0.3', 'avia_framework') => '0.3', __('0.4', 'avia_framework') => '0.4', __('0.5', 'avia_framework') => '0.5', __('0.6', 'avia_framework') => '0.6', __('0.7', 'avia_framework') => '0.7', __('0.8', 'avia_framework') => '0.8', __('0.9', 'avia_framework') => '0.9', __('1.0', 'avia_framework') => '1')), array("name" => __("Caption Overlay Background Color", 'avia_framework'), "desc" => __("Select a background color for your overlay here.", 'avia_framework'), "id" => "overlay_color", "type" => "colorpicker", "container_class" => 'av_half av_half_first', "required" => array('caption', 'equals', 'yes'), "std" => "#000000"), array("name" => __("Caption Font Color", 'avia_framework'), "desc" => __("Select a font color for your overlay here.", 'avia_framework'), "id" => "overlay_text_color", "type" => "colorpicker", "std" => "#ffffff", "container_class" => 'av_half', "required" => array('caption', 'equals', 'yes')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
예제 #8
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which type of slider is this?", 'avia_framework'), "desc" => __("Slides can either be generated based on images you choose or on recent post entries", 'avia_framework'), "id" => "slide_type", "type" => "select", "std" => "image-based", "subtype" => array(__('Image based Slider', 'avia_framework') => 'image-based', __('Entry based Slider', 'avia_framework') => 'entry-based')), array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "required" => array('slide_type', 'is_empty_or', 'entry-based'), "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category"), array("name" => __("Number of entries", 'avia_framework'), "desc" => __("How many entries should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "5", "required" => array('slide_type', 'is_empty_or', 'entry-based'), "subtype" => AviaHtmlHelper::number_array(1, 12, 1)), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling entries. Useful if you want to remove a certain number of entries because you already query them with another element.", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "required" => array('slide_type', 'is_empty_or', 'entry-based'), "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("type" => "modal_group", "id" => "content", 'container_class' => "avia-element-fullwidth avia-multi-img", "modal_title" => __("Edit Form Element", 'avia_framework'), "add_label" => __("Add single image", 'avia_framework'), "std" => array(), "required" => array('slide_type', 'equals', 'image-based'), 'creator' => array("name" => __("Add Images", 'avia_framework'), "desc" => __("Here you can add new Images to the slideshow.", 'avia_framework'), "id" => "id", "type" => "multi_image", "title" => __("Add multiple Images", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), 'subelements' => array(array("name" => __("Choose another Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "id", "fetch" => "id", "type" => "image", "title" => __("Change Image", 'avia_framework'), "button" => __("Change Image", 'avia_framework'), "std" => ""), array("name" => __("Caption Title", 'avia_framework'), "desc" => __("Enter a caption title for the slide here", 'avia_framework'), "id" => "title", "std" => "", "type" => "input"), array("name" => __("Caption Text", 'avia_framework'), "desc" => __("Enter some additional caption text", 'avia_framework'), "id" => "content", "type" => "textarea", "std" => ""), array("name" => __("Image Link?", 'avia_framework'), "desc" => __("Where should the Image link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Open Image in Lightbox', 'avia_framework') => 'lightbox', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open Link in new Window?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target", "type" => "select", "std" => "", "required" => array('link', 'not_empty_and', 'lightbox'), "subtype" => AviaHtmlHelper::linking_options()))), array("name" => __("Accordion Image Size", 'avia_framework'), "desc" => __("Choose image and Video size for your slideshow.", 'avia_framework'), "id" => "size", "type" => "select", "std" => "featured", "subtype" => AviaHelper::get_registered_image_sizes(500, false, true)), array("name" => __("Slide Title", 'avia_framework'), "desc" => __("Display the entry title by default?", 'avia_framework'), "id" => "title", "type" => "select", "std" => "true", "subtype" => array(__('Yes - display everywhere', 'avia_framework') => 'active', __('Yes - display, but remove title on mobile devices', 'avia_framework') => 'no-mobile', __('Display only on active slides') => 'on-hover', __('No, never display title', 'avia_framework') => 'inactive')), array("name" => __("Display Excerpt?", 'avia_framework'), "desc" => __("Check if excerpt/caption of the slide should also be displayed", 'avia_framework') . "</small>", "id" => "excerpt", "required" => array('title', 'not', 'inactive'), "std" => "", "type" => "checkbox"), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "false", "subtype" => array(__('Yes', 'avia_framework') => 'true', __('No', 'avia_framework') => 'false')), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Images will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('autoplay', 'contains', 'true'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')));
 }
예제 #9
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Heading Text", 'avia_framework'), "id" => "heading", 'container_class' => "avia-element-fullwidth", "std" => __("Hello", 'avia_framework'), "type" => "input"), array("name" => __("Heading Type", 'avia_framework'), "desc" => __("Select which kind of heading you want to display.", 'avia_framework'), "id" => "tag", "type" => "select", "std" => "h3", "subtype" => array("H1" => 'h1', "H2" => 'h2', "H3" => 'h3', "H4" => 'h4', "H5" => 'h5', "H6" => 'h6')), array("name" => __("Heading Color", 'avia_framework'), "desc" => __("Select a heading color", 'avia_framework'), "id" => "color", "type" => "select", "std" => "", "subtype" => array(__("Default Color", 'avia_framework') => '', __("Meta Color", 'avia_framework') => 'meta-heading', __("Custom Color", 'avia_framework') => 'custom-color-heading')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color for your Heading here", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "", "required" => array('color', 'equals', 'custom-color-heading')), array("name" => __("Heading Style", 'avia_framework'), "desc" => __("Select a heading style", 'avia_framework'), "id" => "style", "type" => "select", "std" => "", "subtype" => array(__("Default Style", 'avia_framework') => '', __("Heading Style Modern (left)", 'avia_framework') => 'blockquote modern-quote', __("Heading Style Modern (centered)", 'avia_framework') => 'blockquote modern-quote modern-centered', __("Heading Style Classic (centered, italic)", 'avia_framework') => 'blockquote classic-quote')), array("name" => __("Heading Size", 'avia_framework'), "desc" => __("Size of your Heading in Pixel", 'avia_framework'), "id" => "size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(20, 90, 1, array(__("Default Size", 'avia_framework') => '')), "required" => array('style', 'not', ''), "std" => ""), array("name" => __("Subheading", 'avia_framework'), "desc" => __("Add an extra descriptive subheading above or below the actual heading", 'avia_framework'), "id" => "subheading_active", "type" => "select", "std" => "", "required" => array('style', 'not', ''), "subtype" => array(__("No Subheading", 'avia_framework') => '', __("Display subheading above", 'avia_framework') => 'subheading_above', __("Display subheading below", 'avia_framework') => 'subheading_below')), array("name" => __("Subheading Text", 'avia_framework'), "desc" => __("Add your subheading here", 'avia_framework'), "id" => "content", "type" => "textarea", "required" => array('subheading_active', 'not', ''), "std" => ""), array("name" => __("Subheading Size", 'avia_framework'), "desc" => __("Size of your subeading in Pixel", 'avia_framework'), "id" => "subheading_size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(10, 40, 1), "required" => array('subheading_active', 'not', ''), "std" => "15"), array("name" => __("Padding Bottom", 'avia_framework'), "desc" => __("Bottom Padding in pixel", 'avia_framework'), "id" => "padding", "type" => "select", "subtype" => AviaHtmlHelper::number_array(0, 120, 1), "std" => "10"));
 }
예제 #10
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "categories", "type" => "select", "taxonomy" => "product_cat", "subtype" => "cat", "multiple" => 6), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "3", "subtype" => array(__('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5')), array("name" => __("Entry Number", 'avia_framework'), "desc" => __("How many items should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "9", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling products. Useful if you want to remove a certain number of products because you already query them with another product slider. Attention: Use this option only if the product sorting of the product sliders match!", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("name" => __("Sorting Options", 'avia_framework'), "desc" => __("Here you can choose how to sort the products", 'avia_framework'), "id" => "sort", "type" => "select", "std" => "0", "no_first" => true, "subtype" => array(__('Use defaut (defined at Woocommerce -> Settings -> Catalog) ', 'avia_framework') => '0', __('Sort alphabetically', 'avia_framework') => 'title', __('Sort by most recent', 'avia_framework') => 'date', __('Sort by price', 'avia_framework') => 'price', __('Sort by popularity', 'avia_framework') => 'popularity')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "no", "subtype" => array(__('Yes', 'avia_framework') => 'yes', __('No', 'avia_framework') => 'no')), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Slideshow will rotate every X seconds", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('autoplay', 'equals', 'yes'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')));
 }
예제 #11
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Text", 'avia_framework'), 'nodescription' => true), array("name" => __("Prepended static text", 'avia_framework'), "desc" => __("Enter static text that should be displayed before the rotating text", 'avia_framework'), "id" => "before_rotating", "std" => __('We are ', 'avia_framework'), "type" => "input"), array("name" => __("Add/Edit rotating text", 'avia_framework'), "desc" => __("Here you can add, remove and edit the rotating text", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Text Element", 'avia_framework'), "std" => array(array('title' => __('great', 'avia_framework')), array('title' => __('smart', 'avia_framework')), array('title' => __('fast', 'avia_framework'))), 'subelements' => array(array("name" => __("Rotating Text", 'avia_framework'), "desc" => __("Enter the rotating text here (Better keep it short)", 'avia_framework'), "id" => "title", "std" => "", "type" => "input"), array("name" => __("Text Link?", 'avia_framework'), "desc" => __("Do you want to apply  a link to the title?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "std" => "", "subtype" => array(__('No Link', 'avia_framework') => '', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open in new window", 'avia_framework'), "desc" => __("Do you want to open the link in a new window", 'avia_framework'), "id" => "linktarget", "required" => array('link', 'not', ''), "type" => "select", "std" => "no", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_title", "type" => "colorpicker", "std" => ""))), array("name" => __("Appended static text", 'avia_framework'), "desc" => __("Enter static text that should be displayed after the rotating text", 'avia_framework'), "id" => "after_rotating", "std" => "", "type" => "input"), array("name" => __("Activate Multiline?", 'avia_framework'), "desc" => __("Check if prepended, rotating and appended text should each be displayed on its own line", 'avia_framework'), "id" => "multiline", "type" => "checkbox", "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Rotation", 'avia_framework'), 'nodescription' => true), array("name" => __("Autorotation duration", 'avia_framework'), "desc" => __("Each rotating textblock will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "subtype" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')), array("name" => __("Rotation Animation", 'avia_framework'), "desc" => __("Select the rotation animation", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "", "subtype" => array("Top to bottom" => '', "Bottom to top" => 'reverse', "Fade only" => 'fade')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Style", 'avia_framework'), 'nodescription' => true), array("name" => __("HTML Markup", 'avia_framework'), "desc" => __("Select which kind of HTML markup you want to apply.", 'avia_framework'), "id" => "tag", "type" => "select", "std" => "h3", "subtype" => array("H1" => 'h1', "H2" => 'h2', "H3" => 'h3', "H4" => 'h4', "H5" => 'h5', "H6" => 'h6', __('Paragraph', 'avia_framework') => 'p')), array("name" => __("Text Size", 'avia_framework'), "desc" => __("Size of your Text in Pixel", 'avia_framework'), "id" => "size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(11, 150, 1, array(__("Default Size", 'avia_framework') => '')), "std" => ""), array("name" => __("Text align", 'avia_framework'), "desc" => __("Alignment of the text", 'avia_framework'), "id" => "align", "type" => "select", "std" => "left", "subtype" => array(__('Center', 'avia_framework') => 'center', __('Left', 'avia_framework') => 'left', __('Right', 'avia_framework') => 'right')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_title", "type" => "colorpicker", "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
예제 #12
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Add/Edit Map Locations", 'avia_framework'), "desc" => __("Here you can add, remove and edit the map locations for your Google Map.", 'avia_framework') . "<br/>", "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Location", 'avia_framework'), "std" => array(array('address' => "", 'type' => 'text', 'check' => 'is_empty')), 'subelements' => array(array("name" => __("Full Adress", 'avia_framework'), "desc" => "Enter the Address, then hit the 'Fetch Coordinates' Button. If the address was found the coordinates will be displayed", "id" => "address", "std" => "", "type" => "gmap_adress"), array("name" => __("Marker Tooltip", 'avia_framework'), "desc" => __("Enter some text here. If the user clicks on the marker the text will be displayed", 'avia_framework'), "id" => "content", "type" => "textarea", "std" => ""), array("name" => __("Display Tooltip by default", 'avia_framework'), "desc" => __("Check to display the tooltip by default. If unchecked user must click the marker to show the tooltip", 'avia_framework'), "id" => "tooltip_display", "std" => "", "required" => array('content', 'not', ''), "type" => "checkbox"), array("name" => __("Custom Map Marker Image", 'avia_framework'), "desc" => __("Use a custom Image as marker. (make sure that you use a square image, otherwise it will be cropped)", 'avia_framework') . "<br/><small>" . __("Leave empty if you want to use the default marker", 'avia_framework') . "</small>", "id" => "marker", "fetch" => 'id', "type" => "image", "title" => __("Insert Marker Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("name" => __("Custom Map Marker Image Size", 'avia_framework'), "desc" => __("How big should the marker image be displayed in height and width. ", 'avia_framework'), "id" => "imagesize", "type" => "select", "std" => "40", "required" => array('marker', 'not', ''), "subtype" => array(__('20px * 20px', 'avia_framework') => '20', __('30px * 30px', 'avia_framework') => '30', __('40px * 40px', 'avia_framework') => '40', __('50px * 50px', 'avia_framework') => '50', __('60px * 60px', 'avia_framework') => '60', __('70px * 70px', 'avia_framework') => '70', __('80px * 80px', 'avia_framework') => '80')))), array("name" => __("Map height", 'avia_framework'), "desc" => __("You can either define a fixed height in pixel like '300px' or enter a width/height ratio like 16:9", 'avia_framework'), "id" => "height", "type" => "input", "std" => "400px"), array("name" => __("Zoom Level", 'avia_framework'), "desc" => __("Choose the zoom of the map on a scale from  1 (very far away) to 19 (very close)", 'avia_framework'), "id" => "zoom", "type" => "select", "std" => "16", "subtype" => AviaHtmlHelper::number_array(1, 19, 1, array(__("Set Zoom level automatically to show all markers", 'avia_framework') => 'auto'))), array("name" => __("Color Saturation", 'avia_framework'), "desc" => __("Choose the saturation of your map", 'avia_framework'), "id" => "saturation", "type" => "select", "std" => "", "subtype" => array(__('Oversaturated', 'avia_framework') => '100', __('Slightly oversaturated', 'avia_framework') => '50', __('Normal Saturation', 'avia_framework') => '', __('Muted colors', 'avia_framework') => '-50', __('Greyscale', 'avia_framework') => '-100')), array("name" => __("Custom Overlay Color", 'avia_framework'), "desc" => __("Select a custom color for your Map here. The map will be tinted with that color. Leave empty if you want to use the default map color", 'avia_framework'), "id" => "hue", "type" => "colorpicker", "std" => ""), array("name" => __("Display Zoom Control?", 'avia_framework'), "desc" => __("Check to display the controls at the left side of the map", 'avia_framework'), "id" => "zoom_control", "std" => "active", "type" => "checkbox"), array("name" => __("Display Pan Control?", 'avia_framework'), "desc" => __("Check to display the Pan control wheel at the top left side of the map", 'avia_framework'), "id" => "pan_control", "std" => "", "type" => "checkbox"), array("name" => __("Map dragging on mobile", 'avia_framework'), "desc" => __("Check to disable the users ability to drag the map on mobile devices. This ensures that the user can scroll down the page, even if the map fills the whole viewport of the mobile device", 'avia_framework'), "id" => "mobile_drag_control", "std" => "", "type" => "checkbox"));
 }
예제 #13
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Content", 'avia_framework'), "desc" => __("Enter some content for this textblock", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("Click here to add your own text", "avia_framework")), array("name" => __("Font Size", 'avia_framework'), "desc" => __("Size of the text in px", 'avia_framework'), "id" => "size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(10, 40, 1, array(__("Default Size", 'avia_framework') => '')), "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Font Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "font_color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "color", "type" => "colorpicker", "std" => "", "required" => array('font_color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
예제 #14
0
파일: gallery.php 프로젝트: Jiersone/mac
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Edit Gallery", 'avia_framework'), "desc" => __("Create a new Gallery by selecting existing or uploading new images", 'avia_framework'), "id" => "ids", "type" => "gallery", "title" => __("Add/Edit Gallery", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), array("name" => __("Gallery Style", 'avia_framework'), "desc" => __("Choose the layout of your Gallery", 'avia_framework'), "id" => "style", "type" => "select", "std" => "thumbnails", "subtype" => array(__('Small Thumbnails', 'avia_framework') => 'thumbnails', __('Big image with thumbnails below', 'avia_framework') => 'big_thumb')), array("name" => __("Gallery Big Preview Image Size", 'avia_framework'), "desc" => __("Choose image size for the Big Preview Image", 'avia_framework'), "id" => "preview_size", "type" => "select", "std" => "portfolio", "required" => array('style', 'equals', 'big_thumb'), "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Force same size for all big preview images?", 'avia_framework'), "desc" => __("Depending on the size you selected above, preview images might differ in size. Should the theme force them to display at exactly the same size?", 'avia_framework'), "id" => "crop_big_preview_thumbnail", "type" => "select", "std" => "yes", "required" => array('style', 'equals', 'big_thumb'), "subtype" => array(__('Yes, force same size on all Big Preview images, even if they use a different aspect ratio', 'avia_framework') => 'avia-gallery-big-crop-thumb', __('No, do not force the same size', 'avia_framework') => 'avia-gallery-big-no-crop-thumb')), array("name" => __("Gallery Preview Image Size", 'avia_framework'), "desc" => __("Choose image size for the small preview thumbnails", 'avia_framework'), "id" => "thumb_size", "type" => "select", "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Gallery Columns", 'avia_framework'), "desc" => __("Choose the column count of your Gallery", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "5", "subtype" => AviaHtmlHelper::number_array(1, 12, 1)), array("name" => __("Use Lighbox", 'avia_framework'), "desc" => __("Do you want to activate the lightbox", 'avia_framework'), "id" => "imagelink", "type" => "select", "std" => "5", "subtype" => array(__('Yes', 'avia_framework') => 'lightbox', __('No, open the images in the browser window', 'avia_framework') => 'aviaopeninbrowser noLightbox', __('No, open the images in a new browser window/tab', 'avia_framework') => 'aviaopeninbrowser aviablank noLightbox', __('No, don\'t add a link to the images at all', 'avia_framework') => 'avianolink noLightbox')), array("name" => __("Thumbnail fade in effect", 'avia_framework'), "desc" => __("You can set when the gallery thumbnail animation starts", 'avia_framework'), "id" => "lazyload", "type" => "select", "std" => "avia_lazyload", "subtype" => array(__('Show the animation when user scrolls to the gallery', 'avia_framework') => 'avia_lazyload', __('Activate animation on page load (might be preferable on large galleries)', 'avia_framework') => 'deactivate_avia_lazyload')));
 }
예제 #15
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which categories should be used for the portfolio?", 'avia_framework'), "desc" => __("You can select multiple categories here. The Page will then show posts from only those categories.", 'avia_framework'), "id" => "categories", "type" => "select", "multiple" => 6, "taxonomy" => "portfolio_entries", "subtype" => "cat"), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "4", "subtype" => array(__('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4')), array("name" => __("Post Number", 'avia_framework'), "desc" => __("How many items should be displayed per page?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "16", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Excerpt", 'avia_framework'), "desc" => __("Display Excerpt and Title bellow the preview image?", 'avia_framework'), "id" => "contents", "type" => "select", "std" => "yes", "subtype" => array(__('Title and Excerpt', 'avia_framework') => 'excerpt', __('Only Title', 'avia_framework') => 'title', __('Only excerpt', 'avia_framework') => 'only_excerpt', __('No Title and no excerpt', 'avia_framework') => 'no')), array("name" => __("Portfolio Grid Image Size", 'avia_framework'), "desc" => __("Set the image size of the Portfolio Grid images", 'avia_framework'), "id" => "preview_mode", "type" => "select", "std" => "auto", "subtype" => array(__('Set the Portfolio Grid image size automatically based on column or layout width', 'avia_framework') => 'auto', __('Choose the Portfolio Grid image size manually (select thumbnail size)', 'avia_framework') => 'custom')), array("name" => __("Select custom image size", 'avia_framework'), "desc" => __("Choose image size for Portfolio Grid Images", 'avia_framework') . "<br/><small>" . __("(Note: Images will be scaled to fit for the amount of columns chosen above)", 'avia_framework') . "</small>", "id" => "image_size", "type" => "select", "required" => array('preview_mode', 'equals', 'custom'), "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo', 'thumbnail', 'widget'))), array("name" => __("Link Handling", 'avia_framework'), "desc" => __("When clicking on a portfolio item you can choose to open the link to the single entry, open a preview (aka AJAX Portfolio) or show a bigger version of the image in a lightbox overlay", 'avia_framework'), "id" => "linking", "type" => "select", "std" => "", "subtype" => array(__('Open the entry on a new page', 'avia_framework') => '', __('Open a preview of the entry (known as AJAX Portfolio)', 'avia_framework') => 'ajax', __('Display the big image in a lightbox', 'avia_framework') => 'lightbox')), array("name" => __("Sortable?", 'avia_framework'), "desc" => __("Should the sorting options based on categories be displayed?", 'avia_framework'), "id" => "sort", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination be displayed?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')));
 }
예제 #16
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Edit Gallery", 'avia_framework'), "desc" => __("Create a new Gallery by selecting existing or uploading new images", 'avia_framework'), "id" => "ids", "type" => "gallery", "title" => __("Add/Edit Gallery", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), array("name" => __("Gallery Style", 'avia_framework'), "desc" => __("Choose the layout of your Gallery", 'avia_framework'), "id" => "style", "type" => "select", "std" => "thumbnails", "subtype" => array(__('Small Thumbnails', 'avia_framework') => 'thumbnails', __('Big image with thumbnails bellow', 'avia_framework') => 'big_thumb')), array("name" => __("Gallery Big Preview Image Size", 'avia_framework'), "desc" => __("Choose image size for the Big Preview Image", 'avia_framework'), "id" => "preview_size", "type" => "select", "std" => "portfolio", "required" => array('style', 'equals', 'big_thumb'), "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Gallery Preview Image Size", 'avia_framework'), "desc" => __("Choose image size for the small preview thumbnails", 'avia_framework'), "id" => "thumb_size", "type" => "select", "std" => "portfolio", "subtype" => AviaHelper::get_registered_image_sizes(array('logo'))), array("name" => __("Gallery Columns", 'avia_framework'), "desc" => __("Choose the column count of your Gallery", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "5", "subtype" => AviaHtmlHelper::number_array(1, 12, 1)), array("name" => __("Use Lighbox", 'avia_framework'), "desc" => __("Do you want to activate the lightbox", 'avia_framework'), "id" => "imagelink", "type" => "select", "std" => "5", "subtype" => array(__('Yes', 'avia_framework') => 'lightbox', __('No, open the images in the browser window', 'avia_framework') => 'aviaopeninbrowser noLightbox', __('No, open the images in a new browser window/tab', 'avia_framework') => 'aviaopeninbrowser aviablank noLightbox', __('No, don\'t add a link to the images at all', 'avia_framework') => 'avianolink noLightbox')));
 }
예제 #17
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Add/Edit Testimonial", 'avia_framework'), "desc" => __("Here you can add, remove and edit your Testimonials.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Testimonial", 'avia_framework'), "std" => array(array('name' => __('Name', 'avia_framework'), 'Subtitle' => '', 'check' => 'is_empty')), 'subelements' => array(array("name" => __("Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "src", "type" => "image", "fetch" => "id", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("name" => __("Name", 'avia_framework'), "desc" => "Enter the Name of the Person to quote", "id" => "name", "std" => "", "type" => "input"), array("name" => __("Subtitle below name", 'avia_framework'), "desc" => "Can be used for a job description", "id" => "subtitle", "std" => "", "type" => "input"), array("name" => __("Quote", 'avia_framework'), "desc" => __("Enter the testimonial here", 'avia_framework'), "id" => "content", "std" => "", "type" => "tiny_mce"), array("name" => __("Website Link", 'avia_framework'), "desc" => "Link to the Persons website", "id" => "link", "std" => "http://", "type" => "input"), array("name" => __("Website Name", 'avia_framework'), "desc" => "Linktext for the above Link", "id" => "linktext", "std" => "", "type" => "input"))), array("name" => __("Testimonial Style", 'avia_framework'), "desc" => __("Here you can select how to display the testimonials. You can either create a testimonial slider or a testimonial grid with multiple columns", 'avia_framework'), "id" => "style", "type" => "select", "std" => "grid", "subtype" => array(__('Testimonial Grid', 'avia_framework') => 'grid', __('Testimonial Slider (Compact)', 'avia_framework') => 'slider', __('Testimonial Slider (Large)', 'avia_framework') => 'slider_large')), array("name" => __("Testimonial Grid Columns", 'avia_framework'), "desc" => __("How many columns do you want to display", 'avia_framework'), "id" => "columns", "required" => array('style', 'equals', 'grid'), "type" => "select", "std" => "2", "subtype" => AviaHtmlHelper::number_array(1, 4, 1)), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Slideshow will rotate every X seconds", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('style', 'contains', 'slider'), "subtype" => array('3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Font Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "font_color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Name Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_title", "type" => "colorpicker", "std" => "", "container_class" => 'av_half av_half_first', "required" => array('font_color', 'equals', 'custom')), array("name" => __("Custom Content Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_content", "type" => "colorpicker", "std" => "", "container_class" => 'av_half', "required" => array('font_color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
예제 #18
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     global $avia_config;
     $this->elements = array(array("id" => 0, "std" => '', "type" => "hidden"), array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Row Settings", 'avia_framework'), 'nodescription' => true), array("name" => __("Row Settings", 'avia_framework'), "desc" => __("Row Settings apply to all columns in this row but can only be set in the first column", 'avia_framework'), "type" => "heading", "description_class" => "av-builder-note av-notice", "required" => array('0', 'equals', '')), array("name" => __("Row Settings", 'avia_framework'), "desc" => __("These setting apply to all columns in this row and can only be set in the first column.", 'avia_framework') . "<br/><strong>" . __("Please note:", 'avia_framework') . "</strong> " . __("If you move another column into first position you will need to re-apply these settings.", 'avia_framework'), "type" => "heading", "description_class" => "av-builder-note av-notice", "required" => array('0', 'not', '')), array("name" => __("Equal Height Columns", 'avia_framework'), "desc" => __("Columns in this row can either have a height based on their content or all be of equal height based on the largest column ", 'avia_framework'), "id" => "min_height", "type" => "select", "std" => "", "required" => array('0', 'not', ''), "subtype" => array(__('Individual height', 'avia_framework') => '', __('Equal height', 'avia_framework') => 'av-equal-height-column')), array("name" => __("Vertical Alignment", 'avia_framework'), "desc" => __("If a column is larger than its content, were do you want to align the content vertically?", 'avia_framework'), "id" => "vertical_alignment", "type" => "select", "std" => "", "required" => array('min_height', 'not', ''), "subtype" => array(__('Top', 'avia_framework') => 'av-align-top', __('Middle', 'avia_framework') => 'av-align-middle', __('Bottom', 'avia_framework') => 'av-align-bottom')), array("name" => __("Space between columns", 'avia_framework'), "desc" => __("You can remove the default space between columns here.", 'avia_framework'), "id" => "space", "type" => "select", "std" => "", "required" => array('0', 'not', ''), "subtype" => array(__('Space between columns', 'avia_framework') => '', __('No space between columns', 'avia_framework') => 'no_margin')), array("name" => __("Custom top and bottom margin", 'avia_framework'), "desc" => __("If checked allows you to set a custom top and bottom margin. Otherwise the margin is calculated by the theme based on surrounding elements", 'avia_framework'), "required" => array('0', 'not', ''), "id" => "custom_margin", "type" => "checkbox", "std" => ""), array("name" => __("Custom top and bottom margin", 'avia_framework'), "desc" => __("Set a custom top or bottom margin. Both pixel and &percnt; based values are accepted. eg: 30px, 5&percnt;", 'avia_framework'), "id" => "margin", "type" => "multi_input", "required" => array('custom_margin', 'not', ''), "std" => "0px", "sync" => true, "multi" => array('top' => __('Margin-Top', 'avia_framework'), 'bottom' => __('Margin-Bottom', 'avia_framework'))), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Layout", 'avia_framework'), 'nodescription' => true), array("name" => __("Inner Padding", 'avia_framework'), "desc" => __("Set the distance from the column content to the border here. Both pixel and &percnt; based values are accepted. eg: 30px, 5&percnt;", 'avia_framework'), "id" => "padding", "type" => "multi_input", "std" => "0px", "sync" => true, "multi" => array('top' => __('Padding-Top', 'avia_framework'), 'right' => __('Padding-Right', 'avia_framework'), 'bottom' => __('Padding-Bottom', 'avia_framework'), 'left' => __('Padding-Left', 'avia_framework'))), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Border", 'avia_framework'), 'nodescription' => true), array("name" => __("Border", 'avia_framework'), "desc" => __("Set the border of the column here", 'avia_framework'), "id" => "border", "type" => "select", "std" => "", "subtype" => AviaHtmlHelper::number_array(1, 40, 1, array(__("None", 'avia_framework') => ''), 'px')), array("name" => __("Border Color", 'avia_framework'), "desc" => __("Set a border color for this column", 'avia_framework'), "id" => "border_color", "type" => "colorpicker", "rgba" => true, "required" => array('border', 'not', ''), "std" => ""), array("name" => __("Border Radius", 'avia_framework'), "desc" => __("Set the border radius of the column", 'avia_framework'), "id" => "radius", "type" => "multi_input", "std" => "0px", "sync" => true, "multi" => array('top' => __('Top-Left-Radius', 'avia_framework'), 'right' => __('Top-Right-Radius', 'avia_framework'), 'bottom' => __('Bottom-Right-Radius', 'avia_framework'), 'left' => __('Bottom-Left-Radius', 'avia_framework'))), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color for this cell here. Leave empty for default color", 'avia_framework'), "id" => "background_color", "type" => "colorpicker", "rgba" => true, "std" => ""), array("name" => __("Custom Background Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library. Leave empty if you don't want to use a background image ", 'avia_framework'), "id" => "src", "type" => "image", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("name" => __("Background Image Position", 'avia_framework'), "id" => "background_position", "type" => "select", "std" => "top left", "required" => array('src', 'not', ''), "subtype" => array(__('Top Left', 'avia_framework') => 'top left', __('Top Center', 'avia_framework') => 'top center', __('Top Right', 'avia_framework') => 'top right', __('Bottom Left', 'avia_framework') => 'bottom left', __('Bottom Center', 'avia_framework') => 'bottom center', __('Bottom Right', 'avia_framework') => 'bottom right', __('Center Left', 'avia_framework') => 'center left', __('Center Center', 'avia_framework') => 'center center', __('Center Right', 'avia_framework') => 'center right')), array("name" => __("Background Repeat", 'avia_framework'), "id" => "background_repeat", "type" => "select", "std" => "no-repeat", "required" => array('src', 'not', ''), "subtype" => array(__('No Repeat', 'avia_framework') => 'no-repeat', __('Repeat', 'avia_framework') => 'repeat', __('Tile Horizontally', 'avia_framework') => 'repeat-x', __('Tile Vertically', 'avia_framework') => 'repeat-y', __('Stretch to fit', 'avia_framework') => 'stretch')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
        /**
         * Popup Elements
         *
         * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
         * opens a modal window that allows to edit the element properties
         *
         * @return void
         */
        function popup_elements()
        {
            $this->elements = array(array("type" => "modal_group", "id" => "content", 'container_class' => "avia-element-fullwidth avia-multi-img", "modal_title" => __("Edit Form Element", 'avia_framework'), "add_label" => __("Add single image or video", 'avia_framework'), "std" => array(), 'creator' => array("name" => __("Add Images", 'avia_framework'), "desc" => __("Here you can add new Images to the slideshow.", 'avia_framework'), "id" => "id", "type" => "multi_image", "title" => __("Add multiple Images", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), 'subelements' => array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Slide", 'avia_framework'), 'nodescription' => true), array("name" => __("Which type of slide is this?", 'avia_framework'), "id" => "slide_type", "type" => "select", "std" => "", "subtype" => array(__('Image Slide', 'avia_framework') => 'image', __('Video Slide', 'avia_framework') => 'video')), array("name" => __("Choose another Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "id", "fetch" => "id", "type" => "image", "required" => array('slide_type', 'is_empty_or', 'image'), "title" => __("Change Image", 'avia_framework'), "button" => __("Change Image", 'avia_framework'), "std" => ""), array("name" => __("Video URL", 'avia_framework'), "desc" => __('Enter the URL to the Video. Currently supported are Youtube, Vimeo and direct linking of web-video files (mp4, webm, ogv)', 'avia_framework') . '<br/><br/>' . __('Working examples Youtube & Vimeo:', 'avia_framework') . '<br/>
								<strong>http://vimeo.com/1084537</strong><br/> 
								<strong>http://www.youtube.com/watch?v=5guMumPFBag</strong><br/><br/>', "required" => array('slide_type', 'equals', 'video'), "id" => "video", "std" => "http://", "type" => "video", "title" => __("Upload Video", 'avia_framework'), "button" => __("Use Video", 'avia_framework')), array("name" => __("Choose fallback image for mobile devices", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework') . "<br/><small>" . __("Video on most mobile devices can't be controlled properly with JavaScript, which is mandatory here, therefore you are required to select a fallback image which can be displayed instead", 'avia_framework') . "</small>", "id" => "mobile_image", "fetch" => "id", "type" => "image", "required" => array('slide_type', 'equals', 'video'), "title" => __("Choose Image", 'avia_framework'), "button" => __("Choose Image", 'avia_framework'), "std" => ""), array("name" => __("Video Size", 'avia_framework'), "desc" => __("By default the video will try to match the default slideshow size that was selected in the slider settings at 'Slideshow Image and Video Size'", 'avia_framework'), "id" => "video_format", "type" => "select", "std" => "", "required" => array('slide_type', 'equals', 'video'), "subtype" => array(__('Try to match the default slideshow size (Video will not be cropped, but black borders will be visible at each side)', 'avia_framework') => '', __('Try to match the default slideshow size but stretch the video to fill the whole slider (video will be cropped at top and bottom)', 'avia_framework') => 'stretch', __('Show the full Video without cropping', 'avia_framework') => 'full')), array("name" => __("Video Aspect Ratio", 'avia_framework'), "desc" => __("In order to calculate the correct height and width for the video slide you need to enter a aspect ratio (width:height). usually: 16:9 or 4:3.", 'avia_framework') . "<br/>" . __("If left empty 16:9 will be used", 'avia_framework'), "id" => "video_ratio", "required" => array('video_format', 'not', ''), "std" => "16:9", "type" => "input"), array("name" => __("Hide Video Controls", 'avia_framework'), "desc" => __("Check if you want to hide the controls (works for youtube and self hosted videos)", 'avia_framework'), "id" => "video_controls", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Mute Video Player", 'avia_framework'), "desc" => __("Check if you want to mute the video", 'avia_framework'), "id" => "video_mute", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Loop Video Player", 'avia_framework'), "desc" => __("Check if you want to loop the video (instead of showing the next slide the video will play from the beginning again)", 'avia_framework'), "id" => "video_loop", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Disable Autoplay", 'avia_framework'), "desc" => __("Check if you want to disable video autoplay when this slide shows", 'avia_framework'), "id" => "video_autoplay", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Caption", 'avia_framework'), 'nodescription' => true), array("name" => __("Caption Title", 'avia_framework'), "desc" => __("Enter a caption title for the slide here", 'avia_framework'), "id" => "title", "std" => "", "container_class" => 'av_half av_half_first', "type" => "input"), array("name" => __("Caption Title Font Size", 'avia_framework'), "desc" => __("Select a custom font size. Leave empty to use the default", 'avia_framework'), "id" => "custom_title_size", "type" => "select", "std" => "", "container_class" => 'av_half', "subtype" => AviaHtmlHelper::number_array(10, 120, 1, array(__("Default Size", 'avia_framework') => ''), 'px')), array("name" => __("Caption Text", 'avia_framework'), "desc" => __("Enter some additional caption text", 'avia_framework'), "id" => "content", "type" => "textarea", "container_class" => 'av_half av_half_first', "std" => ""), array("name" => __("Caption Text Font Size", 'avia_framework'), "desc" => __("Select a custom font size. Leave empty to use the default", 'avia_framework'), "id" => "custom_content_size", "type" => "select", "std" => "", "container_class" => 'av_half av_no_bottom', "subtype" => AviaHtmlHelper::number_array(10, 90, 1, array(__("Default Size", 'avia_framework') => ''), 'px')), array("name" => __("Caption Positioning", 'avia_framework'), "id" => "caption_pos", "type" => "select", "std" => "caption_bottom", "subtype" => array('Right Framed' => 'caption_right caption_right_framed caption_framed', 'Left Framed' => 'caption_left caption_left_framed caption_framed', 'Bottom Framed' => 'caption_bottom caption_bottom_framed caption_framed', 'Center Framed' => 'caption_center caption_center_framed caption_framed', 'Right without Frame' => 'caption_right', 'Left without Frame' => 'caption_left', 'Bottom without Frame' => 'caption_bottom', 'Center without Frame' => 'caption_center')), array("name" => __("Apply a link or buttons to the slide?", 'avia_framework'), "desc" => __("You can choose to apply the link to the whole image or to add 'Call to Action Buttons' that get appended to the caption", 'avia_framework'), "id" => "link_apply", "type" => "select", "std" => "", "subtype" => array(__('No Link for this slide', 'avia_framework') => '', __('Apply Link to Image', 'avia_framework') => 'image', __('Attach one button', 'avia_framework') => 'button', __('Attach two buttons', 'avia_framework') => 'button button-two')), array("name" => __("Image Link?", 'avia_framework'), "desc" => __("Where should the Image link to?", 'avia_framework'), "id" => "link", "required" => array('link_apply', 'equals', 'image'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Open Image in Lightbox', 'avia_framework') => 'lightbox', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open Link in new Window?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target", "type" => "select", "std" => "", "required" => array('link', 'not_empty_and', 'lightbox'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button 1 Label", 'avia_framework'), "desc" => __("This is the text that appears on your button.", 'avia_framework'), "id" => "button_label", "type" => "input", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button'), "std" => "Click me"), array("name" => __("Button 1 Color", 'avia_framework'), "desc" => __("Choose a color for your button here", 'avia_framework'), "id" => "button_color", "type" => "select", "std" => "light", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button'), "subtype" => array(__('Translucent Buttons', 'avia_framework') => array(__('Light Transparent', 'avia_framework') => 'light', __('Dark Transparent', 'avia_framework') => 'dark'), __('Colored Buttons', 'avia_framework') => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Theme Color Subtle', 'avia_framework') => 'theme-color-subtle', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black'))), array("name" => __("Button 1 Link?", 'avia_framework'), "desc" => __("Where should the Button link to?", 'avia_framework'), "id" => "link1", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Button 1 Link Target?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target1", "type" => "select", "std" => "", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button 2 Label", 'avia_framework'), "desc" => __("This is the text that appears on your second button.", 'avia_framework'), "id" => "button_label2", "type" => "input", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button-two'), "std" => "Click me"), array("name" => __("Button 2 Color", 'avia_framework'), "desc" => __("Choose a color for your second button here", 'avia_framework'), "id" => "button_color2", "type" => "select", "std" => "light", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button-two'), "subtype" => array(__('Translucent Buttons', 'avia_framework') => array(__('Light Transparent', 'avia_framework') => 'light', __('Dark Transparent', 'avia_framework') => 'dark'), __('Colored Buttons', 'avia_framework') => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Theme Color Subtle', 'avia_framework') => 'theme-color-subtle', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black'))), array("name" => __("Button 2 Link?", 'avia_framework'), "desc" => __("Where should the Button link to?", 'avia_framework'), "id" => "link2", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button-two'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Button 2 Link Target?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target2", "type" => "select", "std" => "", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button-two'), "subtype" => AviaHtmlHelper::linking_options()), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Font Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "font_color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Custom Caption Title Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_title", "type" => "colorpicker", "std" => "", "container_class" => 'av_half av_half_first', "required" => array('font_color', 'equals', 'custom')), array("name" => __("Custom Caption Content Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_content", "type" => "colorpicker", "std" => "", "container_class" => 'av_half', "required" => array('font_color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true))), array("name" => __("Slideshow Image and Video Size", 'avia_framework'), "desc" => __("Choose image and Video size for your slideshow.", 'avia_framework'), "id" => "size", "type" => "select", "std" => "featured", "subtype" => AviaHelper::get_registered_image_sizes(1000)), array("name" => __("Stretch image to fit the slideshow size?", 'avia_framework'), "desc" => __("By default the image stretches across the full width of the screen. You can deactivate this behavior and simply align it in the center of the slider", 'avia_framework'), "id" => "stretch", "type" => "select", "std" => "", "subtype" => array(__('Yes, stretch the image', 'avia_framework') => '', __('No, dont stretch the image. If the browser window is bigger than the image simply align it centered', 'avia_framework') => 'image_no_stretch')), array("name" => __("Slideshow Transition", 'avia_framework'), "desc" => __("Choose the transition for your Slideshow.", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "slide", "subtype" => array(__('Slide sidewards', 'avia_framework') => 'slide', __('Slide up/down', 'avia_framework') => 'slide_up', __('Fade', 'avia_framework') => 'fade')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "false", "subtype" => array(__('Yes', 'avia_framework') => 'true', __('No', 'avia_framework') => 'false')), array("name" => __("Stop Autorotation with the last slide", 'avia_framework'), "desc" => __("Check if you want to disable autorotation when this last slide is displayed", 'avia_framework'), "id" => "autoplay_stopper", "required" => array('autoplay', 'equals', 'true'), "std" => "", "type" => "checkbox"), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Images will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "subtype" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')), array("name" => __("Slideshow control styling?", 'avia_framework'), "desc" => __("Here you can select if and how to display the slideshow controls", 'avia_framework'), "id" => "control_layout", "type" => "select", "std" => "av-control-default", "subtype" => array(__('Default', 'avia_framework') => 'av-control-default', __('Minimal', 'avia_framework') => 'av-control-minimal', __('Hidden', 'avia_framework') => 'av-control-hidden')), array("name" => __("Use first slides caption as permanent caption", 'avia_framework'), "desc" => __("If checked the caption will be placed on top of the slider. Please be aware that all slideshow link settings and other captions will be ignored then", 'avia_framework'), "id" => "perma_caption", "std" => "", "type" => "checkbox"), array("name" => __("Slideshow Background Image", 'avia_framework'), "desc" => __("If you are displaying transparent images like pngs you can set a static background image or pattern that will appear behind those pngs.", 'avia_framework'), "id" => "src", "type" => "image", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("name" => __("Background Image Position", 'avia_framework'), "id" => "position", "type" => "select", "std" => "top left", "required" => array('src', 'not', ''), "subtype" => array(__('Top Left', 'avia_framework') => 'top left', __('Top Center', 'avia_framework') => 'top center', __('Top Right', 'avia_framework') => 'top right', __('Bottom Left', 'avia_framework') => 'bottom left', __('Bottom Center', 'avia_framework') => 'bottom center', __('Bottom Right', 'avia_framework') => 'bottom right', __('Center Left', 'avia_framework') => 'center left', __('Center Center', 'avia_framework') => 'center center', __('Center Right', 'avia_framework') => 'center right')), array("name" => __("Background Repeat", 'avia_framework'), "id" => "repeat", "type" => "select", "std" => "no-repeat", "required" => array('src', 'not', ''), "subtype" => array(__('No Repeat', 'avia_framework') => 'no-repeat', __('Repeat', 'avia_framework') => 'repeat', __('Tile Horizontally', 'avia_framework') => 'repeat-x', __('Tile Vertically', 'avia_framework') => 'repeat-y', __('Stretch to fit', 'avia_framework') => 'stretch')), array("name" => __("Background Attachment", 'avia_framework'), "id" => "attach", "type" => "select", "std" => "scroll", "required" => array('src', 'not', ''), "subtype" => array(__('Scroll', 'avia_framework') => 'scroll', __('Fixed', 'avia_framework') => 'fixed')));
        }
예제 #20
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Heading Text", 'avia_framework'), "id" => "heading", 'container_class' => "avia-element-fullwidth", "std" => "Hello", "type" => "input"), array("name" => __("Heading Type", 'avia_framework'), "desc" => __("Select which kind of heading you want to display.", 'avia_framework'), "id" => "tag", "type" => "select", "std" => "h3", "subtype" => array("H1" => 'h1', "H2" => 'h2', "H3" => 'h3', "H4" => 'h4', "H5" => 'h5', "H6" => 'h6')), array("name" => __("Heading Color", 'avia_framework'), "desc" => __("Select a heading color", 'avia_framework'), "id" => "color", "type" => "select", "std" => "", "subtype" => array("Default Color" => '', "Meta Color" => 'meta-heading')), array("name" => __("Heading Style", 'avia_framework'), "desc" => __("Select a heading style", 'avia_framework'), "id" => "style", "type" => "select", "std" => "", "subtype" => array("Default Style" => '', "Quote Style Modern" => 'blockquote modern-quote', "Quote Style Classic" => 'blockquote classic-quote')), array("name" => __("Padding Bottom", 'avia_framework'), "desc" => __("Bottom Padding in pixel", 'avia_framework'), "id" => "padding", "type" => "select", "subtype" => AviaHtmlHelper::number_array(0, 60, 1), "std" => "10"));
 }
예제 #21
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "categories", "type" => "select", "taxonomy" => "product_cat", "subtype" => "cat", "multiple" => 6), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "3", "subtype" => array(__('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5')), array("name" => __("Entry Number", 'avia_framework'), "desc" => __("How many items should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "9", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling products. Useful if you want to remove a certain number of products because you already query them with another product grid. Attention: Use this option only if the product sorting of the product grids match and do not allow the user to pick the sort order!", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("name" => __("Sorting Options", 'avia_framework'), "desc" => __("Here you can choose how to sort the products", 'avia_framework'), "id" => "sort", "type" => "select", "std" => "dropdown", "no_first" => true, "subtype" => array(__('Let user pick by displaying a dropdown with sort options (default value is defined at Woocommerce -> Settings -> Catalog)', 'avia_framework') => 'dropdown', __('Use defaut (defined at Woocommerce -> Settings -> Catalog) ', 'avia_framework') => '0', __('Sort alphabetically', 'avia_framework') => 'title', __('Sort by most recent', 'avia_framework') => 'date', __('Sort by price', 'avia_framework') => 'price', __('Sort by popularity', 'avia_framework') => 'popularity')), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination be displayed?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')));
 }
예제 #22
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "categories", "type" => "select", "taxonomy" => Tribe__Events__Main::TAXONOMY, "subtype" => "cat", "multiple" => 6), array("name" => __("Entry Number", 'avia_framework'), "desc" => __("How many items should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "3", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination be displayed?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "no", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')));
 }
예제 #23
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Add/Edit Progress Bars", 'avia_framework'), "desc" => __("Here you can add, remove and edit the various progress bars.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Progress Bars", 'avia_framework'), "std" => array(array('title' => __('Skill or Task', 'avia_framework'), 'icon' => '43', 'progress' => '100', 'icon_select' => 'no')), 'subelements' => array(array("name" => __("Progress Bars Title", 'avia_framework'), "desc" => __("Enter the Progress Bars title here", 'avia_framework'), "id" => "title", "std" => "", "type" => "input"), array("name" => __("Progress in &percnt;", 'avia_framework'), "desc" => __("Select a number between 0 and 100", 'avia_framework'), "id" => "progress", "type" => "select", "std" => "100", "subtype" => AviaHtmlHelper::number_array(0, 100, 1)), array("name" => __("Bar Color", 'avia_framework'), "desc" => __("Choose a color for your progress bar here", 'avia_framework'), "id" => "color", "type" => "select", "std" => "theme-color", "subtype" => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black')), array("name" => __("Icon", 'avia_framework'), "desc" => __("Should an icon be displayed at the left side of the progress bar", 'avia_framework'), "id" => "icon_select", "type" => "select", "std" => "no", "subtype" => array(__('No Icon', 'avia_framework') => 'no', __('Yes, display Icon', 'avia_framework') => 'yes')), array("name" => __("List Item Icon", 'avia_framework'), "desc" => __("Select an icon for your list item below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "required" => array('icon_select', 'equals', 'yes'), "std" => ""))), array("name" => __("Progress Bar Style", 'avia_framework'), "desc" => __("Chose the styling of the progress bar here", 'avia_framework'), "id" => "bar_styling", "type" => "select", "std" => "av-striped-bar", "subtype" => array(__('Striped', 'avia_framework') => 'av-striped-bar', __('Single Color', 'avia_framework') => 'av-flat-bar')), array("name" => __("Progress Bar Animation enabled?", 'avia_framework'), "desc" => __("Chose if you want to enable the continuous animation of the progress bar", 'avia_framework'), "id" => "bar_animation", "type" => "select", "std" => "av-animated-bar", "required" => array('bar_styling', 'not', 'av-flat-bar'), "subtype" => array(__('Enabled', 'avia_framework') => 'av-animated-bar', __('Disabled', 'avia_framework') => 'av-fixed-bar')));
 }
예제 #24
0
파일: image.php 프로젝트: erynet/SUAWEBv2
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Choose Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "src", "type" => "image", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => AviaBuilder::$path['imagesURL'] . "placeholder.jpg"), array("name" => __("Image Alignment", 'avia_framework'), "desc" => __("Choose here, how to align your image", 'avia_framework'), "id" => "align", "type" => "select", "std" => "center", "subtype" => array(__('Center', 'avia_framework') => 'center', __('Right', 'avia_framework') => 'right', __('Left', 'avia_framework') => 'left', __('No special alignment', 'avia_framework') => '')), array("name" => __("Image Fade in Animation", 'avia_framework'), "desc" => __("Add a small animation to the image when the user first scrolls to the image position. This is only to add some 'spice' to the site and only works in modern browsers", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "no-animation", "subtype" => array(__('None', 'avia_framework') => 'no-animation', __('Pop up', 'avia_framework') => 'pop-up', __('Top to Bottom', 'avia_framework') => 'top-to-bottom', __('Bottom to Top', 'avia_framework') => 'bottom-to-top', __('Left to Right', 'avia_framework') => 'left-to-right', __('Right to Left', 'avia_framework') => 'right-to-left')), array("name" => __("Image Link?", 'avia_framework'), "desc" => __("Where should your image link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('No Link', 'avia_framework') => '', __('Lightbox', 'avia_framework') => 'lightbox', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open new tab/window", 'avia_framework'), "desc" => __("Do you want to open the link url in a new tab/window?", 'avia_framework'), "id" => "target", "type" => "select", "std" => "", "required" => array('link', 'not_empty_and', 'lightbox'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Image Styling", 'avia_framework'), "desc" => __("Chose a styling variaton", 'avia_framework'), "id" => "styling", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Circle (image height and width must be equal)', 'avia_framework') => 'circle', __('No Styling (no border, no border radius etc)', 'avia_framework') => 'no-styling')), array("name" => __("Image Caption", 'avia_framework'), "desc" => __("Display a caption overlay?", 'avia_framework'), "id" => "caption", "type" => "select", "std" => "", "subtype" => array(__('No', 'avia_framework') => '', __('Yes', 'avia_framework') => 'yes')), array("name" => __("Caption", 'avia_framework'), "id" => "content", "type" => "textarea", "required" => array('caption', 'equals', 'yes'), "std" => ""), array("name" => __("Caption custom font size?", 'avia_framework'), "desc" => __("Size of your caption in pixel", 'avia_framework'), "id" => "font_size", "type" => "select", "required" => array('caption', 'equals', 'yes'), "subtype" => AviaHtmlHelper::number_array(10, 40, 1, array('Default' => ''), 'px'), "std" => ""), array("name" => __("Caption Appearance", 'avia_framework'), "desc" => __("When to display the caption?", 'avia_framework'), "id" => "appearance", "type" => "select", "std" => "", "required" => array('caption', 'equals', 'yes'), "subtype" => array(__('Always display caption', 'avia_framework') => '', __('Only display on hover', 'avia_framework') => 'on-hover')));
 }
예제 #25
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Which Entries?", 'avia_framework'), "desc" => __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework'), "id" => "link", "fetchTMPL" => true, "type" => "linkpicker", "subtype" => array(__('Display Entries from:', 'avia_framework') => 'taxonomy'), "multiple" => 6, "std" => "category"), array("name" => __("Number of entries", 'avia_framework'), "desc" => __("How many entries should be displayed?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "5", "subtype" => AviaHtmlHelper::number_array(1, 40, 1, array('All' => '-1'))), array("name" => __("Offset Number", 'avia_framework'), "desc" => __("The offset determines where the query begins pulling posts. Useful if you want to remove a certain number of posts because you already query them with another blog or magazine element.", 'avia_framework'), "id" => "offset", "type" => "select", "std" => "0", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array(__('Deactivate offset', 'avia_framework') => '0', __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework') => 'no_duplicates'))), array("name" => __("Display Tabs for each category selected above?", 'avia_framework'), "desc" => __("If checked and you have selected more than one taxonomy above, a tab will be displayed for each of them", 'avia_framework') . "</small>", "id" => "tabs", "std" => "true", "type" => "checkbox"), array("name" => __("Display Thumbnails?", 'avia_framework'), "desc" => __("If checked all entries that got a feature image will show it", 'avia_framework') . "</small>", "id" => "thumbnails", "std" => "true", "type" => "checkbox"), array("name" => __("Display Element Heading?", 'avia_framework'), "desc" => __("If checked you can enter a title with link for this element", 'avia_framework') . "</small>", "id" => "heading_active", "std" => "", "type" => "checkbox"), array("name" => __("Heading Text", 'avia_framework'), "id" => "heading", "required" => array('heading_active', 'not', ''), "std" => "", "type" => "input"), array("name" => __("Heading Link?", 'avia_framework'), "desc" => __("Where should the heading link to?", 'avia_framework'), "id" => "heading_link", "type" => "linkpicker", "required" => array('heading_active', 'not', ''), "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Heading Area Color", 'avia_framework'), "desc" => __("Choose a color for your heading area here", 'avia_framework'), "id" => "heading_color", "type" => "select", "std" => "theme-color", "required" => array('heading_active', 'not', ''), "subtype" => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black', __('Custom Color', 'avia_framework') => 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color for your Heading area here", 'avia_framework'), "id" => "heading_custom_color", "type" => "colorpicker", "std" => "#ffffff", "required" => array('heading_color', 'equals', 'custom')), array("name" => __("Should the first entry be displayed bigger?", 'avia_framework'), "desc" => __("If checked the first entry will stand out with big image", 'avia_framework') . "</small>", "id" => "first_big", "std" => "", "type" => "checkbox"), array("name" => __("First entry position", 'avia_framework'), "desc" => __("Where do you want to display the first entry?", 'avia_framework'), "id" => "first_big_pos", "type" => "select", "std" => "top", "required" => array('first_big', 'not', ''), "subtype" => array(__('Display the first entry at the top of the others', 'avia_framework') => 'top', __('Display the first entry beside the others', 'avia_framework') => 'left')));
 }
예제 #26
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Edit Gallery", 'avia_framework'), "desc" => __("Create a new Gallery by selecting existing or uploading new images", 'avia_framework'), "id" => "ids", "type" => "gallery", "modal_class" => 'av-show-image-custom-link', "title" => __("Add/Edit Gallery", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), array("name" => __("Image Number", 'avia_framework'), "desc" => __("How many images should be displayed per page?", 'avia_framework'), "id" => "items", "type" => "select", "std" => "24", "subtype" => AviaHtmlHelper::number_array(1, 100, 1, array('All' => '-1'))), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many columns do you want to display?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "flexible", "subtype" => array(__('Automatic, based on screen width', 'avia_framework') => 'flexible', __('2 Columns', 'avia_framework') => '2', __('3 Columns', 'avia_framework') => '3', __('4 Columns', 'avia_framework') => '4', __('5 Columns', 'avia_framework') => '5', __('6 Columns', 'avia_framework') => '6')), array("name" => __("Pagination", 'avia_framework'), "desc" => __("Should a pagination or load more option be displayed to view additional images?", 'avia_framework'), "id" => "paginate", "type" => "select", "std" => "yes", "required" => array('items', 'not', '-1'), "subtype" => array(__('Display Pagination', 'avia_framework') => 'pagination', __('Display "Load More" Button', 'avia_framework') => 'load_more', __('No option to view additional images', 'avia_framework') => 'none')), array("name" => __("Size Settings", 'avia_framework'), "desc" => __("Here you can select how the masonry should behave and handle the images", 'avia_framework'), "id" => "size", "type" => "radio", "std" => "flex", "options" => array('flex' => __('Flexible Masonry: All images get the same width but are displayed with their original height and width ratio', 'avia_framework'), 'fixed' => __('Perfect Grid: Display a perfect grid where each image has exactly the same size. Images get cropped/stretched if they don\'t fit', 'avia_framework'), 'fixed masonry' => __('Perfect Automatic Masonry: Display a grid where most images get the same size, only very wide images get twice the width and very high images get twice the height. To qualify for "very wide" or "very high" the image must have a aspect ratio of 16:9 or higher', 'avia_framework'))), array("name" => __("Gap between elements", 'avia_framework'), "desc" => __("Select the gap between the elements", 'avia_framework'), "id" => "gap", "type" => "select", "std" => "large", "subtype" => array(__('No Gap', 'avia_framework') => 'no', __('1 Pixel Gap', 'avia_framework') => '1px', __('Large Gap', 'avia_framework') => 'large')), array("name" => __("Image overlay", 'avia_framework'), "desc" => __("Do you want to display the image overlay effect that gets removed on mouseover?", 'avia_framework'), "id" => "overlay_fx", "type" => "select", "std" => "1px", "subtype" => array(__('Overlay activated', 'avia_framework') => 'active', __('Overlay deactivated', 'avia_framework') => '')), array("name" => __("Image Title and Caption", 'avia_framework'), "desc" => __("You can choose if you want to display title and/or caption", 'avia_framework'), "id" => "caption_elements", "type" => "select", "std" => "title excerpt", "subtype" => array(__('Display Title and Caption', 'avia_framework') => 'title excerpt', __('Display Title', 'avia_framework') => 'title', __('Display Caption', 'avia_framework') => 'excerpt', __('Display Neither', 'avia_framework') => 'none')), array("name" => __("Element Title and Caption", 'avia_framework'), "desc" => __("You can choose whether to always display Title and Caption or only on hover", 'avia_framework'), "id" => "caption_display", "type" => "select", "std" => "always", "required" => array('caption_elements', 'not', 'none'), "subtype" => array(__('Always Display', 'avia_framework') => 'always', __('Display on mouse hover', 'avia_framework') => 'on-hover')), array("name" => __("Image Link", 'avia_framework'), "desc" => __("By default images link to a larger image version in a lightbox. You can deactivate that link. You can also set custom links when editing the images in the gallery", 'avia_framework'), "id" => "container_links", "type" => "select", "std" => "active", "subtype" => array(__('Lightbox linking active', 'avia_framework') => 'active', __('Lightbox linking deactivated. (Custom links will still be used)', 'avia_framework') => '')), array("name" => __("For Developers: Section ID", 'avia_framework'), "desc" => __("Apply a custom ID Attribute to the section, so you can apply a unique style via CSS. This option is also helpful if you want to use anchor links to scroll to a sections when a link is clicked", 'avia_framework') . "<br/><br/>" . __("Use with caution and make sure to only use allowed characters. No special characters can be used.", 'avia_framework'), "id" => "id", "type" => "input", "std" => ""));
 }
예제 #27
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("name" => __("Number", 'avia_framework'), "desc" => __("Add a Number here. It will be animated. You can also add non numerical characters. Valid examples: 24/7, 99.9\$, 90%, 35k, 200mm etc ", 'avia_framework'), "id" => "number", "type" => "input", "std" => __("100", 'avia_framework')), array("name" => __("Description", 'avia_framework'), "desc" => __("Add some content to be displayed bellow the number", 'avia_framework'), "id" => "content", "type" => "textarea", "std" => __("Click here to add your own text", "avia_builder")), array("name" => __("Icon", 'avia_framework'), "desc" => __("Add an icon to the element?", 'avia_framework'), "id" => "icon_select", "type" => "select", "std" => "no", "subtype" => array(__('No Icon', 'avia_framework') => 'no', __('Yes, display an icon in front of number', 'avia_framework') => 'av-icon-before', __('Yes, display an icon after the number', 'avia_framework') => 'av-icon-after')), array("name" => __("Icon", 'avia_framework'), "desc" => __("Select an icon for the element here", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => "", "required" => array('icon_select', 'not', 'no')), array("name" => __("Font style?", 'avia_framework'), "desc" => __("You can use the default font colors and styles or use a custom font color for the element (in case you use a background image for example)", 'avia_framework'), "id" => "color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Light', 'avia_framework') => 'font-light', __('Dark', 'avia_framework') => 'font-dark', __('Custom', 'avia_framework') => 'font-custom'), "std" => ""), array("name" => __("Custom Color", 'avia_framework'), "desc" => __("Select a custom color for your text here", 'avia_framework'), "id" => "custom_color", "type" => "colorpicker", "std" => "#444444", "required" => array('color', 'equals', 'font-custom')), array("name" => __("Number custom font size?", 'avia_framework'), "desc" => __("Size of your number in pixel", 'avia_framework'), "id" => "font_size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(16, 100, 2, array('Default' => ''), 'px'), "std" => ""), array("name" => __("Description custom font size?", 'avia_framework'), "desc" => __("Size of your description in pixel", 'avia_framework'), "id" => "font_size_description", "type" => "select", "subtype" => AviaHtmlHelper::number_array(10, 40, 1, array('Default' => ''), 'px'), "std" => ""), array("name" => __("Apply link?", 'avia_framework'), "desc" => __("Do you want to apply  a link to the element?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "std" => "", "subtype" => array(__('No Link', 'avia_framework') => '', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open in new window", 'avia_framework'), "desc" => __("Do you want to open the link in a new window", 'avia_framework'), "id" => "linktarget", "required" => array('link', 'not', ''), "type" => "select", "std" => "no", "subtype" => array(__('Yes', 'avia_framework') => 'yes', __('No', 'avia_framework') => 'no')));
 }
예제 #28
0
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Date", 'avia_framework'), "desc" => __("Pick a date in the future.", 'avia_framework'), "id" => "date", "type" => "datepicker", "container_class" => 'av_third av_third_first', "std" => ""), array("name" => __("Hour", 'avia_framework'), "desc" => __("Pick the hour of the day", 'avia_framework'), "id" => "hour", "type" => "select", "std" => "12", "container_class" => 'av_third', "subtype" => AviaHtmlHelper::number_array(0, 23, 1, array(), ' h')), array("name" => __("Minute", 'avia_framework'), "desc" => __("Pick the minute of the hour", 'avia_framework'), "id" => "minute", "type" => "select", "std" => "0", "container_class" => 'av_third', "subtype" => AviaHtmlHelper::number_array(0, 59, 1, array(), ' min')), array("name" => __("Smallest time unit", 'avia_framework'), "desc" => __("The smallest unit that will be displayed", 'avia_framework'), "id" => "min", "type" => "select", "std" => "1", "subtype" => $this->time_array), array("name" => __("Largest time unit", 'avia_framework'), "desc" => __("The largest unit that will be displayed", 'avia_framework'), "id" => "max", "type" => "select", "std" => "5", "subtype" => $this->time_array), array("name" => __("Text Alignment", 'avia_framework'), "desc" => __("Choose here, how to align your text", 'avia_framework'), "id" => "align", "type" => "select", "std" => "center", "subtype" => array(__('Center', 'avia_framework') => 'av-align-center', __('Right', 'avia_framework') => 'av-align-right', __('Left', 'avia_framework') => 'av-align-left')), array("name" => __("Number Font Size", 'avia_framework'), "desc" => __("Size of your numbers in Pixel", 'avia_framework'), "id" => "size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(20, 90, 1, array(__("Default Size", 'avia_framework') => '')), "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Colors", 'avia_framework'), "desc" => __("Choose the colors here", 'avia_framework'), "id" => "style", "type" => "select", "std" => "center", "subtype" => array(__('Default', 'avia_framework') => 'av-default-style', __('Theme colors', 'avia_framework') => 'av-colored-style', __('Transparent Light', 'avia_framework') => 'av-trans-light-style', __('Transparent Dark', 'avia_framework') => 'av-trans-dark-style')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
예제 #29
0
        /**
         * Popup Elements
         *
         * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
         * opens a modal window that allows to edit the element properties
         *
         * @return void
         */
        function popup_elements()
        {
            $this->elements = array(array("type" => "modal_group", "id" => "content", 'container_class' => "avia-element-fullwidth avia-multi-img", "modal_title" => __("Edit Form Element", 'avia_framework'), "add_label" => __("Add single image or video", 'avia_framework'), "std" => array(), 'creator' => array("name" => __("Add Images", 'avia_framework'), "desc" => __("Here you can add new Images to the slideshow.", 'avia_framework'), "id" => "id", "type" => "multi_image", "title" => __("Add multiple Images", 'avia_framework'), "button" => __("Insert Images", 'avia_framework'), "std" => ""), 'subelements' => array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Slide", 'avia_framework'), 'nodescription' => true), array("name" => __("Which type of slide is this?", 'avia_framework'), "id" => "slide_type", "type" => "select", "std" => "", "subtype" => array(__('Image Slide', 'avia_framework') => 'image', __('Video Slide', 'avia_framework') => 'video')), array("name" => __("Choose another Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'), "id" => "id", "fetch" => "id", "type" => "image", "required" => array('slide_type', 'is_empty_or', 'image'), "title" => __("Change Image", 'avia_framework'), "button" => __("Change Image", 'avia_framework'), "std" => ""), array("name" => __("Image Position", 'avia_framework'), "id" => "position", "type" => "select", "std" => "Center Center", "required" => array('id', 'not', ''), "subtype" => array(__('Top Left', 'avia_framework') => 'top left', __('Top Center', 'avia_framework') => 'top center', __('Top Right', 'avia_framework') => 'top right', __('Bottom Left', 'avia_framework') => 'bottom left', __('Bottom Center', 'avia_framework') => 'bottom center', __('Bottom Right', 'avia_framework') => 'bottom right', __('Center Left', 'avia_framework') => 'center left', __('Center Center', 'avia_framework') => 'center center', __('Center Right', 'avia_framework') => 'center right')), array("name" => __("Video URL", 'avia_framework'), "desc" => __('Enter the URL to the Video. Currently supported are Youtube, Vimeo and direct linking of web-video files (mp4, webm, ogv)', 'avia_framework') . '<br/><br/>' . __('Working examples Youtube & Vimeo:', 'avia_framework') . '<br/>
								<strong>http://vimeo.com/64927358</strong><br/> 
								<strong>http://www.youtube.com/watch?v=5guMumPFBag</strong><br/><br/>', "required" => array('slide_type', 'equals', 'video'), "id" => "video", "std" => "http://", "type" => "video", "title" => __("Upload Video", 'avia_framework'), "button" => __("Use Video", 'avia_framework')), array("name" => __("Choose fallback image for mobile devices", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework') . "<br/><small>" . __("Video on most mobile devices can't be controlled properly with JavaScript, which is mandatory here, therefore you are required to select a fallback image which can be displayed instead", 'avia_framework') . "</small>", "id" => "mobile_image", "fetch" => "id", "type" => "image", "required" => array('slide_type', 'equals', 'video'), "title" => __("Choose Image", 'avia_framework'), "button" => __("Choose Image", 'avia_framework'), "std" => ""), array("name" => __("Video Display", 'avia_framework'), "desc" => __('You can either make sure that the whole video is visible and no cropping occurs or that the video is stretched to display full screen', 'avia_framework'), "id" => "video_cover", "type" => "select", "std" => "", "required" => array('slide_type', 'equals', 'video'), "subtype" => array(__('Display Video in default mode, black borders may occur but the whole video will be visible', 'avia_framework') => '', __('Stretch Video so it covers the whole slideshow (Video must be 16:9 for this option to work properly)', 'avia_framework') => 'av-element-cover')), array("name" => __("Hide Video Controls", 'avia_framework'), "desc" => __("Check if you want to hide the controls (works for youtube and self hosted videos)", 'avia_framework'), "id" => "video_controls", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Mute Video Player", 'avia_framework'), "desc" => __("Check if you want to mute the video", 'avia_framework'), "id" => "video_mute", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Loop Video Player", 'avia_framework'), "desc" => __("Check if you want to loop the video (instead of showing the next slide the video will play from the beginning again)", 'avia_framework'), "id" => "video_loop", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("name" => __("Disable Autoplay", 'avia_framework'), "desc" => __("Check if you want to disable video autoplay when this slide shows", 'avia_framework'), "id" => "video_autoplay", "required" => array('slide_type', 'equals', 'video'), "std" => "", "type" => "checkbox"), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Caption", 'avia_framework'), 'nodescription' => true), array("name" => __("Caption Title", 'avia_framework'), "desc" => __("Enter a caption title for the slide here", 'avia_framework'), "id" => "title", "std" => "", "container_class" => 'av_half av_half_first', "type" => "input"), array("name" => __("Caption Title Font Size", 'avia_framework'), "desc" => __("Select a custom font size. Leave empty to use the default", 'avia_framework'), "id" => "custom_title_size", "type" => "select", "std" => "", "container_class" => 'av_half', "subtype" => AviaHtmlHelper::number_array(10, 120, 1, array(__("Default Size", 'avia_framework') => ''), 'px')), array("name" => __("Caption Text", 'avia_framework'), "desc" => __("Enter some additional caption text", 'avia_framework'), "id" => "content", "type" => "textarea", "container_class" => 'av_half av_half_first', "std" => ""), array("name" => __("Caption Text Font Size", 'avia_framework'), "desc" => __("Select a custom font size. Leave empty to use the default", 'avia_framework'), "id" => "custom_content_size", "type" => "select", "std" => "", "container_class" => 'av_half av_no_bottom', "subtype" => AviaHtmlHelper::number_array(10, 90, 1, array(__("Default Size", 'avia_framework') => ''), 'px')), array("name" => __("Caption Positioning", 'avia_framework'), "id" => "caption_pos", "type" => "select", "std" => "caption_bottom", "subtype" => array('Right Framed' => 'caption_right caption_right_framed caption_framed', 'Left Framed' => 'caption_left caption_left_framed caption_framed', 'Bottom Framed' => 'caption_bottom caption_bottom_framed caption_framed', 'Center Framed' => 'caption_center caption_center_framed caption_framed', 'Right without Frame' => 'caption_right', 'Left without Frame' => 'caption_left', 'Bottom without Frame' => 'caption_bottom', 'Center without Frame' => 'caption_center')), array("name" => __("Apply a link or buttons to the slide?", 'avia_framework'), "desc" => __("You can choose to apply the link to the whole image or to add 'Call to Action Buttons' that get appended to the caption", 'avia_framework'), "id" => "link_apply", "type" => "select", "std" => "", "subtype" => array(__('No Link for this slide', 'avia_framework') => '', __('Apply Link to Image', 'avia_framework') => 'image', __('Attach one button', 'avia_framework') => 'button', __('Attach two buttons', 'avia_framework') => 'button button-two')), array("name" => __("Image Link?", 'avia_framework'), "desc" => __("Where should the Image link to?", 'avia_framework'), "id" => "link", "required" => array('link_apply', 'equals', 'image'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Open Image in Lightbox', 'avia_framework') => 'lightbox', __('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Open Link in new Window?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target", "type" => "select", "std" => "", "required" => array('link', 'not_empty_and', 'lightbox'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button 1 Label", 'avia_framework'), "desc" => __("This is the text that appears on your button.", 'avia_framework'), "id" => "button_label", "type" => "input", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button'), "std" => "Click me"), array("name" => __("Button 1 Color", 'avia_framework'), "desc" => __("Choose a color for your button here", 'avia_framework'), "id" => "button_color", "type" => "select", "std" => "light", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button'), "subtype" => array(__('Translucent Buttons', 'avia_framework') => array(__('Light Transparent', 'avia_framework') => 'light', __('Dark Transparent', 'avia_framework') => 'dark'), __('Colored Buttons', 'avia_framework') => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Theme Color Subtle', 'avia_framework') => 'theme-color-subtle', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black'))), array("name" => __("Button 1 Link?", 'avia_framework'), "desc" => __("Where should the Button link to?", 'avia_framework'), "id" => "link1", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Button 1 Link Target?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target1", "type" => "select", "std" => "", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button 2 Label", 'avia_framework'), "desc" => __("This is the text that appears on your second button.", 'avia_framework'), "id" => "button_label2", "type" => "input", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button-two'), "std" => "Click me"), array("name" => __("Button 2 Color", 'avia_framework'), "desc" => __("Choose a color for your second button here", 'avia_framework'), "id" => "button_color2", "type" => "select", "std" => "light", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button-two'), "subtype" => array(__('Translucent Buttons', 'avia_framework') => array(__('Light Transparent', 'avia_framework') => 'light', __('Dark Transparent', 'avia_framework') => 'dark'), __('Colored Buttons', 'avia_framework') => array(__('Theme Color', 'avia_framework') => 'theme-color', __('Theme Color Subtle', 'avia_framework') => 'theme-color-subtle', __('Blue', 'avia_framework') => 'blue', __('Red', 'avia_framework') => 'red', __('Green', 'avia_framework') => 'green', __('Orange', 'avia_framework') => 'orange', __('Aqua', 'avia_framework') => 'aqua', __('Teal', 'avia_framework') => 'teal', __('Purple', 'avia_framework') => 'purple', __('Pink', 'avia_framework') => 'pink', __('Silver', 'avia_framework') => 'silver', __('Grey', 'avia_framework') => 'grey', __('Black', 'avia_framework') => 'black'))), array("name" => __("Button 2 Link?", 'avia_framework'), "desc" => __("Where should the Button link to?", 'avia_framework'), "id" => "link2", "container_class" => 'av_half av_half_first', "required" => array('link_apply', 'contains', 'button-two'), "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => ""), array("name" => __("Button 2 Link Target?", 'avia_framework'), "desc" => __("Select here if you want to open the linked page in a new window", 'avia_framework'), "id" => "link_target2", "type" => "select", "std" => "", "container_class" => 'av_half', "required" => array('link_apply', 'contains', 'button-two'), "subtype" => AviaHtmlHelper::linking_options()), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Font Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "font_color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Custom Caption Title Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_title", "type" => "colorpicker", "std" => "", "container_class" => 'av_half av_half_first', "required" => array('font_color', 'equals', 'custom')), array("name" => __("Custom Caption Content Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_content", "type" => "colorpicker", "std" => "", "container_class" => 'av_half', "required" => array('font_color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Slide Overlay", 'avia_framework'), 'nodescription' => true), array("name" => __("Enable Overlay?", 'avia_framework'), "desc" => __("Check if you want to display a transparent color and/or pattern overlay above your slideshow image/video", 'avia_framework'), "id" => "overlay_enable", "std" => "", "type" => "checkbox"), array("name" => __("Overlay Opacity", 'avia_framework'), "desc" => __("Set the opacity of your overlay: 0.1 is barely visible, 1.0 is opaque ", 'avia_framework'), "id" => "overlay_opacity", "type" => "select", "std" => "0.5", "required" => array('overlay_enable', 'not', ''), "subtype" => array(__('0.1', 'avia_framework') => '0.1', __('0.2', 'avia_framework') => '0.2', __('0.3', 'avia_framework') => '0.3', __('0.4', 'avia_framework') => '0.4', __('0.5', 'avia_framework') => '0.5', __('0.6', 'avia_framework') => '0.6', __('0.7', 'avia_framework') => '0.7', __('0.8', 'avia_framework') => '0.8', __('0.9', 'avia_framework') => '0.9', __('1.0', 'avia_framework') => '1')), array("name" => __("Overlay Color", 'avia_framework'), "desc" => __("Select a custom  color for your overlay here. Leave empty if you want no color overlay", 'avia_framework'), "id" => "overlay_color", "type" => "colorpicker", "required" => array('overlay_enable', 'not', ''), "std" => ""), array("required" => array('overlay_enable', 'not', ''), "id" => "overlay_pattern", "name" => __("Background Image", 'avia_framework'), "desc" => __("Select an existing or upload a new background image", 'avia_framework'), "type" => "select", "subtype" => array(__('No Background Image', 'avia_framework') => '', __('Upload custom image', 'avia_framework') => 'custom'), "std" => "", "folder" => "images/background-images/", "folderlabel" => "", "group" => "Select predefined pattern", "exclude" => array('fullsize-', 'gradient')), array("name" => __("Custom Pattern", 'avia_framework'), "desc" => __("Upload your own seamless pattern", 'avia_framework'), "id" => "overlay_custom_pattern", "type" => "image", "fetch" => "url", "secondary_img" => true, "required" => array('overlay_pattern', 'equals', 'custom'), "title" => __("Insert Pattern", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true))), array("name" => __("Slideshow Image Size", 'avia_framework'), "desc" => __("Choose image size for your slideshow.", 'avia_framework'), "id" => "size", "type" => "select", "std" => "extra_large", "subtype" => AviaHelper::get_registered_image_sizes(1000, true)), array("name" => __("Slideshow Transition", 'avia_framework'), "desc" => __("Choose the transition for your Slideshow.", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "slide", "subtype" => array(__('Slide sidewards', 'avia_framework') => 'slide', __('Slide up/down', 'avia_framework') => 'slide_up', __('Fade', 'avia_framework') => 'fade')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the slideshow should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "false", "subtype" => array(__('Yes', 'avia_framework') => 'true', __('No', 'avia_framework') => 'false')), array("name" => __("Stop Autorotation with the last slide", 'avia_framework'), "desc" => __("Check if you want to disable autorotation when this last slide is displayed", 'avia_framework'), "id" => "autoplay_stopper", "required" => array('autoplay', 'equals', 'true'), "std" => "", "type" => "checkbox"), array("name" => __("Slideshow autorotation duration", 'avia_framework'), "desc" => __("Images will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "subtype" => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '15' => '15', '20' => '20', '30' => '30', '40' => '40', '60' => '60', '100' => '100')), array("name" => __("Slideshow control styling?", 'avia_framework'), "desc" => __("Here you can select if and how to display the slideshow controls", 'avia_framework'), "id" => "control_layout", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Minimal', 'avia_framework') => 'av-control-minimal', __('Hidden', 'avia_framework') => 'av-control-hidden')), array("name" => __("Display a scroll down arrow", 'avia_framework'), "desc" => __("Check if you want to show a button at the bottom of the slider that takes the user to the next section by scrolling down", 'avia_framework'), "id" => "scroll_down", "std" => "", "type" => "checkbox"), array("name" => __("Use first slides caption as permanent caption", 'avia_framework'), "desc" => __("If checked the caption will be placed on top of the slider. Please be aware that all slideshow link settings and other captions will be ignored then", 'avia_framework'), "id" => "perma_caption", "std" => "", "type" => "checkbox"));
        }
 /**
  * Popup Elements
  *
  * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
  * opens a modal window that allows to edit the element properties
  *
  * @return void
  */
 function popup_elements()
 {
     $this->elements = array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Smallest time unit", 'avia_framework'), "desc" => __("The smallest unit that will be displayed", 'avia_framework'), "id" => "min", "type" => "select", "std" => "1", "subtype" => $this->time_array), array("name" => __("Largest time unit", 'avia_framework'), "desc" => __("The largest unit that will be displayed", 'avia_framework'), "id" => "max", "type" => "select", "std" => "5", "subtype" => $this->time_array), array("name" => __("Text Alignment", 'avia_framework'), "desc" => __("Choose here, how to align your text", 'avia_framework'), "id" => "align", "type" => "select", "std" => "center", "subtype" => array(__('Center', 'avia_framework') => 'av-align-center', __('Right', 'avia_framework') => 'av-align-right', __('Left', 'avia_framework') => 'av-align-left')), array("name" => __("Number Font Size", 'avia_framework'), "desc" => __("Size of your numbers in Pixel", 'avia_framework'), "id" => "size", "type" => "select", "subtype" => AviaHtmlHelper::number_array(20, 90, 1, array(__("Default Size", 'avia_framework') => '')), "std" => ""), array("name" => __("Display Event Title?", 'avia_framework'), "desc" => __("Choose here, if you want to display the event title", 'avia_framework'), "id" => "title", "type" => "select", "std" => "", "subtype" => array(__('No Title, timer only', 'avia_framework') => '', __('Title on top', 'avia_framework') => 'top', __('Title below', 'avia_framework') => 'bottom')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Colors", 'avia_framework'), "desc" => __("Choose the colors here", 'avia_framework'), "id" => "style", "type" => "select", "std" => "center", "subtype" => array(__('Default', 'avia_framework') => 'av-default-style', __('Theme colors', 'avia_framework') => 'av-colored-style', __('Transparent Light', 'avia_framework') => 'av-trans-light-style', __('Transparent Dark', 'avia_framework') => 'av-trans-dark-style')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }