/**
  * 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;
     $menus = array();
     if (!empty($_POST) && !empty($_POST['action']) && $_POST['action'] == "avia_ajax_av_submenu") {
         $menus = AviaHelper::list_menus();
     }
     $this->elements = array(array("name" => __("Which kind of menu do you want to display", 'avia_framework'), "name" => __("Either use an existing menu, built in Appearance -> Menus or create a simple custom menu here", 'avia_framework'), "id" => "which_menu", "type" => "select", "std" => "center", "subtype" => array(__('Use existing menu', 'avia_framework') => '', __('Build simple custom menu', 'avia_framework') => 'custom')), array("name" => __("Select menu to display", 'avia_framework'), "desc" => __("You can create new menus in ", 'avia_framework') . "<a target='_blank' href='" . admin_url('nav-menus.php?action=edit&menu=0') . "'>" . __('Appearance -> Menus', 'avia_framework') . "</a><br/>" . __("Please note that Mega Menus are not supported for this element ", 'avia_framework'), "id" => "menu", "type" => "select", "std" => "", "required" => array('which_menu', 'not', 'custom'), "subtype" => $menus), 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", "required" => array('which_menu', 'equals', 'custom'), "modal_title" => __("Edit Text Element", 'avia_framework'), "std" => array(array('title' => __('Menu Item 1', 'avia_framework')), array('title' => __('Menu Item 2', 'avia_framework'))), 'subelements' => array(array("name" => __("Menu Text", 'avia_framework'), "desc" => __("Enter the menu text here", 'avia_framework'), "id" => "title", "std" => "", "type" => "input"), array("name" => __("Text Link?", 'avia_framework'), "desc" => __("Apply  a link to the menu text?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "std" => "", "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy')), 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" => __("Style", 'avia_framework'), "desc" => __("Select the styling of your menu item", 'avia_framework'), "id" => "button_style", "type" => "select", "std" => "", "subtype" => array(__('Default Style', 'avia_framework') => '', __('Button Style (Colored)', 'avia_framework') => 'av-menu-button av-menu-button-colored', __('Button Style (Bordered)', 'avia_framework') => 'av-menu-button av-menu-button-bordered')))), array("name" => __("Menu Position", 'avia_framework'), "name" => __("Aligns the menu either to the left, the right or centers it", 'avia_framework'), "id" => "position", "type" => "select", "std" => "center", "subtype" => array(__('Left', 'avia_framework') => 'left', __('Center', 'avia_framework') => 'center', __('Right', 'avia_framework') => 'right')), array("name" => __("Menu Colors", 'avia_framework'), "id" => "color", "desc" => __("The menu will use the color scheme you select. Color schemes are defined on your styling page", 'avia_framework') . '<br/><a target="_blank" href="' . admin_url('admin.php?page=avia#goto_styling') . '">' . __("(Show Styling Page)", 'avia_framework') . "</a>", "type" => "select", "std" => "main_color", "subtype" => array_flip($avia_config['color_sets'])), array("name" => __("Sticky Submenu", 'avia_framework'), "desc" => __("If checked the menu will stick at the top of the page once it touches it", 'avia_framework'), "id" => "sticky", "std" => "true", "type" => "checkbox"), array("name" => __("Mobile Menu Display", 'avia_framework'), "desc" => __("How do you want to display the menu on mobile devices", 'avia_framework'), "id" => "mobile", "type" => "select", "std" => "disabled", "subtype" => array(__('Display full menu (works best if you only got a few menu items)', 'avia_framework') => 'disabled', __('Display a button to open menu (works best for menus with a lot of menu items)', 'avia_framework') => 'active')), array("name" => __("Hide Mobile Menu Submenu Items", 'avia_framework'), "desc" => __("By default all menu items of the mobile menu are visible. If you activate this option they will be hidden and a user needs to click on the parent menu item to display the submenus", 'avia_framework'), "id" => "mobile_submenu", "required" => array('mobile', 'equals', 'active'), "type" => "checkbox", "std" => ""));
 }
Beispiel #2
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" => __("Content", 'avia_framework'), "desc" => __("Enter some content for Promo Box", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("Welcome Stranger! This is an example Text for your fantastic Promo Box! Feel Free to delete it and replace it with your own fancy Message!", "avia_framework")), array("name" => __("Promo Box Button", 'avia_framework'), "desc" => __("Do you want to display a Call to Action Button on the right side of the box?", 'avia_framework'), "id" => "button", "type" => "select", "std" => "yes", "subtype" => array(__('yes', 'avia_framework') => 'yes', __('no', 'avia_framework') => 'no')), array("name" => __("Button Label", 'avia_framework'), "desc" => __("This is the text that appears on your button.", 'avia_framework'), "id" => "label", "type" => "input", "required" => array('button', 'equals', 'yes'), "std" => "Click me"), array("name" => __("Button Link?", 'avia_framework'), "desc" => __("Where should your button link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "required" => array('button', 'equals', 'yes'), "fetchTMPL" => true, "subtype" => array(__('Set Manually', 'avia_framework') => 'manually', __('Single Entry', 'avia_framework') => 'single', __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy'), "std" => "single"), 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('button', 'equals', 'yes'), "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button Color", 'avia_framework'), "desc" => __("Choose a color for your button here", 'avia_framework'), "id" => "color", "type" => "select", "std" => "theme-color", "required" => array('button', 'equals', 'yes'), "subtype" => 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', __('Custom Color', 'avia_framework') => 'custom')), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color for your Button here", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "#444444", "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color for your Button here", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "#ffffff", "required" => array('color', 'equals', 'custom')), array("name" => __("Button Size", 'avia_framework'), "desc" => __("Choose the size of your button here", 'avia_framework'), "id" => "size", "type" => "select", "std" => "large", "required" => array('button', 'equals', 'yes'), "subtype" => array(__('Small', 'avia_framework') => 'small', __('Medium', 'avia_framework') => 'medium', __('Large', 'avia_framework') => 'large')), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Should an icon be displayed at the left side of the button", 'avia_framework'), "id" => "icon_select", "type" => "select", "std" => "no", "required" => array('button', 'equals', 'yes'), "subtype" => array(__('No Icon', 'avia_framework') => 'no', __('Yes, display Icon', 'avia_framework') => 'yes')), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Select an icon for your Button below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => "", "required" => array('icon_select', 'equals', 'yes')));
 }
Beispiel #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" => __("Add/Edit List items", 'avia_framework'), "desc" => __("Here you can add, remove and edit the items of your item list.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit List Item", 'avia_framework'), "std" => array(), 'subelements' => array(array("name" => __("List Item Title", 'avia_framework'), "desc" => __("Enter the list item title here", 'avia_framework'), "id" => "title", "std" => "List Title", "type" => "input"), array("name" => __("List Item Description", 'avia_framework'), "desc" => __("Enter the item description here", 'avia_framework'), "id" => "content", "std" => "", "type" => "tiny_mce"), array("name" => __("Pricing", 'avia_framework'), "desc" => __("Enter the price for the item here. Eg: 34\$, 55.5€, £12", 'avia_framework'), "id" => "price", "std" => "", "type" => "input"), array("name" => __("Thumbnail 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" => __("Item Link?", 'avia_framework'), "desc" => __("Where should your item link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array(__('No Link', 'avia_framework') => '', __('Open bigger version of Thumbnail Image in lightbox (image needs to be set)', '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" => __("Disable Item?", 'avia_framework'), "desc" => __("Temporarily disable and hide the item without deleting it, if its out of stock", 'avia_framework'), "id" => "disabled", "type" => "checkbox", "std" => ""))));
 }
Beispiel #4
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));
 }
        /**
         * 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" => "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" => __("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('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" => __("Button Title", 'avia_framework'), "desc" => __("This is the text that appears on your button.", 'avia_framework'), "id" => "label", "type" => "input", "std" => __("Click me", 'avia_framework')), array("name" => __("Additional Description", 'avia_framework'), "desc" => __("Enter an additional description", 'avia_framework'), "id" => "content", "type" => "textarea", "std" => ""), array("name" => __("Description position", 'avia_framework'), "desc" => __("Show the description above or below the title?", 'avia_framework'), "id" => "description_pos", "type" => "select", "subtype" => array(__('Description above title', 'avia_framework') => 'above', __('Description below title', 'avia_framework') => 'below'), "std" => "below"), array("name" => __("Button Link?", 'avia_framework'), "desc" => __("Where should your button link to?", 'avia_framework'), "id" => "link", "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" => __("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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Should an icon be displayed at the left side of the button", 'avia_framework'), "id" => "icon_select", "type" => "select", "std" => "no", "subtype" => array(__('No Icon', 'avia_framework') => 'no', __('Yes, display Icon to the left of the title', 'avia_framework') => 'yes-left-icon', __('Yes, display Icon to the right of the title', 'avia_framework') => 'yes-right-icon')), array("name" => __("Icon Visibility", 'avia_framework'), "desc" => __("Check to only display icon on hover", 'avia_framework'), "id" => "icon_hover", "type" => "checkbox", "std" => "", "required" => array('icon_select', 'not_empty_and', 'no')), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Select an icon for your Button below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => "", "required" => array('icon_select', 'not_empty_and', 'no')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Font Color", 'avia_framework'), "desc" => __("Select a custom font color for your Button here", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "#ffffff"), array("name" => __("Background Color", 'avia_framework'), "desc" => __("Choose a background color for your button here", 'avia_framework'), "id" => "color", "type" => "select", "std" => "theme-color", "subtype" => 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', __('Custom Color', 'avia_framework') => 'custom')), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color for your Button here", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "#444444", "required" => array('color', 'equals', 'custom')), array("name" => __("Background Hover Color", 'avia_framework'), "desc" => __("Choose a background hover color for your button here", 'avia_framework'), "id" => "color_hover", "type" => "select", "std" => "theme-color-subtle", "subtype" => 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', __('Custom Color', 'avia_framework') => 'custom')), array("name" => __("Custom Hover Color", 'avia_framework'), "desc" => __("Select a custom background color for your Button here", 'avia_framework'), "id" => "custom_bg_hover", "type" => "colorpicker", "std" => "#444444", "required" => array('color_hover', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
Beispiel #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" => "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("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 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", "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("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" => __("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')), 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" => __("Slideshow Image Size", 'avia_framework'), "desc" => __("Choose the size of the image that loads into the slideshow.", 'avia_framework'), "id" => "size", "type" => "select", "std" => "featured", "subtype" => AviaHelper::get_registered_image_sizes(array('thumbnail', 'logo', 'widget', 'slider_thumb'))), 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" => __("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('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')));
        }
Beispiel #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("type" => "modal_group", "id" => "content", 'container_class' => "avia-element-fullwidth avia-multi-img", "modal_title" => __("Edit Form Element", 'avia_framework'), "std" => array(), 'creator' => array("name" => __("Add Images", 'avia_framework'), "desc" => __("Here you can add new Images to the partner/logo element.", '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" => __("Image Caption", 'avia_framework'), "desc" => __("Display a image caption on hover", 'avia_framework'), "id" => "hover", "type" => "input", "std" => ""), array("name" => __("Partner/Logo Link?", 'avia_framework'), "desc" => __("Where should the image/logo link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "std" => "-", "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" => __("Link Title", 'avia_framework'), "desc" => __("Enter a link title", 'avia_framework'), "id" => "linktitle", "type" => "input", "required" => array('link', 'equals', 'manually'), "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" => __("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', __('6 Columns', 'avia_framework') => '6', __('7 Columns', 'avia_framework') => '7', __('8 Columns', 'avia_framework') => '8')), array("name" => __("Heading", 'avia_framework'), "desc" => __("Do you want to display a heading above the images?", 'avia_framework'), "id" => "heading", "type" => "input", "std" => ""), array("name" => __("Logo Image Size", 'avia_framework'), "desc" => __("Choose image size for your slideshow.", 'avia_framework'), "id" => "size", "type" => "select", "std" => "", "subtype" => AviaHelper::get_registered_image_sizes(array('thumbnail', 'logo', 'widget', 'slider_thumb'))), array("name" => __("Display Border around images?", 'avia_framework'), "desc" => __("Do you want to display a light border around the images?", 'avia_framework'), "id" => "border", "type" => "select", "std" => "", "subtype" => array(__('Display border', 'avia_framework') => '', __('Dont display border', 'avia_framework') => 'av-border-deactivate')), array("name" => __("Logo Slider or Logo Grid Layout", 'avia_framework'), "desc" => __("Do you want to use a grid or a slider to display the logos?", 'avia_framework'), "id" => "type", "type" => "select", "std" => "slider", "subtype" => array(__('Slider', 'avia_framework') => 'slider', __('Grid', 'avia_framework') => 'grid')), array("name" => __("Transition", 'avia_framework'), "desc" => __("Choose the transition for your logo slider.", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "slide", "required" => array('type', 'equals', 'slider'), "subtype" => array(__('Slide', 'avia_framework') => 'slide', __('Fade', 'avia_framework') => 'fade')), array("name" => __("Slider controls", 'avia_framework'), "desc" => __("Do you want to display slider control buttons?", 'avia_framework'), "id" => "navigation", "type" => "select", "required" => array('type', 'equals', 'slider'), "std" => "arrows", "subtype" => array(__('Yes, display arrow control buttons', 'avia_framework') => 'arrows', __('Yes, display dot control buttons', 'avia_framework') => 'dots', __('No, do not display any control buttons', 'avia_framework') => 'no')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the logo slider should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "false", "required" => array('type', 'equals', 'slider'), "subtype" => array(__('Yes', 'avia_framework') => 'true', __('No', 'avia_framework') => 'false')), array("name" => __("Slider autorotation duration", 'avia_framework'), "desc" => __("Images will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "required" => array('type', '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')));
 }
Beispiel #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("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Content", 'avia_framework'), 'nodescription' => true), array("name" => __("Add/Edit List items", 'avia_framework'), "desc" => __("Here you can add, remove and edit the items of your item list.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit List Item", 'avia_framework'), "std" => array(array('title' => __('List Title 1', 'avia_framework'), 'icon' => '43', 'content' => 'Enter content here'), array('title' => __('List Title 2', 'avia_framework'), 'icon' => '25', 'content' => 'Enter content here'), array('title' => __('List Title 3', 'avia_framework'), 'icon' => '64', 'content' => 'Enter content here')), 'subelements' => array(array("name" => __("List Item Title", 'avia_framework'), "desc" => __("Enter the list item title here (Better keep it short)", 'avia_framework'), "id" => "title", "std" => "List Title", "type" => "input"), array("name" => __("Title 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" => __("Apply link to icon", 'avia_framework'), "desc" => __("Do you want to apply the link to the icon?", 'avia_framework'), "id" => "linkelement", "required" => array('link', 'not', ''), "type" => "select", "std" => "", "subtype" => array(__('No, apply link to the title', 'avia_framework') => '', __('Yes, apply link to icon and title', 'avia_framework') => 'both', __('Yes, apply link to icon only', 'avia_framework') => 'only_icon')), array("name" => __("List Item Icon", 'avia_framework'), "desc" => __("Select an icon for your list item below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => ""), array("name" => __("List Item Content", 'avia_framework'), "desc" => __("Enter some content here", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("List Content goes here", 'avia_framework')))), array("name" => __("Icon Position", 'avia_framework'), "desc" => __("Set the position of the icons", 'avia_framework'), "id" => "position", "type" => "select", "std" => "left", "subtype" => array(__('Left', 'avia_framework') => 'left', __('Right', 'avia_framework') => 'right')), 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 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 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("name" => __("Icon Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color. Leave empty to use the default", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "", "container_class" => 'av_third av_third_first', "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "", "container_class" => 'av_third', "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Border Color", 'avia_framework'), "desc" => __("Select a custom border color. Leave empty to use the default", 'avia_framework'), "id" => "custom_border", "type" => "colorpicker", "std" => "", "container_class" => 'av_third', "required" => array('color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
Beispiel #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" => __("IconBox Icon", 'avia_framework'), "desc" => __("Select an IconBox Icon below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => ""), array("name" => __("Icon Position", 'avia_framework'), "desc" => __("Should the icon be positioned at the left or at the top?", 'avia_framework'), "id" => "position", "type" => "select", "std" => "left", "subtype" => array(__('Left', 'avia_framework') => 'left', __('Top', 'avia_framework') => 'top')), array("name" => __("Title", 'avia_framework'), "desc" => __("Add an IconBox title here", 'avia_framework'), "id" => "title", "type" => "input", "std" => __("IconBox Title", 'avia_framework')), array("name" => __("Title 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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Apply link to icon", 'avia_framework'), "desc" => __("Do you want to apply the link to the icon?", 'avia_framework'), "id" => "linkelement", "required" => array('link', 'not', ''), "type" => "select", "std" => "", "subtype" => array(__('No, apply link to the title', 'avia_framework') => '', __('Yes, apply link to icon and title', 'avia_framework') => 'both', __('Yes, apply link to icon only', 'avia_framework') => 'only_icon')), array("name" => __("Content", 'avia_framework'), "desc" => __("Add some content for this IconBox", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("Click here to add your own text", "avia_framework")));
 }
 /**
  * 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')));
 }
Beispiel #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" => __("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')));
 }
Beispiel #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("name" => __("Add/Edit List items", 'avia_framework'), "desc" => __("Here you can add, remove and edit the items of your item list.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit List Item", 'avia_framework'), "std" => array(array('title' => __('List Title 1', 'avia_framework'), 'icon' => '43', 'content' => 'Enter content here'), array('title' => __('List Title 2', 'avia_framework'), 'icon' => '25', 'content' => 'Enter content here'), array('title' => __('List Title 3', 'avia_framework'), 'icon' => '64', 'content' => 'Enter content here')), 'subelements' => array(array("name" => __("List Item Title", 'avia_framework'), "desc" => __("Enter the list item title here (Better keep it short)", 'avia_framework'), "id" => "title", "std" => "List Title", "type" => "input"), array("name" => __("Title 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" => __("Apply link to icon", 'avia_framework'), "desc" => __("Do you want to apply the link to the icon?", 'avia_framework'), "id" => "linkelement", "required" => array('link', 'not', ''), "type" => "select", "std" => "", "subtype" => array(__('No, apply link to the title', 'avia_framework') => '', __('Yes, apply link to icon and title', 'avia_framework') => 'both', __('Yes, apply link to icon only', 'avia_framework') => 'only_icon')), array("name" => __("List Item Icon", 'avia_framework'), "desc" => __("Select an icon for your list item below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => ""), array("name" => __("List Item Content", 'avia_framework'), "desc" => __("Enter some content here", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("List Content goes here", 'avia_framework')))), array("name" => __("Icon Position", 'avia_framework'), "desc" => __("Set the position of the icons", 'avia_framework'), "id" => "position", "type" => "select", "std" => "left", "subtype" => array(__('Left', 'avia_framework') => 'left', __('Right', 'avia_framework') => 'right')));
 }
Beispiel #14
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" => __("Button Label", 'avia_framework'), "desc" => __("This is the text that appears on your button.", 'avia_framework'), "id" => "label", "type" => "input", "std" => __("Click me", 'avia_framework')), array("name" => __("Button Link?", 'avia_framework'), "desc" => __("Where should your button link to?", 'avia_framework'), "id" => "link", "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" => __("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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Button Size", 'avia_framework'), "desc" => __("Choose the size of your button here", 'avia_framework'), "id" => "size", "type" => "select", "std" => "small", "subtype" => array(__('Small', 'avia_framework') => 'small', __('Medium', 'avia_framework') => 'medium', __('Large', 'avia_framework') => 'large', __('X Large', 'avia_framework') => 'x-large')), array("name" => __("Button Position", 'avia_framework'), "desc" => __("Choose the alignment of your button here", 'avia_framework'), "id" => "position", "type" => "select", "std" => "center", "subtype" => array(__('Align Left', 'avia_framework') => 'left', __('Align Center', 'avia_framework') => 'center', __('Align Right', 'avia_framework') => 'right')), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Should an icon be displayed at the left side of the button", 'avia_framework'), "id" => "icon_select", "type" => "select", "std" => "yes", "subtype" => array(__('No Icon', 'avia_framework') => 'no', __('Yes, display Icon to the left', 'avia_framework') => 'yes', __('Yes, display Icon to the right', 'avia_framework') => 'yes-right-icon')), array("name" => __("Icon Visibility", 'avia_framework'), "desc" => __("Check to only display icon on hover", 'avia_framework'), "id" => "icon_hover", "type" => "checkbox", "std" => "", "required" => array('icon_select', 'not_empty_and', 'no')), array("name" => __("Button Icon", 'avia_framework'), "desc" => __("Select an icon for your Button below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => "", "required" => array('icon_select', 'not_empty_and', 'no')), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Button Color", 'avia_framework'), "desc" => __("Choose a color for your button here", 'avia_framework'), "id" => "color", "type" => "select", "std" => "theme-color", "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', __('Custom Color', 'avia_framework') => 'custom'))), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color for your Button here", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "#444444", "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color for your Button here", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "#ffffff", "required" => array('color', 'equals', 'custom')), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
Beispiel #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" => __("Add/Edit Slides", 'avia_framework'), "desc" => __("Here you can add, remove and edit the slides you want to display.", 'avia_framework'), "type" => "modal_group", "id" => "content", "modal_title" => __("Edit Form Element", 'avia_framework'), "std" => array(array('title' => __('Slide 1', 'avia_framework'), 'tags' => ''), array('title' => __('Slide 2', 'avia_framework'), 'tags' => '')), 'subelements' => array(array("name" => __("Slide Title", 'avia_framework'), "desc" => __("Enter the slide title here (Better keep it short)", 'avia_framework'), "id" => "title", "std" => "Slide Title", "type" => "input"), array("name" => __("Title Link?", 'avia_framework'), "desc" => __("Where should your title link to?", '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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Slide Content", 'avia_framework'), "desc" => __("Enter some content here", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => "Slide Content goes here"))), array("name" => __("Heading", 'avia_framework'), "desc" => __("Do you want to display a heading above the images?", 'avia_framework'), "id" => "heading", "type" => "input", "std" => ""), array("name" => __("Columns", 'avia_framework'), "desc" => __("How many Slide columns should be displayed?", 'avia_framework'), "id" => "columns", "type" => "select", "std" => "1", "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', __('6 Columns', 'avia_framework') => '6')), array("name" => __("Transition", 'avia_framework'), "desc" => __("Choose the transition for your content slider.", 'avia_framework'), "id" => "animation", "type" => "select", "std" => "slide", "subtype" => array(__('Slide', 'avia_framework') => 'slide', __('Fade', 'avia_framework') => 'fade')), array("name" => __("Slider controls", 'avia_framework'), "desc" => __("Do you want to display slider control buttons?", 'avia_framework'), "id" => "navigation", "type" => "select", "std" => "arrows", "subtype" => array(__('Yes, display arrow control buttons', 'avia_framework') => 'arrows', __('Yes, display dot control buttons', 'avia_framework') => 'dots', __('No, do not display any control buttons', 'avia_framework') => 'no')), array("name" => __("Autorotation active?", 'avia_framework'), "desc" => __("Check if the content slider should rotate by default", 'avia_framework'), "id" => "autoplay", "type" => "select", "std" => "false", "subtype" => array(__('Yes', 'avia_framework') => 'true', __('No', 'avia_framework') => 'false')), array("name" => __("Slider autorotation duration", 'avia_framework'), "desc" => __("Images will be shown the selected amount of seconds.", 'avia_framework'), "id" => "interval", "type" => "select", "std" => "5", "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')));
 }
Beispiel #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("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));
 }
 /**
  * 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" => __("Font Icon", 'avia_framework'), "desc" => __("Select an Icon below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => ""), array("name" => __("Icon Style", 'avia_framework'), "desc" => __("Here you can set the  style of the icon. Either display it inline as part of some text or let it stand alone with border and optional caption", 'avia_framework'), "id" => "style", "type" => "select", "std" => "left", "subtype" => array(__('Default inline style', 'avia_framework') => '', __('Standalone Icon with border and optional caption', 'avia_framework') => 'border')), array("name" => __("Icon Caption", 'avia_framework'), "desc" => __("A small caption below the icon", 'avia_framework'), "id" => "caption", "type" => "input", "std" => "", "required" => array('style', 'not', '')), array("name" => __("Title Link?", 'avia_framework'), "desc" => __("Where should your title link to?", '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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Icon Size", 'avia_framework'), "desc" => __("Enter the font size in px, em or &percnt;", 'avia_framework'), "id" => "size", "type" => "input", "std" => "40px"), array("name" => __("Icon Position", 'avia_framework'), "desc" => __("Choose the alignment of your icon here", 'avia_framework'), "id" => "position", "type" => "select", "std" => "left", "subtype" => array(__('Align Left', 'avia_framework') => 'left', __('Align Center', 'avia_framework') => 'center', __('Align Right', 'avia_framework') => 'right')), array("name" => __("Optional Tooltip", 'avia_framework'), "desc" => __("Add a tooltip for this Icon. The tooltip will appear on mouse over", 'avia_framework'), "id" => "content", "type" => "textarea", "std" => ""), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Icon Color", 'avia_framework'), "desc" => __("Here you can set the  color of the icon. Enter no value if you want to use the standard font color.", 'avia_framework'), "id" => "color", "type" => "colorpicker"), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true));
 }
Beispiel #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()
 {
     $this->elements = array(array("name" => __("Choose Image", 'avia_framework'), "desc" => __("Either upload a new, or choose an existing image from your media library. Once an Image has been selected you can add your Hotspots", 'avia_framework'), "id" => "src", "type" => "image", "container_class" => "av-hotspot-container", "title" => __("Insert Image", 'avia_framework'), "button" => __("Insert", 'avia_framework'), "std" => AviaBuilder::$path['imagesURL'] . "placeholder-full.jpg"), array("name" => __("Add/Edit your hotspots.", '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 Hotspot Tooltip", 'avia_framework'), "add_label" => __("Add Hotspot", 'avia_framework'), "std" => array(), "special_modal" => array("type" => "hotspot", "image_container_class" => "av-hotspot-container"), 'subelements' => array(array("type" => "tab_container", 'nodescription' => true), array("type" => "tab", "name" => __("Tooltip", 'avia_framework'), 'nodescription' => true), array("name" => __("Tooltip Position", 'avia_framework'), "desc" => __("Select where to display the tooltip in relation to the hotspot", 'avia_framework'), "id" => "tooltip_pos", "type" => "select", "std" => "above", "container_class" => 'av_half av_half_first', "subtype" => array('Above' => array(__('Top Left', 'avia_framework') => 'av-tt-pos-above av-tt-align-left', __('Top Right', 'avia_framework') => 'av-tt-pos-above av-tt-align-right', __('Top Centered', 'avia_framework') => 'av-tt-pos-above av-tt-align-centered'), 'Below' => array(__('Bottom Left', 'avia_framework') => 'av-tt-pos-below av-tt-align-left', __('Bottom Right', 'avia_framework') => 'av-tt-pos-below av-tt-align-right', __('Bottom Centered', 'avia_framework') => 'av-tt-pos-below av-tt-align-centered'), 'Left' => array(__('Left Top', 'avia_framework') => 'av-tt-pos-left av-tt-align-top', __('Left Bottom', 'avia_framework') => 'av-tt-pos-left av-tt-align-bottom', __('Left Centered', 'avia_framework') => 'av-tt-pos-left av-tt-align-centered'), 'Right' => array(__('Right Top', 'avia_framework') => 'av-tt-pos-right av-tt-align-top', __('Right Bottom', 'avia_framework') => 'av-tt-pos-right av-tt-align-bottom', __('Right Centered', 'avia_framework') => 'av-tt-pos-right av-tt-align-centered'))), array("name" => __("Tooltip Width", 'avia_framework'), "desc" => __("Select the width of the tooltip. Height is based on the content", 'avia_framework'), "id" => "tooltip_width", "type" => "select", "std" => "av-tt-default-width", "container_class" => 'av_half', "subtype" => array(__('Default', 'avia_framework') => 'av-tt-default-width', __('Large', 'avia_framework') => 'av-tt-large-width', __('Extra Large', 'avia_framework') => 'av-tt-xlarge-width')), array("name" => __("Tooltip", 'avia_framework'), "desc" => __("Enter a short descriptive text that appears if the user places his mouse above the hotspot", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => ""), array("name" => __("Tooltip Style", 'avia_framework'), "desc" => __("Chose the style of your tooltip", 'avia_framework'), "id" => "tooltip_style", "type" => "select", "std" => "main_color", "subtype" => array(__('Default', 'avia_framework') => 'main_color', __('Default with drop shadow', 'avia_framework') => 'main_color av-tooltip-shadow', __('Transparent Dark', 'avia_framework') => 'transparent_dark')), array("name" => __("Hotspot Link?", 'avia_framework'), "desc" => __("Where should your hotspot link to?", 'avia_framework'), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "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 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", "required" => array('link', 'not', ''), "type" => "select", "std" => "", "subtype" => AviaHtmlHelper::linking_options()), array("type" => "close_div", 'nodescription' => true), array("type" => "tab", "name" => __("Hotspot Colors", 'avia_framework'), 'nodescription' => true), array("name" => __("Hotspot Color", 'avia_framework'), "desc" => __("Set the colors of your hotspot", 'avia_framework'), "id" => "hotspot_color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Custom', 'avia_framework') => 'custom')), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color here", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "#ffffff", "required" => array('hotspot_color', 'equals', 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color here", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "#888888", "required" => array('hotspot_color', 'equals', 'custom')), array("name" => __("Custom Pulse Color", 'avia_framework'), "desc" => __("Select a custom pulse color here", 'avia_framework'), "id" => "custom_pulse", "type" => "colorpicker", "std" => "#ffffff", "required" => array('hotspot_color', 'equals', 'custom')), array("id" => "hotspot_pos", "std" => "", "type" => "hidden"), array("type" => "close_div", 'nodescription' => true), array("type" => "close_div", 'nodescription' => true))), 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', __('Simple Fade in', 'avia_framework') => 'fade-in', __('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" => __("Hotspot Layout", 'avia_framework'), "desc" => __("Select the hotspot layout", 'avia_framework'), "id" => "hotspot_layout", "type" => "select", "std" => "numbered", "subtype" => array(__('Numbered Hotspot', 'avia_framework') => 'numbered', __('Blank Hotspot', 'avia_framework') => 'blank')), array("name" => __("Show Tooltips", 'avia_framework'), "desc" => __("Select when to display the tooltips", 'avia_framework'), "id" => "hotspot_tooltip_display", "type" => "select", "std" => "", "subtype" => array(__('On Mouse Hover', 'avia_framework') => '', __('Always', 'avia_framework') => 'av-permanent-tooltip')), array("name" => __("Hotspot on mobile devices", 'avia_framework'), "desc" => __("Check if you always want to show the tooltips on mobile phones below the image. Recommended if your tooltips contain a lot of text", 'avia_framework'), "id" => "hotspot_mobile", "std" => "true", "type" => "checkbox"));
 }
Beispiel #19
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" => __("IconBox Styling", 'avia_framework'), "desc" => __("Defines the styling of the iconbox and the position of the icon", 'avia_framework'), "id" => "position", "type" => "select", "std" => "left", "subtype" => array(__('Display small icon at the left side of the title', 'avia_framework') => 'left', __('Display a large icon at the left side of the whole content block', 'avia_framework') => 'left_content', __('Display a large icon at the right side of the whole content block', 'avia_framework') => 'right_content', __('Display a large icon above the title', 'avia_framework') => 'top')), array("name" => __("Content block", 'avia_framework'), "desc" => __("Select if the iconbox should receive a border around the content", 'avia_framework'), "id" => "boxed", "type" => "select", "std" => "", "required" => array('position', 'equals', 'top'), "subtype" => array(__('Boxed content block with borders', 'avia_framework') => '', __('No box arround content', 'avia_framework') => 'av-no-box')), array("name" => __("IconBox Icon", 'avia_framework'), "desc" => __("Select an IconBox Icon below", 'avia_framework'), "id" => "icon", "type" => "iconfont", "std" => "1"), array("name" => __("Title", 'avia_framework'), "desc" => __("Add an IconBox title here", 'avia_framework'), "id" => "title", "type" => "input", "std" => __("IconBox Title", 'avia_framework')), array("name" => __("Title 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" => "", "subtype" => AviaHtmlHelper::linking_options()), array("name" => __("Apply link to icon", 'avia_framework'), "desc" => __("Do you want to apply the link to the icon?", 'avia_framework'), "id" => "linkelement", "required" => array('link', 'not', ''), "type" => "select", "std" => "", "subtype" => array(__('No, apply link to the title', 'avia_framework') => '', __('Yes, apply link to icon and title', 'avia_framework') => 'both', __('Yes, apply link to icon only', 'avia_framework') => 'only_icon')), array("name" => __("Content", 'avia_framework'), "desc" => __("Add some content for this IconBox", 'avia_framework'), "id" => "content", "type" => "tiny_mce", "std" => __("Click here to add your own text", "avia_framework")), 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 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 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("name" => __("Icon Colors", 'avia_framework'), "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'), "id" => "color", "type" => "select", "std" => "", "subtype" => array(__('Default', 'avia_framework') => '', __('Define Custom Colors', 'avia_framework') => 'custom')), array("name" => __("Custom Background Color", 'avia_framework'), "desc" => __("Select a custom background color. Leave empty to use the default", 'avia_framework'), "id" => "custom_bg", "type" => "colorpicker", "std" => "", "container_class" => 'av_third av_third_first', "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Font Color", 'avia_framework'), "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'), "id" => "custom_font", "type" => "colorpicker", "std" => "", "container_class" => 'av_third', "required" => array('color', 'equals', 'custom')), array("name" => __("Custom Border Color", 'avia_framework'), "desc" => __("Select a custom border color. Leave empty to use the default", 'avia_framework'), "id" => "custom_border", "type" => "colorpicker", "std" => "", "container_class" => 'av_third', "required" => array('color', 'equals', 'custom')), 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("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("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" => __("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("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" => __("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('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 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')));
        }
Beispiel #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" => __("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', __('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') => '', __('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', ''), "subtype" => AviaHtmlHelper::linking_options()));
 }