Ejemplo n.º 1
0
/*-----------------------------------------------------------------------------------*/
/*	Tooltip Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['tooltip'] = array('no_preview' => true, 'params' => array('title' => array('std' => '', 'type' => 'text', 'label' => __('Tooltip Text', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Insert the text that displays in the tooltip'), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Content', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Insert the text that will activate the tooltip hover')), 'shortcode' => '[tooltip title="{{title}}"]{{content}}[/tooltip]', 'popup_title' => __('Tooltip Shortcode', FUSION_SHORTCODES_TEXTDOMAIN));
/*-----------------------------------------------------------------------------------*/
/*	Vimeo Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['vimeo'] = array('no_preview' => true, 'params' => array('id' => array('std' => '', 'type' => 'text', 'label' => __('Video ID', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'For example the Video ID for <br />https://vimeo.com/75230326 is 75230326'), 'width' => array('std' => '600', 'type' => 'text', 'label' => __('Width', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'In pixels but only enter a number, ex: 600'), 'height' => array('std' => '350', 'type' => 'text', 'label' => __('Height', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'In pixels but enter a number, ex: 350')), 'shortcode' => '[vimeo id="{{id}}" width="{{width}}" height="{{height}}"]', 'popup_title' => __('Vimeo Shortcode', FUSION_SHORTCODES_TEXTDOMAIN));
/*-----------------------------------------------------------------------------------*/
/*	Woo Featured Slider Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['woofeatured'] = array('no_preview' => true, 'params' => array('info' => array('std' => 'No settings required. Insert the shortcode and your featured products will be pulled. Featured products are products that you have "Starred" in the WooCommerce settings. To set featured products, please see this post,<br /><a href="http://theme-fusion.com/knowledgebase/how-to-use-woocommerce-featured-products-slider/" target="_blank">Knowledge Base Article for Featured Products</a>', 'type' => 'info')), 'shortcode' => '[featured_products_slider]', 'popup_title' => __('Woocommerce Featured Products Slider Shortcode', FUSION_SHORTCODES_TEXTDOMAIN));
/*-----------------------------------------------------------------------------------*/
/*	Woo Products Slider Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['wooproducts'] = array('params' => array('picture_size' => array('type' => 'select', 'label' => __('Picture Size', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => __('fixed = width and height will be fixed <br />auto = width and height will adjust to the image.', FUSION_SHORTCODES_TEXTDOMAIN), 'options' => array('fixed' => 'Fixed', 'auto' => 'Auto')), 'cat_slug' => array('type' => 'multiple_select', 'label' => __('Categories', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => __('Select a category or leave blank for all', FUSION_SHORTCODES_TEXTDOMAIN), 'options' => fusion_shortcodes_categories('product_cat')), 'number_posts' => array('std' => 5, 'type' => 'select', 'label' => __('Number of Products', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Select the number of products to display', 'options' => fusion_shortcodes_range(20, false)), 'show_cats' => array('type' => 'select', 'label' => __('Show Categories', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Choose to show or hide the categories', 'options' => $reverse_choices), 'show_price' => array('type' => 'select', 'label' => __('Show Price', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Choose to show or hide the price', 'options' => $reverse_choices), 'show_buttons' => array('type' => 'select', 'label' => __('Show Buttons', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Choose to show or hide the icon buttons', 'options' => $reverse_choices)), 'shortcode' => '[products_slider picture_size="{{picture_size}}" cat_slug="{{cat_slug}}" number_posts="{{number_posts}}" show_cats="{{show_cats}}" show_price="{{show_price}}" show_buttons="{{show_buttons}}"]', 'popup_title' => __('Woocommerce Products Slider Shortcode', FUSION_SHORTCODES_TEXTDOMAIN), 'no_preview' => true);
/*-----------------------------------------------------------------------------------*/
/*	Youtube Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['youtube'] = array('no_preview' => true, 'params' => array('id' => array('std' => '', 'type' => 'text', 'label' => __('Video ID', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'For example the Video ID for <br />http://www.youtube.com/LOfeCR7KqUs is LOfeCR7KqUs'), 'width' => array('std' => '600', 'type' => 'text', 'label' => __('Width', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'In pixels but only enter a number, ex: 600'), 'height' => array('std' => '350', 'type' => 'text', 'label' => __('Height', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'In pixels but only enter a number, ex: 350')), 'shortcode' => '[youtube id="{{id}}" width="{{width}}" height="{{height}}"]', 'popup_title' => __('Vimeo Shortcode', FUSION_SHORTCODES_TEXTDOMAIN));
/*-----------------------------------------------------------------------------------*/
/*	Columns Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['columns'] = array('params' => array('select_shortcode' => $select_shortcode), 'shortcode' => ' {{child_shortcode}} ', 'popup_title' => __('Insert Columns Shortcode', FUSION_SHORTCODES_TEXTDOMAIN), 'no_preview' => true, 'child_shortcode' => array('params' => array('column' => array('type' => 'select', 'label' => __('Column Type', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => __('Select the width of the column', FUSION_SHORTCODES_TEXTDOMAIN), 'options' => array('one_third' => 'One Third', 'two_third' => 'Two Thirds', 'one_half' => 'One Half', 'one_fourth' => 'One Fourth', 'three_fourth' => 'Three Fourth')), 'last' => array('type' => 'select', 'label' => __('Last Column', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Choose if the column is last in a set. This has to be set to "Yes" for the last column in a set', 'options' => $reverse_choices), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Column Content', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => __('Insert the column content', FUSION_SHORTCODES_TEXTDOMAIN))), 'shortcode' => '[{{column}} last="{{last}}"]{{content}}[/{{column}}] ', 'clone_button' => __('Add Column', FUSION_SHORTCODES_TEXTDOMAIN)));
/*-----------------------------------------------------------------------------------*/
/*	Pricing Table Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['pricingtable'] = array('no_preview' => true, 'params' => array('type' => array('type' => 'select', 'label' => __('Type', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => __('Select the type of pricing table', FUSION_SHORTCODES_TEXTDOMAIN), 'options' => array('1' => 'Style 1 (Supports 4 Columns)', '2' => 'Style 2 (Supports 3 Columns)')), 'backgroundcolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Background Color', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Leave blank for default'), 'bordercolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Border Color', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Leave blank for default'), 'dividercolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Divider Color', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Leave blank for default'), 'columns' => array('type' => 'select', 'label' => __('Number of Columns', FUSION_SHORTCODES_TEXTDOMAIN), 'desc' => 'Select how many columns to display', 'options' => array('&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;' => '1 Column', '&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;' => '2 Columns', '&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;' => '3 Columns', '&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;[pricing_column title=&quot;Standard&quot;][pricing_price currency=&quot;$&quot; price=&quot;15.55&quot; time=&quot;monthly&quot;][/pricing_price][pricing_row]Feature 1[/pricing_row][pricing_footer]Signup[/pricing_footer][/pricing_column]&lt;br /&gt;' => '4 Columns'))), 'shortcode' => '[pricing_table type="{{type}}" backgroundcolor="{{backgroundcolor}}" bordercolor="{{bordercolor}}" dividercolor="{{dividercolor}}"]{{columns}}[/pricing_table]', 'popup_title' => __('Pricing Table Shortcode', FUSION_SHORTCODES_TEXTDOMAIN));
/*-----------------------------------------------------------------------------------*/
/*	Table Config
/*-----------------------------------------------------------------------------------*/
Ejemplo n.º 2
0
/*-----------------------------------------------------------------------------------*/
/*	Tabs Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['tabs'] = array('no_preview' => true, 'params' => array('layout' => array('type' => 'select', 'label' => __('Layout', 'fusion-core'), 'desc' => __('Choose the layout of the shortcode', 'fusion-core'), 'options' => array('horizontal' => __('Horizontal', 'fusion-core'), 'vertical' => __('Vertical', 'fusion-core'))), 'justified' => array('type' => 'select', 'label' => __('Justify Tabs', 'fusion-core'), 'desc' => __('Choose to get tabs stretched over full shortcode width.', 'fusion-core'), 'options' => $choices), 'backgroundcolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Background Color', 'fusion-core'), 'desc' => __('Controls the background tab color.  Leave blank for theme option selection.', 'fusion-core')), 'inactivecolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Inactive Color', 'fusion-core'), 'desc' => __('Controls the inactive tab color. Leave blank for theme option selection.', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[fusion_tabs layout="{{layout}}" justified="{{justified}}" backgroundcolor="{{backgroundcolor}}" inactivecolor="{{inactivecolor}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/fusion_tabs]', 'popup_title' => __('Insert Tab Shortcode', 'fusion-core'), 'child_shortcode' => array('params' => array('title' => array('std' => __('Title', 'fusion-core'), 'type' => 'text', 'label' => __('Tab Title', 'fusion-core'), 'desc' => __('Title of the tab', 'fusion-core')), 'content' => array('std' => __('Tab Content', 'fusion-core'), 'type' => 'textarea', 'label' => __('Tab Content', 'fusion-core'), 'desc' => __('Add the tabs content', 'fusion-core'))), 'shortcode' => '[fusion_tab title="{{title}}"]{{content}}[/fusion_tab]', 'clone_button' => __('Add Tab', 'fusion-core')));
/*-----------------------------------------------------------------------------------*/
/*	Tagline Box Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['taglinebox'] = array('no_preview' => true, 'params' => array('backgroundcolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Background Color', 'fusion-core'), 'desc' => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core')), 'shadow' => array('type' => 'select', 'label' => __('Shadow', 'fusion-core'), 'desc' => __('Show the shadow below the box', 'fusion-core'), 'options' => $reverse_choices), 'shadowopacity' => array('type' => 'select', 'label' => __('Shadow Opacity', 'fusion-core'), 'desc' => __('Choose the opacity of the shadow', 'fusion-core'), 'options' => $dec_numbers), 'border' => array('std' => '1px', 'type' => 'text', 'label' => __('Border Size', 'fusion-core'), 'desc' => __('In pixels (px), ex: 1px', 'fusion-core')), 'bordercolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Border Color', 'fusion-core'), 'desc' => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core')), 'highlightposition' => array('type' => 'select', 'label' => __('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'), 'options' => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'none' => __('None', 'fusion-core'))), 'contentalignment' => array('type' => 'select', 'label' => __('Content Alignment', 'fusion-core'), 'desc' => __('Choose how the content should be displayed.', 'fusion-core'), 'options' => array('left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), 'button' => array('std' => '', 'type' => 'text', 'label' => __('Button Text', 'fusion-core'), 'desc' => __('Insert the text that will display in the button', 'fusion-core')), 'url' => array('std' => '', 'type' => 'text', 'label' => __('Link', 'fusion-core'), 'desc' => __('The url the button will link to', 'fusion-core')), 'target' => array('type' => 'select', 'label' => __('Link Target', 'fusion-core'), 'desc' => __('_self = open in same window <br /> _blank = open in new window', 'fusion-core'), 'options' => array('_self' => '_self', '_blank' => '_blank')), 'modal' => array('std' => '', 'type' => 'text', 'label' => __('Modal Window Anchor', 'fusion-core'), 'desc' => __('Add the class name of the modal window you want to open on button click.', 'fusion-core')), 'buttonsize' => array('type' => 'select', 'label' => __('Button Size', 'fusion-core'), 'desc' => __('Select the button\'s size.', 'fusion-core'), 'options' => array('small' => __('Small', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large' => __('Large', 'fusion-core'), 'xlarge' => __('XLarge', 'fusion-core'))), 'buttontype' => array('type' => 'select', 'label' => __('Button Type', 'fusion-core'), 'desc' => __('Select the button\'s type.', 'fusion-core'), 'options' => array('flat' => __('Flat', 'fusion-core'), '3d' => '3D')), 'buttonshape' => array('type' => 'select', 'label' => __('Button Shape', 'fusion-core'), 'desc' => __('Select the button\'s shape.', 'fusion-core'), 'options' => array('square' => __('Square', 'fusion-core'), 'pill' => __('Pill', 'fusion-core'), 'round' => __('Round', 'fusion-core'))), 'buttoncolor' => array('type' => 'select', 'label' => __('Button Color', 'fusion-core'), 'desc' => __('Choose the button color <br />Default uses theme option selection', 'fusion-core'), 'options' => 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'))), 'title' => array('type' => 'textarea', 'label' => __('Tagline Title', 'fusion-core'), 'desc' => __('Insert the title text', 'fusion-core'), 'std' => __('Title', 'fusion-core')), 'description' => array('std' => '', 'type' => 'textarea', 'label' => __('Tagline Description', 'fusion-core'), 'desc' => __('Insert the description text', 'fusion-core')), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('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')), 'animation_type' => array('type' => 'select', 'label' => __('Animation Type', 'fusion-core'), 'desc' => __('Select the type on animation to use on the shortcode', 'fusion-core'), 'options' => array('0' => __('None', 'fusion-core'), 'bounce' => __('Bounce', 'fusion-core'), 'fade' => __('Fade', 'fusion-core'), 'flash' => __('Flash', 'fusion-core'), 'shake' => __('Shake', 'fusion-core'), 'slide' => __('Slide', 'fusion-core'))), 'animation_direction' => array('type' => 'select', 'label' => __('Direction of Animation', 'fusion-core'), 'desc' => __('Select the incoming direction for the animation', 'fusion-core'), 'options' => array('down' => __('Down', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'up' => __('Up', 'fusion-core'))), 'animation_speed' => array('type' => 'select', 'std' => '', 'label' => __('Speed of Animation', 'fusion-core'), 'desc' => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), 'options' => $dec_numbers), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[tagline_box backgroundcolor="{{backgroundcolor}}" shadow="{{shadow}}" shadowopacity="{{shadowopacity}}" border="{{border}}" bordercolor="{{bordercolor}}" highlightposition="{{highlightposition}}" content_alignment="{{contentalignment}}" link="{{url}}" linktarget="{{target}}" modal="{{modal}}" button_size="{{buttonsize}}" button_shape="{{buttonshape}}" button_type="{{buttontype}}" buttoncolor="{{buttoncolor}}" button="{{button}}" title="{{title}}" description="{{description}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}" class="{{class}}" id="{{id}}"]{{content}}[/tagline_box]', 'popup_title' => __('Insert Tagline Box Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Testimonials Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['testimonials'] = array('no_preview' => true, 'params' => array('backgroundcolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Background Color', 'fusion-core'), 'desc' => __('Controls the background color.  Leave blank for theme option selection.', 'fusion-core')), 'textcolor' => array('type' => 'colorpicker', 'std' => '', 'label' => __('Text Color', 'fusion-core'), 'desc' => __('Controls the text color. Leave blank for theme option selection.', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[testimonials backgroundcolor="{{backgroundcolor}}" textcolor="{{textcolor}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/testimonials]', 'popup_title' => __('Insert Testimonials Shortcode', 'fusion-core'), 'child_shortcode' => array('params' => array('name' => array('std' => '', 'type' => 'text', 'label' => __('Name', 'fusion-core'), 'desc' => __('Insert the name of the person.', 'fusion-core')), 'avatar' => array('type' => 'select', 'label' => __('Avatar', 'fusion-core'), 'desc' => __('Choose which kind of Avatar to be displayed.', 'fusion-core'), 'options' => array('male' => __('Male', 'fusion-core'), 'female' => __('Female', 'fusion-core'), 'image' => __('Image', 'fusion-core'), 'none' => __('None', 'fusion-core'))), 'image' => array('type' => 'uploader', 'label' => __('Custom Avatar', 'fusion-core'), 'desc' => __('Upload a custom avatar image.', 'fusion-core')), 'company' => array('std' => '', 'type' => 'text', 'label' => __('Company', 'fusion-core'), 'desc' => __('Insert the name of the company.', 'fusion-core')), 'link' => array('std' => '', 'type' => 'text', 'label' => __('Link', 'fusion-core'), 'desc' => __('Add the url the company name will link to.', 'fusion-core')), 'target' => array('type' => 'select', 'label' => __('Target', 'fusion-core'), 'desc' => __('_self = open in same window <br />_blank = open in new window.', 'fusion-core'), 'options' => array('_self' => '_self', '_blank' => '_blank')), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Testimonial Content', 'fusion-core'), 'desc' => __('Add the testimonial content', 'fusion-core'))), 'shortcode' => '[testimonial name="{{name}}" avatar="{{avatar}}" image="{{image}}" company="{{company}}" link="{{link}}" target="{{target}}"]{{content}}[/testimonial]', 'clone_button' => __('Add Testimonial', 'fusion-core')));
/*-----------------------------------------------------------------------------------*/
/*	Title Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['title'] = array('no_preview' => true, 'params' => array('size' => array('type' => 'select', 'label' => __('Title Size', 'fusion-core'), 'desc' => __('Choose the title size, H1-H6', 'fusion-core'), 'options' => fusion_shortcodes_range(6, false)), 'contentalign' => array('type' => 'select', 'label' => __('Title Alignment', 'fusion-core'), 'desc' => __('Choose to align the heading left or right.', 'fusion-core'), 'options' => array('left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), 'separator' => array('type' => 'select', 'label' => __('Separator', 'fusion-core'), 'desc' => __('Choose the kind of the title separator you want to use.', 'fusion-core'), 'options' => array('single' => __('Single', 'fusion-core'), 'double' => __('Double', 'fusion-core'), 'underline' => __('Underline', 'fusion-core'))), 'sepstyle' => array('type' => 'select', 'label' => __('Separator Style', 'fusion-core'), 'desc' => __('Choose the style of the title separator.', 'fusion-core'), 'options' => array('solid' => __('Solid', 'fusion-core'), 'dashed' => __('Dashed', 'fusion-core'), 'dotted' => __('Dotted', 'fusion-core'))), 'sepcolor' => array('type' => 'colorpicker', 'label' => __('Separator Color', 'fusion-core'), 'desc' => __('Controls the separator color.  Leave blank for theme option selection.', 'fusion-core')), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Title', 'fusion-core'), 'desc' => __('Insert the title text', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[title size="{{size}}" content_align="{{contentalign}}" style_type="{{separator}} {{sepstyle}}" sep_color="{{sepcolor}}" class="{{class}}" id="{{id}}"]{{content}}[/title]', 'popup_title' => __('Sharing Box Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Toggles Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['toggles'] = array('no_preview' => true, 'params' => array('class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[accordian class="{{class}}" id="{{id}}"]{{child_shortcode}}[/accordian]', 'popup_title' => __('Insert Toggles Shortcode', 'fusion-core'), 'child_shortcode' => array('params' => array('title' => array('std' => '', 'type' => 'text', 'label' => __('Title', 'fusion-core'), 'desc' => __('Insert the toggle title', 'fusion-core')), 'open' => array('type' => 'select', 'label' => __('Open by Default', 'fusion-core'), 'desc' => __('Choose to have the toggle open when page loads', 'fusion-core'), 'options' => $reverse_choices), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Toggle Content', 'fusion-core'), 'desc' => __('Insert the toggle content', 'fusion-core'))), 'shortcode' => '[toggle title="{{title}}" open="{{open}}"]{{content}}[/toggle]', 'clone_button' => __('Add Toggle', 'fusion-core')));
/*-----------------------------------------------------------------------------------*/
/*	Tooltip Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['tooltip'] = array('no_preview' => true, 'params' => array('title' => array('std' => '', 'type' => 'text', 'label' => __('Tooltip Text', 'fusion-core'), 'desc' => __('Insert the text that displays in the tooltip', 'fusion-core')), 'placement' => array('type' => 'select', 'label' => __('Tooltip Position', 'fusion-core'), 'desc' => __('Choose the display position.', 'fusion-core'), 'options' => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'Right' => __('Right', 'fusion-core'))), 'trigger' => array('type' => 'select', 'label' => __('Tooltip Trigger', 'fusion-core'), 'desc' => __('Choose action to trigger the tooltip.', 'fusion-core'), 'options' => array('hover' => __('Hover', 'fusion-core'), 'click' => __('Click', 'fusion-core'))), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Content', 'fusion-core'), 'desc' => __('Insert the text that will activate the tooltip hover', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[tooltip title="{{title}}" placement="{{placement}}" trigger="{{trigger}}" class="{{class}}" id="{{id}}"]{{content}}[/tooltip]', 'popup_title' => __('Tooltip Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Vimeo Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['vimeo'] = array('no_preview' => true, 'params' => array('id' => array('std' => '', 'type' => 'text', 'label' => __('Video ID', 'fusion-core'), 'desc' => __('For example the Video ID for <br />https://vimeo.com/75230326 is 75230326', 'fusion-core')), 'width' => array('std' => '600', 'type' => 'text', 'label' => __('Width', 'fusion-core'), 'desc' => __('In pixels but only enter a number, ex: 600', 'fusion-core')), 'height' => array('std' => '350', 'type' => 'text', 'label' => __('Height', 'fusion-core'), 'desc' => __('In pixels but enter a number, ex: 350', 'fusion-core')), 'autoplay' => array('type' => 'select', 'label' => __('Autoplay Video', 'fusion-core'), 'desc' => __('Set to yes to make video autoplaying', 'fusion-core'), 'options' => $reverse_choices), 'apiparams' => array('std' => '', 'type' => 'text', 'label' => __('AdditionalAPI Parameter', 'fusion-core'), 'desc' => __('Use additional API parameter, for example &title=0 to disable title on video. VimeoPlus account may be required.', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[vimeo id="{{id}}" width="{{width}}" height="{{height}}" autoplay="{{autoplay}}" api_params="{{apiparams}}" class="{{class}}"]', 'popup_title' => __('Vimeo Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Woo Featured Slider Config
/*-----------------------------------------------------------------------------------*/
Ejemplo n.º 3
0
/*	Toggles Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['toggles'] = array('no_preview' => true, 'params' => array('divider_line' => array('std' => 'default', 'type' => 'select', 'label' => __('Divider Line', 'fusion-core'), 'desc' => __('Choose to display a divider line between each item.', 'fusion-core'), 'options' => array('' => 'Default', 'yes' => 'Yes', 'no' => 'No')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[accordian divider_line="{{divider_line}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/accordian]', 'popup_title' => __('Insert Toggles Shortcode', 'fusion-core'), 'child_shortcode' => array('params' => array('title' => array('std' => '', 'type' => 'text', 'label' => __('Title', 'fusion-core'), 'desc' => __('Insert the toggle title', 'fusion-core')), 'open' => array('type' => 'select', 'label' => __('Open by Default', 'fusion-core'), 'desc' => __('Choose to have the toggle open when page loads', 'fusion-core'), 'options' => $reverse_choices), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Toggle Content', 'fusion-core'), 'desc' => __('Insert the toggle content', 'fusion-core'))), 'shortcode' => '[toggle title="{{title}}" open="{{open}}"]{{content}}[/toggle]', 'clone_button' => __('Add Toggle', 'fusion-core')));
/*-----------------------------------------------------------------------------------*/
/*	Tooltip Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['tooltip'] = array('no_preview' => true, 'params' => array('title' => array('std' => '', 'type' => 'text', 'label' => __('Tooltip Text', 'fusion-core'), 'desc' => __('Insert the text that displays in the tooltip', 'fusion-core')), 'placement' => array('type' => 'select', 'label' => __('Tooltip Position', 'fusion-core'), 'desc' => __('Choose the display position.', 'fusion-core'), 'options' => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'Right' => __('Right', 'fusion-core'))), 'trigger' => array('type' => 'select', 'label' => __('Tooltip Trigger', 'fusion-core'), 'desc' => __('Choose action to trigger the tooltip.', 'fusion-core'), 'options' => array('hover' => __('Hover', 'fusion-core'), 'click' => __('Click', 'fusion-core'))), 'content' => array('std' => '', 'type' => 'textarea', 'label' => __('Content', 'fusion-core'), 'desc' => __('Insert the text that will activate the tooltip hover', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[tooltip title="{{title}}" placement="{{placement}}" trigger="{{trigger}}" class="{{class}}" id="{{id}}"]{{content}}[/tooltip]', 'popup_title' => __('Tooltip Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Vimeo Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['vimeo'] = array('no_preview' => true, 'params' => array('id' => array('std' => '', 'type' => 'text', 'label' => __('Video ID', 'fusion-core'), 'desc' => __('For example the Video ID for <br />https://vimeo.com/75230326 is 75230326', 'fusion-core')), 'width' => array('std' => '600', 'type' => 'text', 'label' => __('Width', 'fusion-core'), 'desc' => __('In pixels but only enter a number, ex: 600', 'fusion-core')), 'height' => array('std' => '350', 'type' => 'text', 'label' => __('Height', 'fusion-core'), 'desc' => __('In pixels but enter a number, ex: 350', 'fusion-core')), 'autoplay' => array('type' => 'select', 'label' => __('Autoplay Video', 'fusion-core'), 'desc' => __('Set to yes to make video autoplaying', 'fusion-core'), 'options' => $reverse_choices), 'apiparams' => array('std' => '', 'type' => 'text', 'label' => __('AdditionalAPI Parameter', 'fusion-core'), 'desc' => __('Use additional API parameter, for example &title=0 to disable title on video. VimeoPlus account may be required.', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[vimeo id="{{id}}" width="{{width}}" height="{{height}}" autoplay="{{autoplay}}" api_params="{{apiparams}}" class="{{class}}"]', 'popup_title' => __('Vimeo Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Widget Area Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['fusion_widget_area'] = array('params' => array('name' => array('std' => '', 'type' => 'select', 'label' => __('Widget Area Name', 'fusion-core'), 'desc' => __('Choose a background color for the widget area.', 'fusion-core'), 'options' => get_sidebars()), 'background_color' => array('type' => 'colorpicker', 'label' => __('Background Color', 'fusion-core'), 'desc' => __('Choose a background color for the widget area.', 'fusion-core')), 'padding' => array('std' => '', 'type' => 'text', 'label' => __('Padding', 'fusion-core'), 'desc' => __('In pixels or percentage, ex: 10px or 10%.', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[fusion_widget_area name="{{name}}" background_color="{{background_color}}" padding="{{padding}}" class="{{class}}" id="{{id}}"][/fusion_widget_area]', 'popup_title' => __('Widget Area Shortcode', 'fusion-core'), 'no_preview' => true);
/*-----------------------------------------------------------------------------------*/
/*	Woo Featured Slider Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['woofeatured'] = array('no_preview' => true, 'params' => array('picture_size' => array('type' => 'select', 'label' => __('Picture Size', 'fusion-core'), 'desc' => __('fixed = width and height will be fixed <br />auto = width and height will adjust to the image.', 'fusion-core'), 'options' => array('auto' => __('Auto', 'fusion-core'), 'fixed' => __('Fixed', 'fusion-core'))), 'carousel_layout' => array('type' => 'select', 'label' => __('Carousel Layout', 'fusion-core'), 'desc' => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), 'options' => array('title_on_rollover' => __('Title on rollover', 'fusion-core'), 'title_below_image' => __('Title below image', 'fusion-core'))), 'autoplay' => array('type' => 'select', 'label' => __('Autoplay', 'fusion-core'), 'desc' => __('Choose to autoplay the carousel.', 'fusion-core'), 'options' => $reverse_choices), 'columns' => array('std' => '5', 'type' => 'select', 'label' => __('Maximum Columns', 'fusion-core'), 'desc' => __('Select the number of max columns to display.', 'fusion-core'), 'options' => fusion_shortcodes_range(6, false)), 'column_spacing' => array('std' => '10', 'type' => 'text', 'label' => __('Column Spacing', 'fusion-core'), "desc" => __("Insert the amount of spacing between items without 'px'. ex: 13.", "fusion-core")), 'scroll_items' => array('std' => '', 'type' => 'text', 'label' => __('Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", "fusion-core")), 'show_nav' => array('type' => 'select', 'label' => __('Show Navigation', 'fusion-core'), 'desc' => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), 'options' => $choices), 'mouse_scroll' => array('type' => 'select', 'label' => __('Mouse Scroll', 'fusion-core'), 'desc' => __('Choose to enable mouse drag control on the carousel.', 'fusion-core'), 'options' => $reverse_choices), 'show_cats' => array('type' => 'select', 'label' => __('Show Categories', 'fusion-core'), 'desc' => __('Choose to show or hide the categories', 'fusion-core'), 'options' => $reverse_choices), 'show_price' => array('type' => 'select', 'label' => __('Show Price', 'fusion-core'), 'desc' => __('Choose to show or hide the price', 'fusion-core'), 'options' => $reverse_choices), 'show_buttons' => array('type' => 'select', 'label' => __('Show Buttons', 'fusion-core'), 'desc' => __('Choose to show or hide the icon buttons', 'fusion-core'), 'options' => $reverse_choices), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[featured_products_slider picture_size="{{picture_size}}" carousel_layout="{{carousel_layout}}" autoplay="{{autoplay}}" columns="{{columns}}" column_spacing="{{column_spacing}}" scroll_items="{{scroll_items}}" show_nav="{{show_nav}}" mouse_scroll="{{mouse_scroll}}" show_price="{{show_price}}" show_buttons="{{show_buttons}}" class="{{class}}" id="{{id}}"]', 'popup_title' => __('Woocommerce Featured Products Slider Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Woo Products Slider Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['wooproducts'] = array('params' => array('picture_size' => array('type' => 'select', 'label' => __('Picture Size', 'fusion-core'), 'desc' => __('fixed = width and height will be fixed <br />auto = width and height will adjust to the image.', 'fusion-core'), 'options' => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), 'cat_slug' => array('type' => 'multiple_select', 'label' => __('Categories', 'fusion-core'), 'desc' => __('Select a category or leave blank for all', 'fusion-core'), 'options' => fusion_shortcodes_categories('product_cat')), 'number_posts' => array('std' => 5, 'type' => 'text', 'label' => __('Number of Products', 'fusion-core'), 'desc' => __('Select the number of products to display', 'fusion-core')), 'carousel_layout' => array('type' => 'select', 'label' => __('Carousel Layout', 'fusion-core'), 'desc' => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), 'options' => array('title_on_rollover' => __('Title on rollover', 'fusion-core'), 'title_below_image' => __('Title below image', 'fusion-core'))), 'autoplay' => array('type' => 'select', 'label' => __('Autoplay', 'fusion-core'), 'desc' => __('Choose to autoplay the carousel.', 'fusion-core'), 'options' => $reverse_choices), 'columns' => array('std' => '5', 'type' => 'select', 'label' => __('Maximum Columns', 'fusion-core'), 'desc' => __('Select the number of max columns to display.', 'fusion-core'), 'options' => fusion_shortcodes_range(6, false)), 'column_spacing' => array('std' => '13', 'type' => 'text', 'label' => __('Column Spacing', 'fusion-core'), "desc" => __("Insert the amount of spacing between items without 'px'. ex: 13.", "fusion-core")), 'scroll_items' => array('std' => '', 'type' => 'text', 'label' => __('Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", "fusion-core")), 'show_nav' => array('type' => 'select', 'label' => __('Show Navigation', 'fusion-core'), 'desc' => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), 'options' => $choices), 'mouse_scroll' => array('type' => 'select', 'label' => __('Mouse Scroll', 'fusion-core'), 'desc' => __('Choose to enable mouse drag control on the carousel.', 'fusion-core'), 'options' => $reverse_choices), 'show_cats' => array('type' => 'select', 'label' => __('Show Categories', 'fusion-core'), 'desc' => __('Choose to show or hide the categories', 'fusion-core'), 'options' => $choices), 'show_price' => array('type' => 'select', 'label' => __('Show Price', 'fusion-core'), 'desc' => __('Choose to show or hide the price', 'fusion-core'), 'options' => $choices), 'show_buttons' => array('type' => 'select', 'label' => __('Show Buttons', 'fusion-core'), 'desc' => __('Choose to show or hide the icon buttons', 'fusion-core'), 'options' => $choices), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[products_slider picture_size="{{picture_size}}" cat_slug="{{cat_slug}}" number_posts="{{number_posts}}" carousel_layout="{{carousel_layout}}" autoplay="{{autoplay}}" columns="{{columns}}" column_spacing="{{column_spacing}}" scroll_items="{{scroll_items}}" show_nav="{{show_nav}}" mouse_scroll="{{mouse_scroll}}" show_price="{{show_price}}" show_buttons="{{show_buttons}}" class="{{class}}" id="{{id}}"]', 'popup_title' => __('Woocommerce Products Slider Shortcode', 'fusion-core'), 'no_preview' => true);
/*-----------------------------------------------------------------------------------*/
/*	Youtube Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['youtube'] = array('no_preview' => true, 'params' => array('id' => array('std' => '', 'type' => 'text', 'label' => __('Video ID', 'fusion-core'), 'desc' => __('For example the Video ID for <br />http://www.youtube.com/LOfeCR7KqUs is LOfeCR7KqUs', 'fusion-core')), 'width' => array('std' => '600', 'type' => 'text', 'label' => __('Width', 'fusion-core'), 'desc' => __('In pixels but only enter a number, ex: 600', 'fusion-core')), 'height' => array('std' => '350', 'type' => 'text', 'label' => __('Height', 'fusion-core'), 'desc' => __('In pixels but only enter a number, ex: 350', 'fusion-core')), 'autoplay' => array('type' => 'select', 'label' => __('Autoplay Video', 'fusion-core'), 'desc' => __('Set to yes to make video autoplaying', 'fusion-core'), 'options' => $reverse_choices), 'apiparams' => array('std' => '', 'type' => 'text', 'label' => __('AdditionalAPI Parameter', 'fusion-core'), 'desc' => __('Use additional API parameter, for example &rel=0 to disable related videos', 'fusion-core')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[youtube id="{{id}}" width="{{width}}" height="{{height}}" autoplay="{{autoplay}}" api_params="{{apiparams}}" class="{{class}}"]', 'popup_title' => __('Youtube Shortcode', 'fusion-core'));
/*-----------------------------------------------------------------------------------*/
/*	Fusion Slider Config
/*-----------------------------------------------------------------------------------*/
$fusion_shortcodes['fusionslider'] = array('no_preview' => true, 'params' => array('name' => array('type' => 'select', 'label' => __('Slider Name', 'fusion-core'), 'desc' => __('This is the shortcode name that can be used in the post content area. It is usually all lowercase and contains only letters, numbers, and hyphens. ex: "fusionslider_slidernamehere"', 'fusion-core'), 'options' => fusion_shortcodes_categories('slide-page')), 'class' => array('std' => '', 'type' => 'text', 'label' => __('CSS Class', 'fusion-core'), 'desc' => __('Add a class to the wrapping HTML element.', 'fusion-core')), 'id' => array('std' => '', 'type' => 'text', 'label' => __('CSS ID', 'fusion-core'), 'desc' => __('Add an ID to the wrapping HTML element.', 'fusion-core'))), 'shortcode' => '[fusionslider id="{{id}}" class="{{class}}" name="{{name}}"][/fusionslider]', 'popup_title' => __('Fusion Slider Shortcode', 'fusion-core'));
Ejemplo n.º 4
0
				'fixed' => 'Fixed',
				'auto' => 'Auto'
			)
		),
		'cat_slug' => array(
			'type' => 'multiple_select',
			'label' => __( 'Categories', 'fusion-core' ),
			'desc' => __( 'Select a category or leave blank for all', 'fusion-core' ),
			'options' => fusion_shortcodes_categories( 'product_cat' )
		),
		'number_posts' => array(
			'std' => 5,
			'type' => 'select',
			'label' => __('Number of Products', 'fusion-core'),
			'desc' => 'Select the number of products to display',
			'options' => fusion_shortcodes_range( 20, false )
		),
		'show_cats' => array(
			'type' => 'select',
			'label' => __('Show Categories', 'fusion-core'),
			'desc' => 'Choose to show or hide the categories',
			'options' => $reverse_choices
		),
		'show_price' => array(
			'type' => 'select',
			'label' => __('Show Price', 'fusion-core'),
			'desc' => 'Choose to show or hide the price',
			'options' => $reverse_choices
		),
		'show_buttons' => array(
			'type' => 'select',