Esempio n. 1
0
/*-----------------------------------------------------------------------------------*/
$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'));
Esempio n. 2
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
/*-----------------------------------------------------------------------------------*/
Esempio n. 3
0
	'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',
				'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(