Exemplo n.º 1
0
 function popup_elements()
 {
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $this->config['subElements'] = array(array("name" => __('Alert Type', 'fusion-core'), "desc" => __('Select the type of alert message. Choose custom for advanced color options below.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "general", "allowedValues" => array('general' => __('General', 'fusion-core'), 'error' => __('Error', 'fusion-core'), 'success' => __('Success', 'fusion-core'), 'notice' => __('Notice', 'fusion-core'), 'custom' => __('Custom', 'fusion-core'))), array("name" => __('Accent Color', 'fusion-core'), "desc" => __('Custom setting only. Set the border, text and icon color for custom alert boxes.', 'fusion-core'), "id" => "fusion_accentcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Custom setting only. Set the background color for custom alert boxes.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Width', 'fusion-core'), "desc" => __('Custom setting. For custom alert boxes. In pixels (px), ex: 1px.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Select Custom Icon', 'fusion-core'), "desc" => __('Custom setting only. Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Box Shadow', 'fusion-core'), "desc" => __('Display a box shadow below the alert box.', 'fusion-core'), "id" => "fusion_boxshadow", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Alert Content', 'fusion-core'), "desc" => __('Insert the alert\'s content', 'fusion-core'), "id" => "fusion_content_wp", "type" => ElementTypeEnum::HTML_EDITOR, "value" => __('Your Content Goes Here', 'fusion-core')), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "left", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation should start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 2
0
    function popup_elements()
    {
        $zoom_levels = FusionHelper::fusion_create_dropdown_data(1, 25);
        $choices = FusionHelper::get_shortcode_choices();
        $this->config['subElements'] = array(array("name" => __('Map Type', 'fusion-core'), "desc" => __('Select the type of google map to display', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "roadmap", "allowedValues" => array('roadmap' => __('Roadmap', 'fusion-core'), 'satellite' => __('Satellite', 'fusion-core'), 'hybrid' => __('Hybrid', 'fusion-core'), 'terrain' => __('Terrain', 'fusion-core'))), array("name" => __('Map Width', 'fusion-core'), "desc" => __('Map width in percentage or pixels. ex: 100%, or 940px', 'fusion-core'), "id" => "fusion_width", "type" => ElementTypeEnum::INPUT, "value" => "100%"), array("name" => __('Map Height', 'fusion-core'), "desc" => __('Map height in pixels. ex: 300px', 'fusion-core'), "id" => "fusion_height", "type" => ElementTypeEnum::INPUT, "value" => "300px"), array("name" => __('Zoom Level', 'fusion-core'), "desc" => __('Higher number will be more zoomed in.', 'fusion-core'), "id" => "fusion_zoom", "type" => ElementTypeEnum::SELECT, "value" => "14", "allowedValues" => $zoom_levels), array("name" => __('Scrollwheel on Map', 'fusion-core'), "desc" => __('Enable zooming using a mouse\'s scroll wheel', 'fusion-core'), "id" => "fusion_scrollwheel", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Scale Control on Map', 'fusion-core'), "desc" => __('Display the map scale', 'fusion-core'), "id" => "fusion_scale", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Pan Control on Map', 'fusion-core'), "desc" => __('Displays pan control button', 'fusion-core'), "id" => "fusion_zoom_pancontrol", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Address Pin Animation', 'fusion-core'), "desc" => __('Choose to animate the address pins when the map first loads.', 'fusion-core'), "id" => "fusion_animation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show tooltip by default', 'fusion-core'), "desc" => __('Display or hide tooltip by default when the map first loads.', 'fusion-core'), "id" => "fusion_popup", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Select the Map Styling Switch', 'fusion-core'), "desc" => __('Choose default styling for classic google map styles. Choose theme styling for our custom style. Choose custom styling to make your own with the advanced options below.', 'fusion-core'), "id" => "fusion_mapstyle", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default Styling', 'fusion-core'), 'theme' => __('Theme Styling', 'fusion-core'), 'custom' => __('Custom Styling', 'fusion-core'))), array("name" => __('Map Overlay Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick an overlaying color for the map. Works best with "roadmap" type.', 'fusion-core'), "id" => "fusion_overlaycolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Infobox Styling', 'fusion-core'), "desc" => __('Custom styling setting only. Choose between default or custom info box.', 'fusion-core'), "id" => "fusion_infobox", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default Infobox', 'fusion-core'), 'custom' => __('Custom Infobox', 'fusion-core'))), array("name" => __('Infobox Content', 'fusion-core'), "desc" => __('Custom styling setting only. Type in custom info box content to replace address string. For multiple addresses, separate info box contents by using the | symbol. ex: InfoBox 1|InfoBox 2|InfoBox 3', 'fusion-core'), "id" => "fusion_infoboxcontent", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Info Box Text Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick a color for the info box text.', 'fusion-core'), "id" => "fusion_infoboxtextcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Info Box Background Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick a color for the info box background.', 'fusion-core'), "id" => "fusion_infoboxbackgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Custom Marker Icon', 'fusion-core'), "desc" => __('Custom styling setting only. Use full image urls for custom marker icons or input "theme" for our custom marker. For multiple addresses, separate icons by using the | symbol or use one for all. ex: Icon 1|Icon 2|Icon 3', 'fusion-core'), "id" => "fusion_icon", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Address', 'fusion-core'), "desc" => __('Add address to the location which will show up on map. For multiple addresses, separate addresses by using the | symbol. 
ex: Address 1|Address 2|Address 3', 'fusion-core'), "id" => "fusion_content", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
    }
 function popup_elements()
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $woo_commerce_categories = $this->get_woo_commerce_categories();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Picture Size', 'fusion-core'), "desc" => __('fixed = width and height will be fixed<br>auto = width and height will adjust to the image.', 'fusion-core'), "id" => "picture_size", "type" => ElementTypeEnum::SELECT, "value" => "fixed", "allowedValues" => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $woo_commerce_categories), array("name" => __('Number of Products', 'fusion-core'), "desc" => __('Select the number of products to display', 'fusion-core'), "id" => "number_posts", "type" => ElementTypeEnum::INPUT, "value" => "5"), array("name" => __('Carousel Layout', 'fusion-core'), "desc" => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), "id" => "carousel_layout", "type" => ElementTypeEnum::SELECT, "value" => "title_on_rollover", "allowedValues" => array('title_on_rollover' => __('Title on rollover', 'fusion-core'), 'title_below_image' => __('Title below image', 'fusion-core'))), array("name" => __('Carousel Autoplay', 'fusion-core'), "desc" => __('Choose to autoplay the carousel.', 'fusion-core'), "id" => "autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Maximum Columns', 'fusion-core'), "desc" => __('Select the number of max columns to display.', 'fusion-core'), "id" => "columns", "type" => ElementTypeEnum::SELECT, "value" => "5", "allowedValues" => $no_of_columns), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __("Insert the amount of spacing between items without 'px'. ex: 13.", 'fusion-core'), "id" => "column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "13"), array("name" => __('Carousel Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", 'fusion-core'), "id" => "fusion_scroll_items", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Carousel Show Navigation', 'fusion-core'), "desc" => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), "id" => "navigation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Carousel Mouse Scroll', 'fusion-core'), "desc" => __('Choose to enable mouse drag control on the carousel.', 'fusion-core'), "id" => "mouse_scroll", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Show Categories', 'fusion-core'), "desc" => __('Choose to show or hide the categories', 'fusion-core'), "id" => "show_cats", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Show Price', 'fusion-core'), "desc" => __('Choose to show or hide the price', 'fusion-core'), "id" => "show_price", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Show Buttons', 'fusion-core'), "desc" => __('Choose to show or hide the icon buttons', 'fusion-core'), "id" => "show_buttons", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements($am_elements)
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $border_size = FusionHelper::fusion_create_dropdown_data(0, 10);
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $choices = FusionHelper::get_shortcode_choices();
     $am_array = array();
     $am_array[] = array(array("name" => __('Flip Box Frontside Heading', 'fusion-core'), "desc" => __('Add a heading for the frontside of the flip box.', 'fusion-core'), "id" => "fusion_titlefront[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Backside Heading', 'fusion-core'), "desc" => __('Add a heading for the backside of the flip box.', 'fusion-core'), "id" => "fusion_titleback[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Frontside Content', 'fusion-core'), "desc" => __('Add content for the frontside of the flip box.', 'fusion-core'), "id" => "fusion_text_front[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Backside Content', 'fusion-core'), "desc" => __('Add content for the backside of the flip box.', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array("Your Content Goes Here")), array("name" => __('Background Color Frontside', 'fusion-core'), "desc" => __('Controls the background color of the frontside. Leave blank for theme option selection. NOTE: flip boxes must have background colors to work correctly in all browsers.', 'fusion-core'), "id" => "fusion_backgroundcolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Heading Color Frontside', 'fusion-core'), "desc" => __('Controls the heading color of the frontside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_titlecolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Text Color Frontside', 'fusion-core'), "desc" => __('Controls the text color of the frontside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_textcolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Background Color Backside', 'fusion-core'), "desc" => __('Controls the background color of the backside. Leave blank for theme option selection. NOTE: flip boxes must have background colors to work correctly in all browsers.', 'fusion-core'), "id" => "fusion_backgroundcolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Heading Color Backside', 'fusion-core'), "desc" => __('Controls the heading color of the backside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_titlecolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Text Color Backside', 'fusion-core'), "desc" => __('Controls the text color of the backside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_textcolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize[0]", "type" => ElementTypeEnum::INPUT, "value" => array("1px")), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Border Radius', 'fusion-core'), "desc" => __('Controls the flip box border radius. In pixels (px), ex: 1px, or "round". Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_borderradius[0]", "type" => ElementTypeEnum::INPUT, "value" => array("4px")), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "fusion_icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(""), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Controls the color of the icon. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Icon Circle', 'fusion-core'), "desc" => __('Choose to use a circled background on the icon.', 'fusion-core'), "id" => "fusion_circle[0]", "type" => ElementTypeEnum::SELECT, "value" => array("yes"), "allowedValues" => $choices), array("name" => __('Icon Circle Background Color', 'fusion-core'), "desc" => __('Controls the color of the circle. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Icon Circle Border Color', 'fusion-core'), "desc" => __('Controls the color of the circle border. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_rotate[0]", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_iconspin[0]", "type" => ElementTypeEnum::SELECT, "value" => array("no"), "allowedValues" => $reverse_choices), array("name" => __('Icon Image', 'fusion-core'), "desc" => __('To upload your own icon image, deselect the icon above and then upload your icon image.', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array("")), array("name" => __('Icon Image Width', 'fusion-core'), "desc" => __('If using an icon image, specify the image width in pixels but do not add px, ex: 35.', 'fusion-core'), "id" => "fusion_image_width[0]", "type" => ElementTypeEnum::INPUT, "value" => array("35")), array("name" => __('Icon Image Height', 'fusion-core'), "desc" => __('If using an icon image, specify the image height in pixels but do not add px, ex: 35.', 'fusion-core'), "id" => "fusion_image_height[0]", "type" => ElementTypeEnum::INPUT, "value" => array("35")), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode.', 'fusion-core'), "id" => "fusion_animation_type[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation.', 'fusion-core'), "id" => "fusion_animation_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1).', 'fusion-core'), "id" => "fusion_animation_speed[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $animation_speed));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "1", "allowedValues" => $no_of_columns), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Flip Box', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
 }
 function popup_elements()
 {
     $wp_categories = FusionHelper::get_wp_categories_list();
     $cat_element = array('' => 'All');
     $wp_categories = $cat_element + $wp_categories;
     $this->config['subElements'] = array(array("name" => __('Layout', 'fusion-core'), "desc" => __('Choose a layout style for Post Slider.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "posts", "allowedValues" => array('posts' => __('Posts with Title', 'fusion-core'), 'posts-with-excerpt' => __('Posts with Title and Excerpt', 'fusion-core'), 'attachments' => __('Attachment Layout, Only Images Attached to Post/Page', 'fusion-core'))), array("name" => __('Excerpt Number of Words', 'fusion-core'), "desc" => __('Insert the number of words you want to show in the excerpt.', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::INPUT, "value" => "35"), array("name" => __('Category', 'fusion-core'), "desc" => __('Select a category of posts to display.', 'fusion-core'), "id" => "fusion_category", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $wp_categories), array("name" => __('Number of Slides', 'fusion-core'), "desc" => __('Select the number of slides to display.', 'fusion-core'), "id" => "fusion_limit", "type" => ElementTypeEnum::INPUT, "value" => "3"), array("name" => __('Lightbox on Click', 'fusion-core'), "desc" => __('Only works on attachment layout.', 'fusion-core'), "id" => "fusion_lightbox", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Attach Images to Post/Page Gallery', 'fusion-core'), "desc" => __('Only works for attachments layout.', 'fusion-core'), "id" => "fusion_gallery", "type" => ElementTypeEnum::GALLERY, "value" => " "), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $choices = FusionHelper::get_shortcode_choices();
     $cats = $this->get_event_cats();
     $this->config['subElements'] = array(array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $cats), array("name" => __('Number of Events', 'fusion-core'), "desc" => __('Select the number of events to display', 'fusion-core'), "id" => "number_posts", "type" => ElementTypeEnum::INPUT, "value" => "4"), array("name" => __('Maximum Columns', 'fusion-core'), "desc" => __('Select the number of max columns to display.', 'fusion-core'), "id" => "columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Picture Size', 'fusion-core'), "desc" => __('cover = image will scale to cover the container<br />auto = width and height will adjust to the image.', 'fusion-core'), "id" => "picture_size", "type" => ElementTypeEnum::SELECT, "value" => "cover", "allowedValues" => array('cover' => __('Cover', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 7
0
 function popup_elements($am_elements)
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $animation_speed_parent = FusionHelper::get_animation_speed_data(true);
     $animation_direction_parent = FusionHelper::get_animation_direction_data(true);
     $animation_type_parent = FusionHelper::get_animation_type_data(true);
     $am_array = array();
     $am_array[] = array(array("name" => __('Title', 'fusion-core'), "desc" => __('The box title.', 'fusion-core'), "id" => "fusion_title[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Content Box Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array(), "settings_lvl" => "child"), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array()), array("name" => __('Icon Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array()), array("name" => __('Icon Background Inner Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Inner Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolorsize[0]", "type" => ElementTypeEnum::INPUT, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Outer Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordercolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Outer Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordersize[0]", "type" => ElementTypeEnum::INPUT, "settings_lvl" => "child", "value" => array('')), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_iconrotate[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_iconspin[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $reverse_choices), array("name" => __('Icon Image', 'fusion-core'), "desc" => __('To upload your own icon image, deselect the icon above and then upload your icon image', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array()), array("name" => __('Icon Image Width', 'fusion-core'), "desc" => __('If using an icon image, specify the image width in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_width[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Icon Image Height', 'fusion-core'), "desc" => __('If using an icon image, specify the image height in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_height[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Link URL', 'fusion-core'), "desc" => __('Add the link\'s url ex: http://example.com', 'fusion-core'), "id" => "fusion_link[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Text', 'fusion-core'), "desc" => __('Insert the text to display as the link', 'fusion-core'), "id" => "fusion_linktext[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Content Box Content', 'fusion-core'), "desc" => __('Add content for content box', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array()), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_type_parent), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_direction_parent), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_speed_parent));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Parent / Child Settings', 'fusion-core'), "desc" => __('"Parent Level" settings will control all box styles together. "Child Level" settings will control each box style individually.', 'fusion-core'), "id" => "fusion_settings_lvl", "type" => ElementTypeEnum::SELECT, "value" => "child", "allowedValues" => array('parent' => 'Parent Level Settings', 'child' => 'Child Level Settings')), array("name" => __('Content Box Layout', 'fusion-core'), "desc" => __('Select the layout for the content box', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "icon-with-title", "allowedValues" => array('icon-with-title' => __('Classic Icon With Title', 'fusion-core'), 'icon-on-top' => __('Classic Icon On Top', 'fusion-core'), 'icon-on-side' => __('Classic Icon On Side', 'fusion-core'), 'icon-boxed' => __('Classic Icon Boxed', 'fusion-core'), 'clean-vertical' => __('Clean Layout Vertical', 'fusion-core'), 'clean-horizontal' => __('Clean Layout Horizontal', 'fusion-core'), 'timeline-vertical' => __('Timeline Vertical', 'fusion-core'), 'timeline-horizontal' => __('Timeline Horizontal', 'fusion-core'))), array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Content Alignment', 'fusion-core'), "desc" => __('Works with "Classic Icon With Title" and "Classic Icon On Side" layout options.', 'fusion-core'), "id" => "fusion_circle_align", "type" => ElementTypeEnum::SELECT, "value" => array("left"), "allowedValues" => array('left' => 'Left', 'right' => 'Right')), array("name" => __('Title Size', 'fusion-core'), "desc" => __('Controls the size of the title. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_title_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Title Font Color', 'fusion-core'), "desc" => __('Controls the color of the title font. Leave blank for theme option selection. ex: #000', 'fusion-core'), "id" => "fusion_title_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Body Font Color', 'fusion-core'), "desc" => __('Controls the color of the body font. Leave blank for theme option selection. ex: #000', 'fusion-core'), "id" => "fusion_body_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Content Box Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background', 'fusion-core'), "desc" => __('Choose to show a background behind the icon. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_icon_circle", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => array('' => 'Default', 'yes' => 'Yes', 'no' => 'No')), array("name" => __('Icon Background Radius', 'fusion-core'), "desc" => __('Choose the border radius of the icon background. Leave blank for theme option selection. In pixels (px), ex: 1px, or "round".', 'fusion-core'), "id" => "fusion_icon_circle_radius", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Inner Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Inner Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolorsize", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Background Outer Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Outer Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordersize", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Size', 'fusion-core'), "desc" => __('Controls the size of the icon.  Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_icon_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Hover Animation Type', 'fusion-core'), "desc" => __('Select the animation type for icon on hover. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_icon_hover_type", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => __('Default', 'Avada'), 'none' => __('None', 'Avada'), 'fade' => __('Fade', 'Avada'), 'slide' => __('Slide', 'Avada'), 'pulsate' => __('Pulsate', 'Avada'))), array("name" => __('Hover Animation Color', 'fusion-core'), "desc" => __('Select an accent color for the hover animation. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_hover_animation_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Link Type', 'fusion-core'), "desc" => __('Select the type of link that should show in the content box. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_link_type", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', 'text' => 'Text', 'button-bar' => 'Button Bar', 'button' => 'Button')), array("name" => __('Link Area', 'fusion-core'), "desc" => __('Select which area the link will be assigned to. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_link_area", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', 'link-icon' => 'Link+Icon', 'box' => 'Entire Content Box')), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', '_self' => '_self', '_blank' => '_blank')), array("name" => __('Animation Delay', 'fusion-core'), "desc" => __('Controls the delay of animation between each element in a set. In milliseconds, 1000 = 1 second.', 'fusion-core'), "id" => "animation_delay", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation should start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => array('left'), "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => array('0.1'), "allowedValues" => $animation_speed), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Content Box', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
 }
 function popup_elements()
 {
     $posts_per_page = array('fusion_-1' => 'All', 'fusion_' => 'Default');
     $blog_posts_per_page = FusionHelper::fusion_create_dropdown_data(1, 25, $posts_per_page);
     $wp_categories_list = FusionHelper::get_wp_categories_list();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Blog Layout', 'fusion-core'), "desc" => __('Select the layout for the blog shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "large", "allowedValues" => array('large' => __('Large', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large alternate' => __('Large Alternate', 'fusion-core'), 'medium alternate' => __('Medium Alternate', 'fusion-core'), 'grid' => __('Grid', 'fusion-core'), 'timeline' => __('Timeline', 'fusion-core'))), array("name" => __('Posts Per Page', 'fusion-core'), "desc" => __('Select number of posts per page.', 'fusion-core'), "id" => "fusion_posts_per_page", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $blog_posts_per_page), array("name" => __('Post Offset', 'fusion-core'), "desc" => __('The number of posts to skip. ex: 1.', 'fusion-core'), "id" => "fusion_offset", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all.', 'fusion-core'), "id" => "fusion_cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Exclude Categories', 'fusion-core'), "desc" => __('Select a category to exclude.', 'fusion-core'), "id" => "fusion_exclude_cats", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Show Title', 'fusion-core'), "desc" => __('Display the post title below the featured image.', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Link Title To Post', 'fusion-core'), "desc" => __('Choose if the title should be a link to the single post page.', 'fusion-core'), "id" => "fusion_title_link", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Thumbnail', 'fusion-core'), "desc" => __('Display the post featured image.', 'fusion-core'), "id" => "fusion_thumbnail", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Excerpt', 'fusion-core'), "desc" => __('Show excerpt or choose "no" for full content.', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Number of words/characters in Excerpt', 'fusion-core'), "desc" => __('Control the excerpt length based on words/character setting in Theme Options > Extra.', 'fusion-core'), "id" => "fusion_excerpt_words", "type" => ElementTypeEnum::INPUT, "value" => 35), array("name" => __('Show Meta Info', 'fusion-core'), "desc" => __('Choose to show all meta data.', 'fusion-core'), "id" => "fusion_meta_all", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Author Name', 'fusion-core'), "desc" => __('Choose to show the author.', 'fusion-core'), "id" => "fusion_meta_author", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Categories', 'fusion-core'), "desc" => __("Choose to show the categories. Grid and timeline layout generally don't display categories.", 'fusion-core'), "id" => "fusion_meta_categories", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Comment Count', 'fusion-core'), "desc" => __('Choose to show the comments.', 'fusion-core'), "id" => "fusion_meta_comments", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Date', 'fusion-core'), "desc" => __('Choose to show the date.', 'fusion-core'), "id" => "fusion_meta_date", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Read More Link', 'fusion-core'), "desc" => __('Choose to show the Read More link.', 'fusion-core'), "id" => "fusion_meta_link", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Tags', 'fusion-core'), "desc" => __("Choose to show the tags. Grid and timeline layout generally don't display tags.", 'fusion-core'), "id" => "fusion_meta_tags", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Pagination', 'fusion-core'), "desc" => __('Show numerical pagination boxes.', 'fusion-core'), "id" => "fusion_paging", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Pagination Type', 'fusion-core'), "desc" => __('Choose the type of pagination.', 'fusion-core'), "id" => "fusion_scrolling", "type" => ElementTypeEnum::SELECT, "value" => "pagination", "allowedValues" => array('pagination' => __('Pagination', 'fusion-core'), 'infinite' => __('Infinite Scrolling', 'fusion-core'), 'load_more_button' => __('Load More Button', 'fusion-core'))), array("name" => __('Grid Layout # of Columns', 'fusion-core'), "desc" => __('Select whether to display the grid layout in 2, 3, 4, 5 or 6 column.', 'fusion-core'), "id" => "fusion_blog_grid_columns", "type" => ElementTypeEnum::SELECT, "value" => "3", "allowedValues" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6')), array("name" => __('Grid Layout Column Spacing', 'fusion-core'), "desc" => __('Insert the amount of spacing between blog grid posts without "px".', 'fusion-core'), "id" => "fusion_blog_grid_column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "40"), array("name" => __('Strip HTML from Posts Content', 'fusion-core'), "desc" => __('Strip HTML from the post excerpt.', 'fusion-core'), "id" => "fusion_strip_html", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 9
0
 function popup_elements()
 {
     $this->config['layout_opt'] = true;
     $border_size = FusionHelper::fusion_create_dropdown_data(1, 10);
     $padding_data = FusionHelper::fusion_create_dropdown_data(1, 100);
     $parallax_speed = array('0.1' => '0.1', '0.2' => '0.2', '0.3' => '0.3', '0.4' => '0.4', '0.5' => '0.5', '0.6' => '0.6', '0.7' => '0.7', '0.8' => '0.8', '0.9' => '0.9', '1' => '1');
     $this->config['subElements'] = array(array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "background_color", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Image', 'fusion-core'), "desc" => __('Upload an image to display in the background', 'fusion-core'), "id" => "background_image", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::UPLOAD, "data" => array("replace" => "fusion-hidden-img"), "upid" => "1", "value" => ""), array("name" => __('Background Parallax', 'fusion-core'), "desc" => __('Choose how the background image scrolls and responds.', 'fusion-core'), "id" => "background_parallax", "type" => ElementTypeEnum::SELECT, "group" => __('Background', 'fusion-core'), "value" => "none", "allowedValues" => array('none' => __('No Parallax (no effects)', 'fusion-core'), 'fixed' => __('Fixed (fixed on desktop, non-fixed on mobile)', 'fusion-core'), 'up' => __('Up (moves up on desktop & mobile)', 'fusion-core'), 'down' => __('Down (moves down on desktop & mobile)', 'fusion-core'), 'left' => __('Left (moves left on desktop & mobile)', 'fusion-core'), 'right' => __('Right (moves right on desktop & mobile)', 'fusion-core'))), array("name" => __('Enable Parallax on Mobile', 'fusion-core'), "desc" => __('Works for up/down/left/right only. Parallax effects would most probably cause slowdowns when your site is viewed in mobile devices. If the device width is less than 980 pixels, then it is assumed that the site is being viewed in a mobile device.', 'fusion-core'), "id" => "enable_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "group" => __('Background', 'fusion-core'), "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Parallax Speed', 'fusion-core'), "desc" => __('The movement speed, value should be between 0.1 and 1.0. A lower number means slower scrolling speed. Higher scrolling speeds will enlarge the image more.', 'fusion-core'), "id" => "parallax_speed", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::SELECT, "allowedValues" => $parallax_speed, "value" => "0.3"), array("name" => __('Background Repeat', 'fusion-core'), "desc" => __('Choose how the background image repeats.', 'fusion-core'), "id" => "background_repeat", "type" => ElementTypeEnum::SELECT, "group" => __('Background', 'fusion-core'), "value" => "no-repeat", "allowedValues" => array('no-repeat' => __('No Repeat', 'fusion-core'), 'repeat' => __('Repeat Vertically and Horizontally', 'fusion-core'), 'repeat-x' => __('Repeat Horizontally', 'fusion-core'), 'repeat-y' => __('Repeat Vertically', 'fusion-core'))), array("name" => __('Background Position', 'fusion-core'), "desc" => __('Choose the postion of the background image', 'fusion-core'), "id" => "background_position", "type" => ElementTypeEnum::SELECT, "group" => __('Background', 'fusion-core'), "value" => "left top", "allowedValues" => array('left top' => __('Left Top', 'fusion-core'), 'left center' => __('Left Center', 'fusion-core'), 'left bottom' => __('Left Bottom', 'fusion-core'), 'right top' => __('Right Top', 'fusion-core'), 'right center' => __('Right Center', 'fusion-core'), 'right bottom' => __('Right Bottom', 'fusion-core'), 'center top' => __('Center Top', 'fusion-core'), 'center center' => __('Center Center', 'fusion-core'), 'center bottom' => __('Center Bottom', 'fusion-core'))), array("name" => __('YouTube/Vimeo Video URL or ID', 'fusion-core'), "desc" => __("Enter the URL to the video or the video ID of your YouTube or Vimeo video you want to use as your background. If your URL isn't showing a video, try inputting the video ID instead. <small>Ads will show up in the video if it has them.</small>", 'fusion-core'), "note" => __("Tip: newly uploaded videos may not display right away and might show an error message.", "") . '<br />' . __("Videos will not show up in mobile devices because they handle videos differently. In those cases, please provide a preview background image and that will be shown instead.", 'fusion-core'), "id" => "video_url", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Video Aspect Ratio', 'fusion-core'), "desc" => __("The video will be resized to maintain this aspect ratio, this is to prevent the video from showing any black bars. Enter an aspect ratio here such as: &quot;16:9&quot;, &quot;4:3&quot; or &quot;16:10&quot;. The default is &quot;16:9&quot;", 'fusion-core'), "id" => "video_aspect_ratio", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => "16:9"), array("name" => __('Video WebM Upload', 'fusion-core'), "desc" => __('Video must be in a 16:9 aspect ratio. Add your WebM video file. WebM and MP4 format must be included to render your video with cross browser compatibility. OGV is optional.', 'fusion-core'), "id" => "video_webm", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Video MP4 Upload', 'fusion-core'), "desc" => __('Video must be in a 16:9 aspect ratio. Add your WebM video file. WebM and MP4 format must be included to render your video with cross browser compatibility. OGV is optional.', 'fusion-core'), "id" => "video_mp4", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Video OGV Upload', 'fusion-core'), "desc" => __('Add your OGV video file. This is optional.', 'fusion-core'), "id" => "video_ogv", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Video Preview Image', 'fusion-core'), "desc" => __('IMPORTANT: Video backgrounds will not auto play on mobile and tablet devices or older browsers. Instead, you should insert a preview image in this field and it will be seen in place of your video.', 'fusion-core'), "id" => "video_preview_image", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::UPLOAD, "upid" => "2", "value" => ""), array("name" => __('Video Overlay Color', 'fusion-core'), "desc" => __('Select a color to show over the video as an overlay. Hex color code, <strong>ex: #fff</strong>', 'fusion-core'), "id" => "overlay_color", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Video Overlay Opacity', 'fusion-core'), "desc" => __('Opacity ranges between 0 (transparent) and 1 (opaque). ex: .4', 'fusion-core'), "id" => "overlay_opacity", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => "0.5"), array("name" => __('Mute Video', 'fusion-core'), "desc" => '', "id" => "video_mute", "type" => ElementTypeEnum::SELECT, "value" => "yes", "group" => __('Background', 'fusion-core'), "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Loop Video', 'fusion-core'), "desc" => '', "id" => "video_loop", "type" => ElementTypeEnum::SELECT, "value" => "yes", "group" => __('Background', 'fusion-core'), "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Fading Animation', 'fusion-core'), "desc" => __('Choose to have the background image fade and blur on scroll. WARNING: Only works for images. ', 'fusion-core'), "id" => "fade", "group" => __('Background', 'fusion-core'), "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "border_size", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => "0px"), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "border_color", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Style', 'fusion-core'), "desc" => __('Controls the border style.', 'fusion-core'), "id" => "border_style", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('solid' => __('Solid', 'fusion-core'), 'dashed' => __('Dashed', 'fusion-core'), 'dotted' => __('Dotted', 'fusion-core'))), array("name" => __('Padding Top', 'fusion-core'), "desc" => __('In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "padding_top", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => "20"), array("name" => __('Padding Bottom', 'fusion-core'), "desc" => __('In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "padding_bottom", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => "20"), array("name" => __('Padding Left', 'fusion-core'), "desc" => __('In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "padding_left", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Padding Right', 'fusion-core'), "desc" => __('In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "padding_right", "group" => __('Design', 'fusion-core'), "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('100% Interior Content Width', 'fusion-core'), "desc" => __('Select if the interior content is contained to site width or 100% width.', 'fusion-core'), "id" => "hundred_percent", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Set Columns to Equal Height', 'fusion-core'), "desc" => __('Select to set all column shortcodes that are used inside the container to have equal height.', 'fusion-core'), "id" => "equal_height_columns", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Hide on Mobile', 'fusion-core'), "desc" => __('Select yes to hide full width container on mobile.', 'fusion-core'), "id" => "hide_on_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Name Of Menu Anchor', 'fusion-core'), "desc" => __('This name will be the id you will have to use in your one page menu.', 'fusion-core'), "id" => "menu_anchor", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $this->config['layout_opt'] = true;
     $this->config['subElements'] = array(array("name" => __('Last Column', 'fusion-core'), "desc" => __('Choose if the column is last in a set. This has to be set to "Yes" for the last column in a set.', 'fusion-core'), "id" => "last", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __('Set to "No" to eliminate margin between columns.', 'fusion-core'), "id" => "spacing", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Center Content', 'fusion-core'), "desc" => __('Only works with columns inside a full width container that is set to equal heights. Set to "Yes" to center the content horizontally and vertically.', 'fusion-core'), "id" => "center_content", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Hide on Mobile', 'fusion-core'), "desc" => __('Select "Yes" to hide column on mobile.', 'fusion-core'), "id" => "hide_on_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color.', 'fusion-core'), "id" => "background_color", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Image', 'fusion-core'), "desc" => __('Upload an image to display in the background', 'fusion-core'), "id" => "background_image", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('Background Repeat', 'fusion-core'), "desc" => __('Choose how the background image repeats.', 'fusion-core'), "id" => "background_repeat", "type" => ElementTypeEnum::SELECT, "value" => "no-repeat", "allowedValues" => array('no-repeat' => __('No Repeat', 'fusion-core'), 'repeat' => __('Repeat Vertically and Horizontally', 'fusion-core'), 'repeat-x' => __('Repeat Horizontally', 'fusion-core'), 'repeat-y' => __('Repeat Vertically', 'fusion-core'))), array("name" => __('Background Position', 'fusion-core'), "desc" => __('Choose the postion of the background image.', 'fusion-core'), "id" => "background_position", "type" => ElementTypeEnum::SELECT, "value" => "left top", "allowedValues" => array('left top' => __('Left Top', 'fusion-core'), 'left center' => __('Left Center', 'fusion-core'), 'left bottom' => __('Left Bottom', 'fusion-core'), 'right top' => __('Right Top', 'fusion-core'), 'right center' => __('Right Center', 'fusion-core'), 'right bottom' => __('Right Bottom', 'fusion-core'), 'center top' => __('Center Top', 'fusion-core'), 'center center' => __('Center Center', 'fusion-core'), 'center bottom' => __('Center Bottom', 'fusion-core'))), array("name" => __('Border Position', 'fusion-core'), "desc" => __('Choose the postion of the border.', 'fusion-core'), "id" => "border_position", "type" => ElementTypeEnum::SELECT, "value" => "all", "allowedValues" => array('all' => __('All', 'fusion-core'), 'top' => __('Top', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'))), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "border_size", "type" => ElementTypeEnum::INPUT, "value" => "0px"), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color.', 'fusion-core'), "id" => "border_color", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Style', 'fusion-core'), "desc" => __('Controls the border style.', 'fusion-core'), "id" => "border_style", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('solid' => __('Solid', 'fusion-core'), 'dashed' => __('Dashed', 'fusion-core'), 'dotted' => __('Dotted', 'fusion-core'))), array("name" => __('Padding', 'fusion-core'), "desc" => __('In pixels (px), ex: 10px.', 'fusion-core'), "id" => "padding", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "animation_type[0]", "type" => ElementTypeEnum::SELECT, "value" => array(), "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "animation_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(), "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "animation_speed[0]", "type" => ElementTypeEnum::SELECT, "value" => array('0.1'), "allowedValues" => $animation_speed), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 11
0
 function popup_elements()
 {
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $opacity_data = $this->create_shadow_opacity_data();
     $this->config['subElements'] = array(array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Shadow', 'fusion-core'), "desc" => __('Show the shadow below the box', 'fusion-core'), "id" => "fusion_shadow", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $reverse_choices), array("name" => __('Shadow Opacity', 'fusion-core'), "desc" => __('Choose the opacity of the shadow', 'fusion-core'), "id" => "fusion_shadowopacity", "type" => ElementTypeEnum::SELECT, "value" => "0.7", "allowedValues" => $opacity_data), array("name" => __('Border', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px', 'fusion-core'), "id" => "fusion_border", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Highlight Border Position', 'fusion-core'), "desc" => __('Choose the position of the highlight. This border highlight is from theme options primary color and does not take the color from border color above', 'fusion-core'), "id" => "fusion_highlightposition", "type" => ElementTypeEnum::SELECT, "value" => "top", "allowedValues" => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'none' => __('None', 'fusion-core'))), array("name" => __('Content Alignment', 'fusion-core'), "desc" => __('Choose how the content should be displayed.', 'fusion-core'), "id" => "fusion_contentalignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), array("name" => __('Button Text', 'fusion-core'), "desc" => __('Insert the text that will display in the button', 'fusion-core'), "id" => "fusion_button", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link', 'fusion-core'), "desc" => __('The url the button will link to', 'fusion-core'), "id" => "fusion_url", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Modal Window Anchor', 'fusion-core'), "desc" => __('Add the class name of the modal window you want to open on button click.', 'fusion-core'), "id" => "fusion_modalanchor", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button Size', 'fusion-core'), "desc" => __('Select the button\'s size.', 'fusion-core'), "id" => "fusion_buttonsize", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'small' => __('Small', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large' => __('Large', 'fusion-core'), 'xlarge' => __('XLarge', 'fusion-core'))), array("name" => __('Button Type', 'fusion-core'), "desc" => __('Select the button\'s type.', 'fusion-core'), "id" => "fusion_buttontype", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'flat' => __('Flat', 'fusion-core'), '3D' => '3D')), array("name" => __('Button Shape', 'fusion-core'), "desc" => __('Select the button\'s shape.', 'fusion-core'), "id" => "fusion_buttonshape", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'square' => __('Square', 'fusion-core'), 'pill' => __('Pill', 'fusion-core'), 'round' => __('Round', 'fusion-core'))), array("name" => __('Button Color', 'fusion-core'), "desc" => __('Choose the button color<br>Default uses theme option selection', 'fusion-core'), "id" => "fusion_buttoncolor", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'green' => __('Green', 'fusion-core'), 'darkgreen' => __('Dark Green', 'fusion-core'), 'orange' => __('Orange', 'fusion-core'), 'blue' => __('Blue', 'fusion-core'), 'red' => __('Red', 'fusion-core'), 'pink' => __('Pink', 'fusion-core'), 'darkgray' => __('Dark Gray', 'fusion-core'), 'lightgray' => __('Light Gray', 'fusion-core'))), array("name" => __('Tagline Title', 'fusion-core'), "desc" => __('Insert the title text', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Tagline Description', 'fusion-core'), "desc" => __('Insert the description text', 'fusion-core'), "id" => "fusion_description", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Additional Content', 'fusion-core'), "desc" => __('This is additional content you can add to the tagline box. This will show below the title and description if one is used.', 'fusion-core'), "id" => "fusion_additionalcontent", "type" => ElementTypeEnum::HTML_EDITOR, "value" => ""), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('Add a custom top margin. In pixels.', 'fusion-core'), "id" => "fusion_margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('Add a custom bottom margin. In pixels.', 'fusion-core'), "id" => "fusion_margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::INPUT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation shoul start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 12
0
 function popup_elements()
 {
     $border_size = FusionHelper::fusion_create_dropdown_data(0, 10);
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $this->config['subElements'] = array(array("name" => __('Frame Style Type', 'fusion-core'), "desc" => __('Select the frame style type.', 'fusion-core'), "id" => "fusion_style", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'glow' => __('Glow', 'fusion-core'), 'dropshadow' => __('Drop Shadow', 'fusion-core'), 'bottomshadow' => __('Bottom Shadow', 'fusion-core'))), array("name" => __('Hover Type', 'fusion-core'), "desc" => __('Select the hover effect type.', 'fusion-core'), "id" => "fusion_hover_type", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'zoomin' => __('Zoom In', 'fusion-core'), 'zoomout' => __('Zoom Out', 'fusion-core'), 'liftup' => __('Lift Up', 'fusion-core'))), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "0px"), array("name" => __('Border Radius', 'fusion-core'), "desc" => __('Choose the radius of the image. In pixels (px), ex: 1px, or "round".  Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_borderradius", "type" => ElementTypeEnum::INPUT, "value" => "0"), array("name" => __('Style Color', 'fusion-core'), "desc" => __('For all style types except border. Controls the style color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_stylecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Align', 'fusion-core'), "desc" => __('Choose how to align the image.', 'fusion-core'), "id" => "fusion_align", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'center' => __('Center', 'fusion-core'))), array("name" => __('Image lightbox', 'fusion-core'), "desc" => __('Show image in Lightbox.', 'fusion-core'), "id" => "fusion_lightbox", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $reverse_choices), array("name" => __('Lightbox Image', 'fusion-core'), "desc" => __('Upload an image that will show up in the lightbox.', 'fusion-core'), "id" => "fusion_lightboximage", "type" => ElementTypeEnum::UPLOAD, "upid" => "2", "value" => ""), array("name" => __('Image', 'fusion-core'), "desc" => __('Upload an image to display in the frame.', 'fusion-core'), "id" => "fusion_image", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('Image Alt Text', 'fusion-core'), "desc" => __('The alt attribute provides alternative information if an image cannot be viewed.', 'fusion-core'), "id" => "fusion_alt", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Picture Link URL', 'fusion-core'), "desc" => __('Add the URL the picture will link to, ex: http://example.com.', 'fusion-core'), "id" => "fusion_link", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window.', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode.', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "0", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation.', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1).', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation should start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('Hide on Mobile', 'fusion-core'), "desc" => __('Select yes to hide full width container on mobile.', 'fusion-core'), "id" => "hide_on_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 13
0
 function popup_elements()
 {
     $choices = FusionHelper::get_shortcode_choices();
     $leftright = FusionHelper::get_left_right_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $this->config['subElements'] = array(array("name" => __('Button URL', 'fusion-core'), "desc" => __('Add the button\'s url ex: http://example.com', 'fusion-core'), "id" => "fusion_url", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button Style', 'fusion-core'), "desc" => __('Select the button\'s color. Select default or color name for theme options, or select custom to use advanced color options below.', 'fusion-core'), "id" => "fusion_style", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default', 'fusion-core'), 'custom' => __('Custom', 'fusion-core'), 'green' => __('Green', 'fusion-core'), 'darkgreen' => __('Dark Green', 'fusion-core'), 'orange' => __('Orange', 'fusion-core'), 'blue' => __('Blue', 'fusion-core'), 'red' => __('Red', 'fusion-core'), 'pink' => __('Pink', 'fusion-core'), 'darkgray' => __('Dark Gray', 'fusion-core'), 'lightgray' => __('Light Gray', 'fusion-core'))), array("name" => __('Button Size', 'fusion-core'), "desc" => __('Select the button\'s size. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'small' => __('Small', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large' => __('Large', 'fusion-core'), 'xlarge' => __('XLarge', 'fusion-core'))), array("name" => __('Button Type', 'fusion-core'), "desc" => __('Select the button\'s type. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'flat' => __('Flat', 'fusion-core'), '3d' => '3D')), array("name" => __('Button Shape', 'fusion-core'), "desc" => __('Select the button\'s shape. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_shape", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'square' => __('Square', 'fusion-core'), 'pill' => __('Pill', 'fusion-core'), 'round' => __('Round', 'fusion-core'))), array("name" => __('Button Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Button Title attribute', 'fusion-core'), "desc" => __('Set a title attribute for the button link.', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button\'s Text', 'fusion-core'), "desc" => __('Add the text that will display on button', 'fusion-core'), "id" => "fusion_content", "type" => ElementTypeEnum::INPUT, "value" => "Button Text"), array("name" => __('Button Gradient Top Color', 'fusion-core'), "desc" => __('Custom setting only. Set the top color of the button background.', 'fusion-core'), "id" => "fusion_gradtopcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Bottom Color', 'fusion-core'), "desc" => __('Custom setting only. Set the bottom color of the button background or leave empty for solid color.', 'fusion-core'), "id" => "fusion_gradbottomcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Top Color Hover', 'fusion-core'), "desc" => __('Custom setting only. Set the top hover color of the button background.', 'fusion-core'), "id" => "fusion_gradtopcolorhover", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Bottom Color Hover', 'fusion-core'), "desc" => __('Custom setting only. Set the bottom hover color of the button background or leave empty for solid color.', 'fusion-core'), "id" => "fusion_gradbottomcolorhover", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Accent Color', 'fusion-core'), "desc" => __('Custom setting only. This option controls the color of the button border, divider, text and icon.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Accent Hover Color', 'fusion-core'), "desc" => __('Custom setting only. This option controls the hover color of the button border, divider, text and icon.', 'fusion-core'), "id" => "fusion_borderhovercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Bevel Color (3D Mode only)', 'fusion-core'), "desc" => __('Custom setting. Set the bevel color of 3D buttons.', 'fusion-core'), "id" => "fusion_bevelcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Width', 'fusion-core'), "desc" => __('Custom setting only. In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Select Custom Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Position', 'fusion-core'), "desc" => __('Choose the position of the icon on the button.', 'fusion-core'), "id" => "fusion_iconposition", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $leftright), array("name" => __('Icon Divider', 'fusion-core'), "desc" => __('Choose to display a divider between icon and text.', 'fusion-core'), "id" => "fusion_icondivider", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Modal Window Anchor', 'fusion-core'), "desc" => __('Add the class name of the modal window you want to open on button click.', 'fusion-core'), "id" => "fusion_modal", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "left", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_speed), array("name" => __('Alignment', 'fusion-core'), "desc" => __('Select the button\'s alignment.', 'fusion-core'), "id" => "fusion_alignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $choices = FusionHelper::get_shortcode_choices();
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $this->config['subElements'] = array(array("name" => __('Select Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "fa-flag", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon in Circle', 'fusion-core'), "desc" => __('Choose to display the icon in a circle', 'fusion-core'), "id" => "fusion_circle", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Icon Size', 'fusion-core'), "desc" => __('Set the size of the icon. In pixels (px), ex: 13px.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Controls the color of the icon. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Icon Circle Background Color', 'fusion-core'), "desc" => __('Controls the color of the circle. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Icon Circle Border Color', 'fusion-core'), "desc" => __('Controls the color of the circle border. Leave blank for theme option selection.', 'fusion-core'), "id" => "circlebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_rotate", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_spin", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $reverse_choices), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "0", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_speed), array("name" => __('Alignment', 'fusion-core'), "desc" => __('Select the icon\'s alignment.', 'fusion-core'), "id" => "fusion_alignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $wp_categories_list = FusionHelper::fusion_shortcodes_categories('portfolio_category');
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Layout', 'fusion-core'), "desc" => __('Choose the layout for the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "carousel", "allowedValues" => array('carousel' => __('Carousel', 'fusion-core'), 'grid' => __('Grid', 'fusion-core'), 'grid-with-excerpts' => __('Grid with Excerpts', 'fusion-core'))), array("name" => __('Picture Size', 'fusion-core'), "desc" => __('fixed = width and height will be fixed<br>auto = width and height will adjust to the image.', 'fusion-core'), "id" => "fusion_picture_size", "type" => ElementTypeEnum::SELECT, "value" => "fixed", "allowedValues" => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('Grid with Excerpts Layout', 'fusion-core'), "desc" => __('Select if the grid with excerpts layouts are boxed or unboxed.', 'fusion-core'), "id" => "fusion_boxed_text", "type" => ElementTypeEnum::SELECT, "value" => "unboxed", "allowedValues" => array('boxed' => __('Boxed', 'fusion-core'), 'unboxed' => __('Unboxed', 'fusion-core'))), array("name" => __('Show Filters', 'fusion-core'), "desc" => __('Choose to show or hide the category filters', 'fusion-core'), "id" => "fusion_filters", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'yes-without-all' => __('Yes without "All"', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Columns', 'fusion-core'), "desc" => __('Select the number of columns to display. With Carousel layout this specifies the maximum amount of columns.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "3", "allowedValues" => $no_of_columns), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __('Insert the amount of spacing between portfolio items without "px". ex: 7.', 'fusion-core'), "id" => "fusion_column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "12"), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "fusion_cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Exclude Categories', 'fusion-core'), "desc" => __('Select a category to exclude', 'fusion-core'), "id" => "fusion_exclude_cats", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Number of Posts', 'fusion-core'), "desc" => __('Select the number of posts to display', 'fusion-core'), "id" => "fusion_number_posts", "type" => ElementTypeEnum::INPUT, "value" => "8"), array("name" => __('Post Offset', 'fusion-core'), "desc" => __('The number of posts to skip. ex: 1.', 'fusion-core'), "id" => "fusion_offset", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Excerpt Length', 'fusion-core'), "desc" => __('Insert the number of words/characters you want to show in the excerpt', 'fusion-core'), "id" => "fusion_excerpt_words", "type" => ElementTypeEnum::INPUT, "value" => 35), array("name" => __('Strip HTML from Posts Content', 'fusion-core'), "desc" => __('Strip HTML from the post excerpt.', 'fusion-core'), "id" => "fusion_strip_html", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Carousel Layout', 'fusion-core'), "desc" => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), "id" => "fusion_carousel_layout", "type" => ElementTypeEnum::SELECT, "value" => "title_on_rollover", "allowedValues" => array('title_on_rollover' => __('Title on rollover', 'fusion-core'), 'title_below_image' => __('Title below image', 'fusion-core'))), array("name" => __('Carousel Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", 'fusion-core'), "id" => "fusion_scroll_items", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Carousel Autoplay', 'fusion-core'), "desc" => __('Choose to autoplay the carousel.', 'fusion-core'), "id" => "fusion_autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Carousel Show Navigation', 'fusion-core'), "desc" => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), "id" => "fusion_navigation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Carousel Mouse Scroll', 'fusion-core'), "desc" => __('Choose to enable mouse drag control on the carousel.', 'fusion-core'), "id" => "fusion_mouse_scroll", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 16
0
 function popup_elements()
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $wp_categories_list = FusionHelper::get_wp_categories_list();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Layout', 'fusion-core'), "desc" => __('Select the layout for the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default', 'fusion-core'), 'thumbnails-on-side' => __('Thumbnails on Side', 'fusion-core'), 'date-on-side' => __('Date on Side', 'fusion-core'))), array("name" => __('Hover Type', 'fusion-core'), "desc" => __('Select the hover effect type.', 'fusion-core'), "id" => "fusion_hover_type", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'zoomin' => __('Zoom In', 'fusion-core'), 'zoomout' => __('Zoom Out', 'fusion-core'), 'liftup' => __('Lift Up', 'fusion-core'))), array("name" => __('Columns', 'fusion-core'), "desc" => __('Select the number of columns to display', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "1", "allowedValues" => $no_of_columns), array("name" => __('Number of Posts', 'fusion-core'), "desc" => __('Select the number of posts to display', 'fusion-core'), "id" => "fusion_number_posts", "type" => ElementTypeEnum::INPUT, "value" => "4"), array("name" => __('Post Offset', 'fusion-core'), "desc" => __('The number of posts to skip. ex: 1.', 'fusion-core'), "id" => "fusion_offset", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "fusion_cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Exclude Categories', 'fusion-core'), "desc" => __('Select a category to exclude', 'fusion-core'), "id" => "fusion_exclude_cats", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Show Thumbnail', 'fusion-core'), "desc" => __('Display the post featured image', 'fusion-core'), "id" => "fusion_thumbnail", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Title', 'fusion-core'), "desc" => __('Display the post title below the featured image', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Meta', 'fusion-core'), "desc" => __('Choose to show all meta data', 'fusion-core'), "id" => "fusion_meta", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Excerpt', 'fusion-core'), "desc" => __('Choose to display the post excerpt', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Excerpt Length', 'fusion-core'), "desc" => __('Insert the number of words/characters you want to show in the excerpt', 'fusion-core'), "id" => "fusion_excerpt_words", "type" => ElementTypeEnum::INPUT, "value" => 35), array("name" => __('Strip HTML', 'fusion-core'), "desc" => __('Strip HTML from the post excerpt', 'fusion-core'), "id" => "fusion_strip_html", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation should start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
        /**
         * Function to get tab content for custom templates
         *
         * @since	 2.0.0
         *
         * @return	String	String having tab content
         */
        public function get_custom_templates()
        {
            $columns = 6;
            //number of columns
            $content = '<div id="custom_templates_wrapper">
								<div id="custom_templates_left">
								<h1 class="templates_heading">' . __('Save Template', 'fusion-core') . '</h1>
								<div class="save_templates_here">
								<a class="templates_selection" id="fusion_save_custom_tpl" 
								href="JavaScript:void(0)">' . __('Save Layout As Template', 'fusion-core') . '</a>
								</div>
								</div>
								<div id="custom_templates_right">
								<h1 class="templates_heading">' . __('Load Template', 'fusion-core') . '</h1>';
            //get templates data
            $templates = get_option('fusion_custom_templates');
            //if value exists and there are more than 1 number of templates
            if ($templates != false && count($templates) > 0) {
                //generate column combinations
                $combinations = FusionHelper::generate_column_combinations(count($templates), $columns);
                //add data in each column
                for ($i = 0; $i < $columns; $i++) {
                    //if no data available for this column then break
                    if ($combinations[$i] == 0) {
                        break;
                    }
                    $counter = 0;
                    $content .= ' <div class="custom_templates_sections">';
                    foreach ($templates as $key => $value) {
                        $content .= ' <div style="position:relative;" class="template_selection_wrapper"> ';
                        $content .= ' <div class="hidden_overlay">
										<a href="JavaScript:void(0)" data-id="' . $key . '"  class="fuiosn_load_template">' . __('LOAD', 'fusion-core') . '</a>
										<a href="JavaScript:void(0)" data-id="' . $key . '"  class="fusion_delete_template">' . __('DELETE', 'fusion-core') . '</a>
									 </div>';
                        $content .= ' <a class="fusion_custom_template templates_selection" href="JavaScript:void(0)">' . $key . '</a>';
                        $content .= ' </div>';
                        //remove current element from array for next iteration
                        unset($templates[$key]);
                        $counter++;
                        //if reached combination value then break loop
                        if ($counter == $combinations[$i]) {
                            break;
                        }
                    }
                    $content .= '</div>';
                }
            }
            $content .= '</div>';
            return $content;
        }
 function popup_elements($am_elements)
 {
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $am_array = array();
     $am_array[] = array(array("name" => __('Name', 'fusion-core'), "desc" => __('Insert the name of the person', 'fusion-core'), "id" => "fusion_name[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Avatar', 'fusion-core'), "desc" => __('Choose which kind of Avatar to be displayed.', 'fusion-core'), "id" => "fusion_gender[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('male' => __('Male', 'fusion-core'), 'female' => __('Female', 'fusion-core'), 'image' => __('Image', 'fusion-core'), 'none' => __('None', 'Avada'))), array("name" => __('Custom Avatar', 'fusion-core'), "desc" => __('Upload a custom avatar image.', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('Border Radius', 'fusion-core'), "desc" => __('Choose the radius of the testimonial image. In pixels (px), ex: 1px, or "round".  Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_borderradius[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Company', 'fusion-core'), "desc" => __('Insert the name of the company.', 'fusion-core'), "id" => "fusion_company[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Link', 'fusion-core'), "desc" => __('Add the url the company name will link to.', 'fusion-core'), "id" => "fusion_link[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window.', 'fusion-core'), "id" => "fusion_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Testimonial Content', 'fusion-core'), "desc" => __('Add the testimonial content', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::TEXTAREA, "value" => array("")));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Design', 'fusion-core'), "desc" => __('Choose a design for the shortcode.', 'fusion-core'), "id" => "fusion_design", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('classic' => __('Classic', 'fusion-core'), 'clean' => __('Clean', 'fusion-core'))), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Text Color', 'fusion-core'), "desc" => __('Controls the text color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_textcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Random Order', 'fusion-core'), "desc" => __('Choose to display testimonials in random order.', 'fusion-core'), "id" => "fusion_random", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => array('' => __('Default', 'fusion-core'), 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Testimonial', 'fusion-core'), "id" => "am_fusion_testimonial", "elements" => $am_array));
 }
Exemplo n.º 19
0
 function popup_elements($am_elements)
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $am_array = array();
     $am_array[] = array(array("name" => __('Image Website Link', 'fusion-core'), "desc" => __('Add the url to image\'s website. If lightbox option is enabled, you have to add the full image link to show it in the lightbox.', 'fusion-core'), "id" => "fusion_url[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Image', 'fusion-core'), "desc" => __('Upload an image to display.', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array()), array("name" => __('Image Alt Text', 'fusion-core'), "desc" => __('The alt attribute provides alternative information if an image cannot be viewed.', 'fusion-core'), "id" => "fusion_alt[0]", "type" => ElementTypeEnum::INPUT, "value" => array()));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Picture Size', 'fusion-core'), "desc" => __('fixed = width and height will be fixed<br>auto = width and height will adjust to the image.', 'fusion-core'), "id" => "fusion_picture_size", "type" => ElementTypeEnum::SELECT, "value" => "fixed", "allowedValues" => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('Autoplay', 'fusion-core'), "desc" => __('Choose to autoplay the carousel.', 'fusion-core'), "id" => "fusion_autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Maximum Columns', 'fusion-core'), "desc" => __('Select the number of max columns to display.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "5", "allowedValues" => $no_of_columns), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __("Insert the amount of spacing between items without 'px'. ex: 13.", 'fusion-core'), "id" => "fusion_column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "13"), array("name" => __('Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", 'fusion-core'), "id" => "fusion_scroll_items", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Show Navigation', 'fusion-core'), "desc" => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), "id" => "fusion_navigation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Mouse Scroll', 'fusion-core'), "desc" => __('Choose to enable mouse drag control on the carousel. IMPORTANT: For easy draggability, when mouse scroll is activated, links will be disabled.', 'fusion-core'), "id" => "fusion_mouse_scroll", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Border', 'fusion-core'), "desc" => __('Choose to enable a border around the images.', 'fusion-core'), "id" => "fusion_border", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Image lightbox', 'fusion-core'), "desc" => __('Show image in lightbox.', 'fusion-core'), "id" => "fusion_lightbox", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Image', 'fusion-core'), "id" => "am_fusion_image", "elements" => $am_array));
 }
 function popup_elements($am_elements)
 {
     $choices = FusionHelper::get_shortcode_choices();
     $am_array = array();
     $am_array[] = array(array("name" => __('Slide Type', 'fusion-core'), "desc" => __('Choose a video or image slide', 'fusion-core'), "id" => "fusion_slider_type[0]", "type" => ElementTypeEnum::SELECT, "value" => array('image'), "allowedValues" => array('image' => __('Image', 'fusion-core'), 'video' => __('Video', 'fusion-core'))), array("name" => __('Slide Image', 'fusion-core'), "desc" => __('Upload an image to display in the slide', 'fusion-core'), "id" => "fusion_image_content[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array("")), array("name" => __('Full Image Link or External Link', 'fusion-core'), "desc" => __('Add the url of where the image will link to. If lightbox option is enabled, you have to add the full image link to show it in the lightbox', 'fusion-core'), "id" => "fusion_image_url[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_image_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Lighbox', 'fusion-core'), "desc" => __('Show image in Lightbox', 'fusion-core'), "id" => "fusion_image_lightbox[0]", "type" => ElementTypeEnum::SELECT, "value" => array('yes'), "allowedValues" => $choices), array("name" => __('Video Shortcode or Video Embed Code', 'fusion-core'), "desc" => __('Click the Youtube or Vimeo Shortcode button below then enter your unique video ID, or copy and paste your video embed code.<a href="JavaScript:void(0);" sc-data=\'[youtube id="Enter video ID (eg. Wq4Y7ztznKc)" width="600" height="350"]\' class="fusionb-add-shortcode">Insert Youtube Shortcode</a><a href="JavaScript:void(0);" sc-data=\'[vimeo id="Enter video ID (eg. 10145153)" width="600" height="350"]\' class="fusionb-add-shortcode">Insert Vimeo Shortcode</a>', 'fusion-core'), "id" => "video_content[0]", "type" => ElementTypeEnum::TEXTAREA, "value" => array()));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Hover Type', 'fusion-core'), "desc" => __('Select the hover effect type.', 'fusion-core'), "id" => "fusion_hover_type", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'zoomin' => __('Zoom In', 'fusion-core'), 'zoomout' => __('Zoom Out', 'fusion-core'), 'liftup' => __('Lift Up', 'fusion-core'))), array("name" => __('Image Size Width', 'fusion-core'), "desc" => __('Width in percentage (%) or pixels (px)', 'fusion-core'), "id" => "fusion_size_width", "type" => ElementTypeEnum::INPUT, "value" => "100%"), array("name" => __('Image Size Height', 'fusion-core'), "desc" => __('Height in percentage (%) or pixels (px)', 'fusion-core'), "id" => "fusion_size_height", "type" => ElementTypeEnum::INPUT, "value" => "100%"), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Slide', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
 }
 function popup_elements($am_elements)
 {
     $choices = FusionHelper::get_shortcode_choices_with_default();
     $am_array = array();
     $am_array[] = array(array("name" => __('Select Icon', 'fusion-core'), "desc" => __('This setting will override the global setting above. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(""), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('List Item Content', 'fusion-core'), "desc" => __('Add list item content', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array('')));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Select Icon', 'fusion-core'), "desc" => __('Global setting for all list items, this can be overridden individually below. Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "fa-check", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Global setting for all list items. Leave blank for theme option selection. Defines the icon color.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon in Circle', 'fusion-core'), "desc" => __('Global setting for all list items. Set to default for theme option selection. Choose to have icons in circles.', 'fusion-core'), "id" => "fusion_circle", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Circle Color', 'fusion-core'), "desc" => __('Global setting for all list items. Leave blank for theme option selection. Defines the circle color.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Item Size', 'fusion-core'), "desc" => __('Select the list item\'s size. In pixels (px), ex: 13px.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::INPUT, "value" => "13px"), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New List Item', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
 }
 function popup_elements($am_elements)
 {
     $choices = FusionHelper::get_shortcode_choices();
     $am_array = array();
     $am_array[] = array(array("name" => __('Tab Title', 'fusion-core'), "desc" => __('Title of the tab', 'fusion-core'), "id" => "fusion_title[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Select Icon', 'fusion-core'), "desc" => __('Display an icon next to tab title. Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "fusion_icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(""), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Tab Content', 'fusion-core'), "desc" => __('Add the tabs content', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array("Tab content")));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Design', 'fusion-core'), "desc" => __('Choose a design for the shortcode.', 'fusion-core'), "id" => "fusion_design", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('classic' => __('Classic', 'fusion-core'), 'clean' => __('Clean', 'fusion-core'))), array("name" => __('Layout', 'fusion-core'), "desc" => __('Choose the layout of the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "horizontal", "allowedValues" => array('horizontal' => __('Horizontal', 'fusion-core'), 'vertical' => __('Vertical', 'fusion-core'))), array("name" => __('Justify Tabs', 'fusion-core'), "desc" => __('Choose to get tabs stretched over full shortcode width.', 'fusion-core'), "id" => "fusion_justified", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background tab color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Inactive Color', 'fusion-core'), "desc" => __('Controls the inactive tab color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_inactivecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the color of the outer tab border. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Tab', 'fusion-core'), "id" => "am_fusion_tab", "elements" => $am_array));
 }
 function popup_elements($am_elements)
 {
     $fille_area_data = FusionHelper::fusion_create_dropdown_data(1, 100);
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $am_array = array();
     $am_array[] = array(array("name" => __('Filled Area Percentage', 'fusion-core'), "desc" => __('From 1% to 100%', 'fusion-core'), "id" => "fusion_value[0]", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => $fille_area_data), array("name" => __('Filled Color', 'fusion-core'), "desc" => __('Controls the color of the filled in area. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_filledcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array('')), array("name" => __('Unfilled Color', 'fusion-core'), "desc" => __('Controls the color of the unfilled in area. Leave blank for theme option selection.'), "id" => "fusion_unfilledcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array('')), array("name" => __('Size of the Counter', 'fusion-core'), "desc" => __('Insert size of the counter in px. ex: 220', 'fusion-core'), "id" => "fusion_size[0]", "type" => ElementTypeEnum::INPUT, "value" => array("220")), array("name" => __('Show Scales', 'fusion-core'), "desc" => __('Choose to show a scale around circles.', 'fusion-core'), "id" => "fusion_scales[0]", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => $reverse_choices), array("name" => __('Countdown', 'fusion-core'), "desc" => __('Choose to let the circle filling move counter clockwise.', 'fusion-core'), "id" => "fusion_countdown[0]", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => $reverse_choices), array("name" => __('Animation Speed', 'fusion-core'), "desc" => __('Insert animation speed in milliseconds', 'fusion-core'), "id" => "fusion_speed[0]", "type" => ElementTypeEnum::INPUT, "value" => array("1500")), array("name" => __('Counter Circle Text', 'fusion-core'), "desc" => __('Insert text for counter circle box, keep it short', 'fusion-core'), "id" => "fusion_content[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Text")));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Counter Circle', 'fusion-core'), "id" => "am_fusion_circle", "elements" => $am_array));
 }
 function popup_elements($am_elements)
 {
     $fille_area_data = FusionHelper::fusion_create_dropdown_data(1, 100);
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $choices = FusionHelper::get_shortcode_choices();
     $am_array = array();
     $am_array[] = array(array("name" => __('Counter Value', 'fusion-core'), "desc" => __('The number to which the counter will animate.', 'fusion-core'), "id" => "fusion_value[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Delimiter Digit', 'fusion-core'), "desc" => __('Insert a delimiter digit for better readability. ex: ,', 'fusion-core'), "id" => "fusion_delimiter[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Counter Box Unit', 'fusion-core'), "desc" => __('Insert a unit for the counter. ex %', 'fusion-core'), "id" => "fusion_unit[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Unit Position', 'fusion-core'), "desc" => __('Choose the positioning of the unit.', 'fusion-core'), "id" => "fusion_unitpos[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('suffix' => __('After Counter', 'fusion-core'), 'prefix' => __('Before Counter', 'fusion-core'))), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Counter Direction', 'fusion-core'), "desc" => __('Choose to count up or down.', 'fusion-core'), "id" => "fusion_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('up' => __('Count Up', 'fusion-core'), 'down' => __('Count Down', 'fusion-core'))), array("name" => __('Counter Box Text', 'fusion-core'), "desc" => __('Insert text for counter box', 'fusion-core'), "id" => "fusion_content[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Text")));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Counter Box Title Font Color', 'fusion-core'), "desc" => __('Controls the color of the counter "value" and icon. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_color", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Counter Box Title Font Size', 'fusion-core'), "desc" => __('Controls the size of the counter "value" and icon. Enter the font size without \'px\' ex: 50. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_title_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Icon Size', 'fusion-core'), "desc" => __('Controls the size of the icon. Enter the font size without \'px\'. Default is 50. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_icon_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Icon Top', 'fusion-core'), "desc" => __('Controls the position of the icon. Select Default for theme option styling.', 'fusion-core'), "id" => "fusion_icon_top", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Counter Box Body Font Color', 'fusion-core'), "desc" => __('Controls the color of the counter body text. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_body_color", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Counter Box Body Font Size', 'fusion-core'), "desc" => __('Controls the size of the counter body text. Enter the font size without \'px\' ex: 13. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_body_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Border Color', 'fusion-core'), "desc" => __('Controls the color of the border.', 'fusion-core'), "id" => "fusion_border_color", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Counter Box', 'fusion-core'), "id" => "cb_fusion_box", "elements" => $am_array));
 }
Exemplo n.º 25
0
 /**
  * Function to get tab content for pre-built templates
  *
  * @since	 2.0.0
  *
  * @return	String	String having tab content
  */
 public function get_prebuilt_templates()
 {
     $columns = 6;
     //number of columns
     $content = '<div id="pre_built_templates_wrapper"><div id="custom_templates_right" class="custom_pre_built">';
     //get templates data
     $templates = unserialize(base64_decode(self::$content));
     //if value exists and there are more than 1 number of templates
     if ($templates != false && count($templates) > 0) {
         //generate column combinations
         $combinations = FusionHelper::generate_column_combinations(count($templates), $columns);
         //add data in each column
         for ($i = 0; $i < $columns; $i++) {
             //if no data available for this column then break
             if ($combinations[$i] == 0) {
                 break;
             }
             $counter = 0;
             $content .= ' <div class="pre_built_templates_section">';
             foreach ($templates as $key => $value) {
                 $content .= ' <div class="template_selection_wrapper"> ';
                 $content .= ' <a class="fusion_pre_built_template templates_selection" data-id="' . $key . '" ';
                 $content .= ' href="JavaScript:void(0)">' . $key . '</a>';
                 $content .= ' </div>';
                 //remove current element from array for next iteration
                 unset($templates[$key]);
                 $counter++;
                 //if reached combination value then break loop
                 if ($counter == $combinations[$i]) {
                     break;
                 }
             }
             $content .= '</div>';
         }
     }
     $content .= '</div></div>';
     return $content;
 }
Exemplo n.º 26
0
 function popup_elements($am_elements)
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $am_array = array();
     $am_array[] = array(array("name" => __('Title', 'fusion-core'), "desc" => __('The box title.', 'fusion-core'), "id" => "fusion_title[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Content Box Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Icon Circle Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Icon Circle Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Flip Icon', 'fusion-core'), "desc" => __('Choose to flip the icon.', 'fusion-core'), "id" => "fusion_iconflip[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('' => 'None', 'horizontal' => __('Horizontal', 'fusion-core'), 'vertical' => __('Vertical', 'fusion-core'))), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_iconrotate[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_iconspin[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $reverse_choices), array("name" => __('Icon Image', 'fusion-core'), "desc" => __('To upload your own icon image, deselect the icon above and then upload your icon image', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array()), array("name" => __('Icon Image Width', 'fusion-core'), "desc" => __('If using an icon image, specify the image width in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_width[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Icon Image Height', 'fusion-core'), "desc" => __('If using an icon image, specify the image height in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_height[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Read More Link Url', 'fusion-core'), "desc" => __('Add the link\'s url ex: http://example.com', 'fusion-core'), "id" => "fusion_link[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Read More Link Text', 'fusion-core'), "desc" => __('Insert the text to display as the link', 'fusion-core'), "id" => "fusion_linktext[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Read More Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Content Box Content', 'fusion-core'), "desc" => __('Add content for content box', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array()), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type[0]", "type" => ElementTypeEnum::SELECT, "value" => array(), "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(), "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed[0]", "type" => ElementTypeEnum::SELECT, "value" => array('0.1'), "allowedValues" => $animation_speed));
     $this->config['defaults'] = $am_array[0];
     if ($am_elements) {
         $am_array_copy = $am_array[0];
         $am_array = array();
         foreach ($am_elements as $key => $am_element) {
             $build_am = $am_array_copy;
             foreach ($build_am as $build_am_key => $build_am_element) {
                 $build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
                 $build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
             }
             $am_array[] = $build_am;
         }
     }
     $this->config['subElements'] = array(array("name" => __('Box Layout', 'fusion-core'), "desc" => __('Select the layout for the content box', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "icon-with-title", "allowedValues" => array('icon-with-title' => __('Icon beside Title', 'fusion-core'), 'icon-on-top' => __('Icon on Top of Title', 'fusion-core'), 'icon-on-side' => __('Icon beside Title and Content aligned with Title', 'fusion-core'), 'icon-boxed' => __('Icon Boxed', 'fusion-core'))), array("name" => __('Title Size', 'fusion-core'), "desc" => __('Controls the size of the title. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_title_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Circle', 'fusion-core'), "desc" => __('Controls the circle behind the icon. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_icon_circle", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => array('' => 'Default', 'yes' => 'Yes', 'no' => 'No')), array("name" => __('Icon Size', 'fusion-core'), "desc" => __('Controls the size of the icon.  Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_icon_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Content Alignment', 'fusion-core'), "desc" => __('Works with "Icon beside Title",  "Content aligned with Title" and "Icon Beside Title" layout options.', 'fusion-core'), "id" => "fusion_circle_align", "type" => ElementTypeEnum::SELECT, "value" => array("left"), "allowedValues" => array('left' => 'Left', 'right' => 'Right')), array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Content Box', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
 }
Exemplo n.º 27
0
 function popup_elements()
 {
     $reverse_choices = FusionHelper::get_shortcode_choices_with_default();
     $this->config['subElements'] = array(array("name" => __('Name', 'fusion-core'), "desc" => __('Insert the name of the person.', 'fusion-core'), "id" => "fusion_name", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Title', 'fusion-core'), "desc" => __('Insert the title of the person', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Profile Description', 'fusion-core'), "desc" => __('Enter the content to be displayed', 'fusion-core'), "id" => "fusion_content_wp", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Picture', 'fusion-core'), "desc" => __('Upload an image to display.', 'fusion-core'), "id" => "fusion_picture", "upid" => "1", "type" => ElementTypeEnum::UPLOAD, "value" => ""), array("name" => __('Picture Link URL', 'fusion-core'), "desc" => __('Add the URL the picture will link to, ex: http://example.com.', 'fusion-core'), "id" => "fusion_piclink", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Picture Style Type', 'fusion-core'), "desc" => __('Selected the style type for the picture.', 'fusion-core'), "id" => "fusion_picstyle", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('none' => __('None', 'fusion-core'), 'glow' => __('Glow', 'fusion-core'), 'dropshadow' => __('Drop Shadow', 'fusion-core'), 'bottomshadow' => __('Bottom Shadow', 'fusion-core'))), array("name" => __('Picture Style Color', 'fusion-core'), "desc" => __('For all style types except border. Controls the style color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_picstylecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Picture Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_picborder", "type" => ElementTypeEnum::INPUT, "value" => "0"), array("name" => __('Picture Border Color', 'fusion-core'), "desc" => __('Controls the picture\'s border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_picbordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Picture Border Radius', 'fusion-core'), "desc" => __('Choose the border radius of the person image. In pixels (px), ex: 1px, or "round".  Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_picborderradius", "type" => ElementTypeEnum::INPUT, "value" => "0"), array("name" => __('Boxed Social Icons', 'fusion-core'), "desc" => __('Choose to get a boxed icons. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_iconboxed", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $reverse_choices), array("name" => __('Social Icon Box Radius', 'fusion-core'), "desc" => __('Choose the border radius of the boxed icons. In pixels (px), ex: 1px, or "round". Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconboxedradius", "type" => ElementTypeEnum::INPUT, "value" => "4px"), array("name" => __('Social Icon Custom Colors', 'fusion-core'), "desc" => __('Specify the color of social icons. Use one for all or separate by | symbol. ex: #AA0000|#00AA00|#0000AA. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Social Icon Custom Box Colors', 'fusion-core'), "desc" => __('Specify the box color of social icons. Use one for all or separate by | symbol. ex: #AA0000|#00AA00|#0000AA. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_boxcolor", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Social Icon Tooltip Position', 'fusion-core'), "desc" => __('Choose the display position for tooltips. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_icontooltip", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array(' ' => __('Default', 'fusion-core'), 'top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'Right' => __('Right', 'fusion-core'))), array("name" => __('Email Address', 'fusion-core'), "desc" => __('Insert an email address to display the email icon', 'fusion-core'), "id" => "fusion_email", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Facebook Link', 'fusion-core'), "desc" => __('Insert your custom Facebook link', 'fusion-core'), "id" => "fusion_facebook", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Twitter Link', 'fusion-core'), "desc" => __('Insert your custom Twitter link', 'fusion-core'), "id" => "fusion_twitter", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Instagram Link', 'fusion-core'), "desc" => __('Insert your custom Instagram link', 'fusion-core'), "id" => "fusion_instagram", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Dribbble Link', 'fusion-core'), "desc" => __('Insert your custom Dribbble link', 'fusion-core'), "id" => "fusion_dribbble", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Google+ Link', 'fusion-core'), "desc" => __('Insert your custom Google+ link', 'fusion-core'), "id" => "fusion_google", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('LinkedIn Link', 'fusion-core'), "desc" => __('Insert your custom LinkedIn link', 'fusion-core'), "id" => "fusion_linkedin", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Blogger Link', 'fusion-core'), "desc" => __('Insert your custom Blogger link', 'fusion-core'), "id" => "fusion_blogger", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Tumblr Link', 'fusion-core'), "desc" => __('Insert your custom Tumblr link', 'fusion-core'), "id" => "fusion_tumblr", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Reddit Link', 'fusion-core'), "desc" => __('Insert your custom Reddit link', 'fusion-core'), "id" => "fusion_reddit", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Yahoo Link', 'fusion-core'), "desc" => __('Insert your custom Yahoo link', 'fusion-core'), "id" => "fusion_yahoo", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Deviantart Link', 'fusion-core'), "desc" => __('Insert your custom Deviantart link', 'fusion-core'), "id" => "fusion_deviantart", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Vimeo Link', 'fusion-core'), "desc" => __('Insert your custom Vimeo link', 'fusion-core'), "id" => "fusion_vimeo", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Youtube Link', 'fusion-core'), "desc" => __('Insert your custom Youtube link', 'fusion-core'), "id" => "fusion_youtube", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Pinterst Link', 'fusion-core'), "desc" => __('Insert your custom Pinterest link', 'fusion-core'), "id" => "fusion_pinterest", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('RSS Link', 'fusion-core'), "desc" => __('Insert your custom RSS link', 'fusion-core'), "id" => "fusion_rss", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Digg Link', 'fusion-core'), "desc" => __('Insert your custom Digg link', 'fusion-core'), "id" => "fusion_digg", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Flickr Link', 'fusion-core'), "desc" => __('Insert your custom Flickr link', 'fusion-core'), "id" => "fusion_flickr", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Forrst Link', 'fusion-core'), "desc" => __('Insert your custom Forrst link', 'fusion-core'), "id" => "fusion_forrst", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Myspace Link', 'fusion-core'), "desc" => __('Insert your custom Myspace link', 'fusion-core'), "id" => "fusion_myspace", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Skype Link', 'fusion-core'), "desc" => __('Insert your custom Skype link', 'fusion-core'), "id" => "fusion_skype", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('PayPal Link', 'fusion-core'), "desc" => __('Insert your custom PayPal link', 'fusion-core'), "id" => "fusion_paypal", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Dropbox Link', 'fusion-core'), "desc" => __('Insert your custom Dropbox link', 'fusion-core'), "id" => "fusion_dropbox", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('SoundCloud Link', 'fusion-core'), "desc" => __('Insert your custom SoundCloud link', 'fusion-core'), "id" => "fusion_soundcloud", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('VK Link', 'fusion-core'), "desc" => __('Insert your custom VK link', 'fusion-core'), "id" => "fusion_vk", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Exemplo n.º 28
0
 function popup_elements()
 {
     $reverse_choices = FusionHelper::get_shortcode_choices_with_default();
     $this->config['subElements'] = array(array("name" => __('Tagline', 'fusion-core'), "desc" => __('The title tagline that will display', 'fusion-core'), "id" => "fusion_tagline", "type" => ElementTypeEnum::INPUT, "value" => __('Share This Story, Choose Your Platform!', 'fusion-core')), array("name" => __('Tagline Color', 'fusion-core'), "desc" => __('Controls the text color. Leave blank for theme option selection', 'fusion-core'), "id" => "fusion_taglinecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Title', 'fusion-core'), "desc" => __('The post title that will be shared', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link to Share', 'fusion-core'), "desc" => "", "id" => "fusion_link", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Description', 'fusion-core'), "desc" => __('The description that will be shared', 'fusion-core'), "id" => "fusion_description", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Boxed Social Icons', 'fusion-core'), "desc" => __('Choose to get a boxed icons. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_iconboxed", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $reverse_choices), array("name" => __('Social Icon Box Radius', 'fusion-core'), "desc" => __('Choose the radius of the boxed icons. In pixels (px), ex: 1px, or "round". Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconboxedradius", "type" => ElementTypeEnum::INPUT, "value" => "4px"), array("name" => __('Social Icon Custom Colors', 'fusion-core'), "desc" => __('Specify the color of social icons. Use one for all or separate by | symbol. ex: #AA0000|#00AA00|#0000AA. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Social Icon Custom Box Colors', 'fusion-core'), "desc" => __('Specify the box color of social icons. Use one for all or separate by | symbol. ex: #AA0000|#00AA00|#0000AA. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_boxcolor", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Social Icon Tooltip Position', 'fusion-core'), "desc" => __('Choose the display position for tooltips. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_icontooltip", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => 'Default', 'top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'Right' => __('Right', 'fusion-core'))), array("name" => __('Choose Image to Share on Pinterest', 'fusion-core'), "desc" => "", "id" => "fusion_pinterest_image", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Name Of Modal', 'fusion-core'), "desc" => __('Needs to be a unique identifier (lowercase), used for button or modal_text_link shortcode to open the modal. ex: mymodal', 'fusion-core'), "id" => "fusion_name", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Modal Heading', 'fusion-core'), "desc" => __('Heading text for the modal.', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Size Of Modal', 'fusion-core'), "desc" => __('Select the modal window size.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('small' => __('Small', 'fusion-core'), 'large' => __('Large', 'fusion-core'))), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the modal background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_background", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the modal border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Show Footer', 'fusion-core'), "desc" => __('Choose to show the modal footer with close button.', 'fusion-core'), "id" => "fusion_showfooter", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Contents of Modal', 'fusion-core'), "desc" => __('Add your content to be displayed in modal.', 'fusion-core'), "id" => "fusion_content_wp", "type" => ElementTypeEnum::HTML_EDITOR, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $reverse_choices = FusionHelper::get_reversed_choice_data();
     $this->config['subElements'] = array(array("name" => __('Video ID', 'fusion-core'), "desc" => "For example the Video ID for<br>http://www.youtube.com/LOfeCR7KqUs is <br>LOfeCR7KqUs", "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Width', 'fusion-core'), "desc" => __('In pixels but only enter a number, ex: 600', 'fusion-core'), "id" => "width", "type" => ElementTypeEnum::INPUT, "value" => "600"), array("name" => __('Height', 'fusion-core'), "desc" => __('In pixels but only enter a number, ex: 350', 'fusion-core'), "id" => "height", "type" => ElementTypeEnum::INPUT, "value" => "350"), array("name" => __('Autoplay Video', 'fusion-core'), "desc" => __('Set to yes to make video autoplaying', 'fusion-core'), "id" => "autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $reverse_choices), array("name" => __('AdditionalAPI Parameter', 'fusion-core'), "desc" => __('Use additional API parameter, for example &rel=0 to disable related videos', 'fusion-core'), "id" => "api_params", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }