/Project/faci-qsoft/wp-content/plugins/fusion-core/tinymce/config.php
PHP | 1246 lines | 1042 code | 45 blank | 159 comment | 11 complexity | 171844fba44d303ce345e98de250b716 MD5 | raw file
- <?php
- /*-----------------------------------------------------------------------------------*/
- /* Default Options
- /*-----------------------------------------------------------------------------------*/
- // Number of posts array
- function fusion_shortcodes_range ( $range, $all = true, $default = false, $range_start = 1 ) {
- if( $all ) {
- $number_of_posts['-1'] = 'All';
- }
- if( $default ) {
- $number_of_posts[''] = 'Default';
- }
- foreach( range( $range_start, $range ) as $number ) {
- $number_of_posts[$number] = $number;
- }
- return $number_of_posts;
- }
- // Taxonomies
- function fusion_shortcodes_categories ( $taxonomy, $empty_choice = false, $empty_choice_label = 'Default' ) {
- $post_categories = array();
- if( $empty_choice == true ) {
- $post_categories[''] = $empty_choice_label;
- }
- $get_categories = get_categories('hide_empty=0&taxonomy=' . $taxonomy);
- if( ! is_wp_error( $get_categories ) ) {
- if( $get_categories && is_array($get_categories) ) {
- foreach ( $get_categories as $cat ) {
- if( array_key_exists('slug', $cat) &&
- array_key_exists('name', $cat)
- ) {
- $post_categories[$cat->slug] = $cat->name;
- }
- }
- }
- if( isset( $post_categories ) ) {
- return $post_categories;
- }
- }
- }
- function get_sidebars() {
- global $wp_registered_sidebars;
- $sidebars = array();
- foreach( $wp_registered_sidebars as $sidebar_id => $sidebar ) {
- $sidebars[$sidebar_id] = $sidebar['name'];
- }
- return $sidebars;
- }
- $choices = array( 'yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core') );
- $reverse_choices = array( 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core') );
- $choices_with_default = array( '' => __('Default', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core') );
- $reverse_choices_with_default = array( '' => __('Default', 'fusion-core'), 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core') );
- $leftright = array( 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core') );
- $dec_numbers = 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' );
- $animation_type = array(
- '0' => __( 'None', 'fusion-core' ),
- 'bounce' => __( 'Bounce', 'fusion-core' ),
- 'fade' => __( 'Fade', 'fusion-core' ),
- 'flash' => __( 'Flash', 'fusion-core' ),
- 'rubberBand' => __( 'Rubberband', 'fusion-core' ),
- 'shake' => __( 'Shake', 'fusion-core' ),
- 'slide' => __( 'Slide', 'fusion-core' ),
- 'zoom' => __( 'Zoom', 'fusion-core' ),
- );
- $animation_direction = array(
- 'down' => __( 'Down', 'fusion-core' ),
- 'left' => __( 'Left', 'fusion-core' ),
- 'right' => __( 'Right', 'fusion-core' ),
- 'up' => __( 'Up', 'fusion-core' ),
- 'static' => __( 'Static', 'fusion-core' ),
- );
- // Fontawesome icons list
- $pattern = '/\.(fa-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
- $fontawesome_path = FUSION_TINYMCE_DIR . '/css/font-awesome.css';
- if( file_exists( $fontawesome_path ) ) {
- @$subject = file_get_contents( $fontawesome_path );
- }
- preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
- $icons = array();
- foreach($matches as $match){
- $icons[$match[1]] = $match[2];
- }
- $checklist_icons = array ( 'icon-check' => '\f00c', 'icon-star' => '\f006', 'icon-angle-right' => '\f105', 'icon-asterisk' => '\f069', 'icon-remove' => '\f00d', 'icon-plus' => '\f067' );
- /*-----------------------------------------------------------------------------------*/
- /* Shortcode Selection Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['shortcode-generator'] = array(
- 'no_preview' => true,
- 'params' => array(),
- 'shortcode' => '',
- 'popup_title' => ''
- );
- /*-----------------------------------------------------------------------------------*/
- /* Alert Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['alert'] = array(
- 'no_preview' => true,
- 'params' => array(
- 'type' => array(
- 'type' => 'select',
- 'label' => __( 'Alert Type', 'fusion-core' ),
- 'desc' => __( 'Select the type of alert message. Choose custom for advanced color options below.', 'fusion-core' ),
- 'options' => array(
- 'general' => __('General', 'fusion-core'),
- 'error' => __('Error', 'fusion-core'),
- 'success' => __('Success', 'fusion-core'),
- 'notice' => __('Notice', 'fusion-core'),
- 'custom' => __('Custom', 'fusion-core'),
- )
- ),
- 'accentcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Accent Color', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Set the border, text and icon color for custom alert boxes.', 'fusion-core')
- ),
- 'backgroundcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Background Color', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Set the background color for custom alert boxes.', 'fusion-core')
- ),
- 'bordersize' => array(
- 'std' => '1px',
- 'type' => 'text',
- 'label' => __( 'Border Width', 'fusion-core' ),
- 'desc' => __('Custom setting only. For custom alert boxes. In pixels (px), ex: 1px.', 'fusion-core')
- ),
- 'icon' => array(
- 'type' => 'iconpicker',
- 'label' => __( 'Select Custom Icon', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Click an icon to select, click again to deselect', 'fusion-core' ),
- 'options' => $icons
- ),
- 'boxshadow' => array(
- 'type' => 'select',
- 'label' => __( 'Box Shadow', 'fusion-core' ),
- 'desc' => __( 'Display a box shadow below the alert box.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'content' => array(
- 'std' => __('Your Content Goes Here', 'fusion-core'),
- 'type' => 'textarea',
- 'label' => __( 'Alert Content', 'fusion-core' ),
- 'desc' => __( 'Insert the alert\'s content', 'fusion-core' ),
- ),
- 'animation_type' => array(
- 'type' => 'select',
- 'label' => __( 'Animation Type', 'fusion-core' ),
- 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
- 'options' => $animation_type,
- ),
- 'animation_direction' => array(
- 'type' => 'select',
- 'label' => __( 'Direction of Animation', 'fusion-core' ),
- 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
- 'options' => $animation_direction,
- ),
- '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,
- ),
- 'animation_offset' => array(
- 'type' => 'select',
- 'std' => '',
- 'label' => __( 'Offset of Animation', 'fusion-core' ),
- 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
- 'options' => 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' ),
- )
- ),
- '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' => '[alert type="{{type}}" accent_color="{{accentcolor}}" background_color="{{backgroundcolor}}" border_size="{{bordersize}}" icon="{{icon}}" box_shadow="{{boxshadow}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}" animation_offset="{{animation_offset}}" class="{{class}}" id="{{id}}"]{{content}}[/alert]',
- 'popup_title' => __( 'Alert Shortcode', 'fusion-core' )
- );
- /*-----------------------------------------------------------------------------------*/
- /* Blog Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['blog'] = array(
- 'no_preview' => true,
- 'params' => array(
- 'layout' => array(
- 'type' => 'select',
- 'label' => __( 'Blog Layout', 'fusion-core' ),
- 'desc' => __( 'Select the layout for the blog shortcode', 'fusion-core' ),
- 'options' => 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')
- )
- ),
- 'posts_per_page' => array(
- 'type' => 'select',
- 'label' => __( 'Posts Per Page', 'fusion-core' ),
- 'desc' => __( 'Select number of posts per page.', 'fusion-core' ),
- 'options' => fusion_shortcodes_range( 25, true, true )
- ),
- 'offset' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Post Offset', 'fusion-core' ),
- 'desc' => __('The number of posts to skip. ex: 1.', '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( 'category' )
- ),
- 'exclude_cats' => array(
- 'type' => 'multiple_select',
- 'label' => __( 'Exclude Categories', 'fusion-core' ),
- 'desc' => __( 'Select a category to exclude.', 'fusion-core' ),
- 'options' => fusion_shortcodes_categories( 'category' )
- ),
- 'show_title' => array(
- 'type' => 'select',
- 'label' => __( 'Show Title', 'fusion-core' ),
- 'desc' => __( 'Display the post title below the featured image.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'title_link' => array(
- 'type' => 'select',
- 'label' => __( 'Link Title To Post', 'fusion-core' ),
- 'desc' => __( 'Choose if the title should be a link to the single post page.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'thumbnail' => array(
- 'type' => 'select',
- 'label' => __( 'Show Thumbnail', 'fusion-core' ),
- 'desc' => __( 'Display the post featured image.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'excerpt' => array(
- 'type' => 'select',
- 'label' => __( 'Show Excerpt', 'fusion-core' ),
- 'desc' => __( 'Show excerpt or choose "no" for full content.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'excerpt_length' => array(
- 'std' => 35,
- 'type' => 'text',
- 'label' => __( 'Number of words/characters in Excerpt', 'fusion-core' ),
- 'desc' => __( 'Controls the excerpt length based on words or characters that is set in Theme Options > Extra.', 'fusion-core' ),
- ),
- 'meta_all' => array(
- 'type' => 'select',
- 'label' => __( 'Show Meta Info', 'fusion-core' ),
- 'desc' => __( 'Choose to show all meta data.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_author' => array(
- 'type' => 'select',
- 'label' => __( 'Show Author Name', 'fusion-core' ),
- 'desc' => __( 'Choose to show the author.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_categories' => array(
- 'type' => 'select',
- 'label' => __( 'Show Categories', 'fusion-core' ),
- 'desc' => __( "Choose to show the categories. Grid and timeline layout generally don't display categories.", 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_comments' => array(
- 'type' => 'select',
- 'label' => __( 'Show Comment Count', 'fusion-core' ),
- 'desc' => __( 'Choose to show the comments.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_date' => array(
- 'type' => 'select',
- 'label' => __( 'Show Date', 'fusion-core' ),
- 'desc' => __( 'Choose to show the date.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_link' => array(
- 'type' => 'select',
- 'label' => __( 'Show Read More Link', 'fusion-core' ),
- 'desc' => __( 'Choose to show the Read More link.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'meta_tags' => array(
- 'type' => 'select',
- 'label' => __( 'Show Tags', 'fusion-core' ),
- 'desc' => __( "Choose to show the tags. Grid and timeline layout generally don't display tags.", 'fusion-core' ),
- 'options' => $choices
- ),
- 'paging' => array(
- 'type' => 'select',
- 'label' => __( 'Show Pagination', 'fusion-core' ),
- 'desc' => __( 'Show numerical pagination boxes.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'scrolling' => array(
- 'type' => 'select',
- 'label' => __( 'Pagination Type', 'fusion-core' ),
- 'desc' => __( 'Choose the type of pagination.', 'fusion-core' ),
- 'options' => array(
- 'pagination' => __('Pagination', 'fusion-core'),
- 'infinite' => __('Infinite Scrolling', 'fusion-core'),
- 'load_more_button' => __('Load More Button', 'fusion-core')
- )
- ),
- 'blog_grid_columns' => array(
- 'type' => 'select',
- 'label' => __( 'Grid Layout # of Columns', 'fusion-core' ),
- 'desc' => __( 'Select whether to display the grid layout in 2, 3 or 4 column.', 'fusion-core' ),
- 'options' => array(
- '2' => '2',
- '3' => '3',
- '4' => '4',
- '5' => '5',
- '6' => '6',
- )
- ),
- 'blog_grid_column_spacing' => array(
- 'std' => '40',
- 'type' => 'text',
- 'label' => __( 'Grid Layout Column Spacing', 'fusion-core' ),
- 'desc' => __( 'Insert the amount of spacing between blog grid posts without "px".', 'fusion-core' )
- ),
- 'strip_html' => array(
- 'type' => 'select',
- 'label' => __( 'Strip HTML from Posts Content', 'fusion-core' ),
- 'desc' => __( 'Strip HTML from the post excerpt.', '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' => '[blog number_posts="{{posts_per_page}}" offset="{{offset}}" cat_slug="{{cat_slug}}" exclude_cats="{{exclude_cats}}" show_title="{{show_title}}" title_link="{{title_link}}" thumbnail="{{thumbnail}}" excerpt="{{excerpt}}" excerpt_length="{{excerpt_length}}" strip_html="{{strip_html}}" meta_all="{{meta_all}}" meta_author="{{meta_author}}" meta_categories="{{meta_categories}}" meta_comments="{{meta_comments}}" meta_date="{{meta_date}}" meta_link="{{meta_link}}" meta_tags="{{meta_tags}}" paging="{{paging}}" scrolling="{{scrolling}}" blog_grid_columns="{{blog_grid_columns}}" blog_grid_column_spacing="{{blog_grid_column_spacing}}" layout="{{layout}}" class="{{class}}" id="{{id}}"][/blog]',
- 'popup_title' => __( 'Blog Shortcode', 'fusion-core')
- );
- /*-----------------------------------------------------------------------------------*/
- /* Button Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['button'] = array(
- 'no_preview' => true,
- 'params' => array(
- 'url' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Button URL', 'fusion-core' ),
- 'desc' => __( 'Add the button\'s url ex: http://example.com.', 'fusion-core' )
- ),
- 'style' => array(
- 'type' => 'select',
- 'label' => __( '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' ),
- 'options' => 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'),
- )
- ),
- 'size' => array(
- 'type' => 'select',
- 'label' => __( 'Button Size', 'fusion-core' ),
- 'desc' => __( 'Select the button\'s size. Choose default for theme option selection.', 'fusion-core' ),
- 'options' => array(
- '' => __('Default', 'fusion-core'),
- 'small' => __('Small', 'fusion-core'),
- 'medium' => __('Medium', 'fusion-core'),
- 'large' => __('Large', 'fusion-core'),
- 'xlarge' => __('XLarge', 'fusion-core'),
- )
- ),
- 'stretch' => array(
- 'type' => 'select',
- 'label' => __( 'Button Span', 'fusion-core' ),
- 'desc' => __( 'Choose to have the button span the full width of its container.', 'fusion-core' ),
- 'options' => $choices_with_default
- ),
- 'type' => array(
- 'type' => 'select',
- 'label' => __( 'Button Type', 'fusion-core' ),
- 'desc' => __( 'Select the button\'s type. Choose default for theme option selection.', 'fusion-core' ),
- 'options' => array(
- '' => __('Default', 'fusion-core'),
- 'flat' => __('Flat', 'fusion-core'),
- '3d' => '3D',
- )
- ),
- 'shape' => array(
- 'type' => 'select',
- 'label' => __( 'Button Shape', 'fusion-core' ),
- 'desc' => __( 'Select the button\'s shape. Choose default for theme option selection.', 'fusion-core' ),
- 'options' => array(
- '' => __('Default', 'fusion-core'),
- 'square' => __('Square', 'fusion-core'),
- 'pill' => __('Pill', 'fusion-core'),
- 'round' => __('Round', 'fusion-core'),
- )
- ),
- 'target' => array(
- 'type' => 'select',
- 'label' => __( 'Button Target', 'fusion-core' ),
- 'desc' => __( '_self = open in same window <br />_blank = open in new window.', 'fusion-core' ),
- 'options' => array(
- '_self' => '_self',
- '_blank' => '_blank'
- )
- ),
- 'title' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Button Title Attribute', 'fusion-core' ),
- 'desc' => __( 'Set a title attribute for the button link.', 'fusion-core' ),
- ),
- 'content' => array(
- 'std' => __('Button Text', 'fusion-core'),
- 'type' => 'text',
- 'label' => __( 'Button\'s Text', 'fusion-core' ),
- 'desc' => __( 'Add the text that will display in the button.', 'fusion-core' ),
- ),
- 'gradtopcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Button Gradient Top Color', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Set the top color of the button background.', 'fusion-core' )
- ),
- 'gradbottomcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( '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' )
- ),
- 'gradtopcolorhover' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Button Gradient Top Color Hover', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Set the top hover color of the button background.', 'fusion-core' )
- ),
- 'gradbottomcolorhover' => array(
- 'type' => 'colorpicker',
- 'label' => __( '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' )
- ),
- 'accentcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Accent Color', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. This option controls the color of the button border, divider, text and icon.', 'fusion-core' )
- ),
- 'accenthovercolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( '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' )
- ),
- 'bevelcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Bevel Color (3D Mode only)', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. Set the bevel color of 3D buttons.', 'fusion-core' )
- ),
- 'borderwidth' => array(
- 'std' => '1px',
- 'type' => 'text',
- 'label' => __( 'Border Width', 'fusion-core' ),
- 'desc' => __( 'Custom setting only. In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core' )
- ),
- /*
- 'bordercolor' => array(
- 'type' => 'colorpicker',
- 'std' => '',
- 'label' => __( 'Border Color', 'fusion-core' ),
- 'desc' => __('Custom setting. Backside.', 'fusion-core')
- ),
- 'borderhovercolor' => array(
- 'type' => 'colorpicker',
- 'std' => '',
- 'label' => __( 'Border Hover Color', 'fusion-core' ),
- 'desc' => __('Custom setting. Backside.', 'fusion-core')
- ),
- 'textcolor' => array(
- 'type' => 'colorpicker',
- 'std' => '',
- 'label' => __( 'Text Color', 'fusion-core' ),
- 'desc' => __('Custom setting. Backside.', 'fusion-core')
- ),
- 'texthovercolor' => array(
- 'type' => 'colorpicker',
- 'std' => '',
- 'label' => __( 'Text Hover Color', 'fusion-core' ),
- 'desc' => __('Custom setting. Backside.', 'fusion-core')
- ),
- */
- 'icon' => array(
- 'type' => 'iconpicker',
- 'label' => __( 'Select Custom Icon', 'fusion-core' ),
- 'desc' => __( 'Click an icon to select, click again to deselect', 'fusion-core' ),
- 'options' => $icons
- ),
- /*
- 'iconcolor' => array(
- 'type' => 'colorpicker',
- 'std' => '',
- 'label' => __( 'Icon Color', 'fusion-core' ),
- 'desc' => __('Custom setting. Leave blank for theme option selection.', 'fusion-core')
- ),
- */
- 'iconposition' => array(
- 'type' => 'select',
- 'label' => __( 'Icon Position', 'fusion-core' ),
- 'desc' => __( 'Choose the position of the icon on the button.', 'fusion-core' ),
- 'options' => $leftright
- ),
- 'icondivider' => array(
- 'type' => 'select',
- 'label' => __( 'Icon Divider', 'fusion-core' ),
- 'desc' => __( 'Choose to display a divider between icon and text.', 'fusion-core' ),
- 'options' => $choices
- ),
- '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' ),
- ),
- 'animation_type' => array(
- 'type' => 'select',
- 'label' => __( 'Animation Type', 'fusion-core' ),
- 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
- 'options' => $animation_type,
- ),
- 'animation_direction' => array(
- 'type' => 'select',
- 'label' => __( 'Direction of Animation', 'fusion-core' ),
- 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
- 'options' => $animation_direction,
- ),
- '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,
- ),
- 'animation_offset' => array(
- 'type' => 'select',
- 'std' => '',
- 'label' => __( 'Offset of Animation', 'fusion-core' ),
- 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
- 'options' => 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' ),
- )
- ),
- 'alignment' => array(
- 'type' => 'select',
- 'std' => '',
- 'label' => __( 'Alignment', 'fusion-core' ),
- 'desc' => __( 'Select the button\'s alignment.', 'fusion-core' ),
- 'options' => array(
- 'left' => __('Left', 'fusion-core'),
- 'center' => __('Center', 'fusion-core'),
- 'right' => __('Right', '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' => '[button link="{{url}}" color="{{style}}" size="{{size}}" stretch="{{stretch}}" type="{{type}}" shape="{{shape}}" target="{{target}}" title="{{title}}" gradient_colors="{{gradtopcolor}}|{{gradbottomcolor}}" gradient_hover_colors="{{gradtopcolorhover}}|{{gradbottomcolorhover}}" accent_color="{{accentcolor}}" accent_hover_color="{{accenthovercolor}}" bevel_color="{{bevelcolor}}" border_width="{{borderwidth}}" icon="{{icon}}" icon_divider="{{icondivider}}" icon_position="{{iconposition}}" modal="{{modal}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}" animation_offset="{{animation_offset}}" alignment="{{alignment}}" class="{{class}}" id="{{id}}"]{{content}}[/button]',
- 'popup_title' => __( 'Button Shortcode', 'fusion-core')
- );
- /*-----------------------------------------------------------------------------------*/
- /* Checklist Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['checklist'] = array(
- 'params' => array(
- 'icon' => array(
- 'type' => 'iconpicker',
- 'label' => __( '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' ),
- 'options' => $icons
- ),
- 'iconcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Icon Color', 'fusion-core' ),
- 'desc' => __( 'Global setting for all list items. Leave blank for theme option selection. Defines the icon color.', 'fusion-core')
- ),
- 'circle' => array(
- 'type' => 'select',
- 'label' => __( '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' ),
- 'options' => $choices_with_default
- ),
- 'circlecolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Circle Color', 'fusion-core' ),
- 'desc' => __( 'Global setting for all list items. Leave blank for theme option selection. Defines the circle color.', 'fusion-core')
- ),
- 'size' => array(
- 'std' => '13px',
- 'type' => 'text',
- 'label' => __( 'Item Size', 'fusion-core' ),
- 'desc' => __( 'Select the list item\'s size. In pixels (px), ex: 13px.', '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' => '[checklist icon="{{icon}}" iconcolor="{{iconcolor}}" circle="{{circle}}" circlecolor="{{circlecolor}}" size="{{size}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/checklist]',
- 'popup_title' => __( 'Checklist Shortcode', 'fusion-core' ),
- 'no_preview' => true,
- // child shortcode is clonable & sortable
- 'child_shortcode' => array(
- 'params' => array(
- 'icon' => array(
- 'type' => 'iconpicker',
- 'label' => __( 'Select Icon', 'fusion-core' ),
- 'desc' => __( 'This setting will override the global setting above. Leave blank for theme option selection.', 'fusion-core' ),
- 'options' => $icons
- ),
- 'content' => array(
- 'std' => __('Your Content Goes Here', 'fusion-core'),
- 'type' => 'textarea',
- 'label' => __( 'List Item Content', 'fusion-core' ),
- 'desc' => __( 'Add list item content', 'fusion-core' ),
- ),
- ),
- 'shortcode' => '[li_item icon="{{icon}}"]{{content}}[/li_item]',
- 'clone_button' => __( 'Add New List Item', 'fusion-core')
- )
- );
- /*-----------------------------------------------------------------------------------*/
- /* Client Slider Config
- /*-----------------------------------------------------------------------------------*/
- /*
- $fusion_shortcodes['clientslider'] = 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')
- )
- ),
- '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' => '[clients picture_size="{{picture_size}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/clients]', // as there is no wrapper shortcode
- 'popup_title' => __( 'Client Slider Shortcode', 'fusion-core' ),
- 'no_preview' => true,
- // child shortcode is clonable & sortable
- 'child_shortcode' => array(
- 'params' => array(
- 'url' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Client Website Link', 'fusion-core' ),
- 'desc' => __( 'Add the url to client\'s website <br />ex: http://example.com', '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'
- )
- ),
- 'image' => array(
- 'type' => 'uploader',
- 'label' => __( 'Client Image', 'fusion-core' ),
- 'desc' => __( 'Upload the client image', 'fusion-core' ),
- ),
- 'alt' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Image Alt Text', 'fusion-core' ),
- 'desc' => __('The alt attribute provides alternative information if an image cannot be viewed', 'fusion-core')
- ),
- ),
- 'shortcode' => '[client link="{{url}}" linktarget="{{target}}" image="{{image}}" alt="{{alt}}"]',
- 'clone_button' => __( 'Add New Client Image', 'fusion-core')
- )
- );
- */
- /*-----------------------------------------------------------------------------------*/
- /* Code Block Config
- /*-----------------------------------------------------------------------------------*/
- /*$fusion_shortcodes['code'] = array(
- 'no_preview' => true,
- 'params' => array(
- 'content' => array(
- 'std' => 'Click edit button to change this code.',
- 'type' => 'textarea',
- 'label' => __( 'Code', 'fusion-core' ),
- 'desc' => __( 'Enter some content for this codeblock', 'fusion-core' ),
- ),
- 'class' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'CSS Class', 'fusion-core' ),
- 'desc' => __( 'Add a class to the HTML element.', 'fusion-core' )
- ),
- 'id' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'CSS ID', 'fusion-core' ),
- 'desc' => __( 'Add an ID to the HTML element.', 'fusion-core' )
- ),
- ),
- 'shortcode' => '[fusion_code class="{{class}}" id="{{id}}"]{{content}}[/fusion_code]',
- 'popup_title' => __( 'Code Block Shortcode', 'fusion-core' )
- );*/
- /*-----------------------------------------------------------------------------------*/
- /* Columns Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['columns'] = array(
- 'shortcode' => ' {{child_shortcode}} ', // as there is no wrapper shortcode
- 'popup_title' => __( 'Insert Columns Shortcode', 'fusion-core' ),
- 'no_preview' => true,
- 'params' => array(),
- // child shortcode is clonable & sortable
- 'child_shortcode' => array(
- 'params' => array(
- 'column' => array(
- 'type' => 'select',
- 'label' => __( 'Column Type', 'fusion-core' ),
- 'desc' => __( 'Select the width of the column', 'fusion-core' ),
- 'options' => array(
- 'one_full' => __('One Column', 'fusion-core'),
- 'one_half' => __('One Half', 'fusion-core'),
- 'one_third' => __('One Third', 'fusion-core'),
- 'two_third' => __('Two Thirds', 'fusion-core'),
- 'one_fourth' => __('One Fourth', 'fusion-core'),
- 'three_fourth' => __('Three Fourth', 'fusion-core'),
- 'one_fifth' => __('One Fifth', 'fusion-core'),
- 'two_fifth' => __('Two Fifth', 'fusion-core'),
- 'three_fifth' => __('Three Fifth', 'fusion-core'),
- 'four_fifth' => __('Four Fifth', 'fusion-core'),
- 'one_sixth' => __('One Sixth', 'fusion-core'),
- 'five_sixth' => __('Five Sixth', 'fusion-core'),
- 'one' => __('One ( Six Sixth )', 'fusion-core'),
- )
- ),
- 'last' => array(
- 'type' => 'select',
- 'label' => __( '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'),
- 'options' => $reverse_choices
- ),
- 'spacing' => array(
- 'std' => 'yes',
- 'type' => 'select',
- 'label' => __( 'Column Spacing', 'fusion-core' ),
- 'desc' => __( 'Set to "No" to eliminate margin between columns.', 'fusion-core' ),
- 'options' => $choices
- ),
- 'center_content' => array(
- 'type' => 'select',
- 'label' => __( 'Center Content Vertically', '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 vertically.', 'fusion-core'),
- 'options' => $reverse_choices
- ),
- 'hide_on_mobile' => array(
- 'type' => 'select',
- 'label' => __( 'Hide on Mobile', 'fusion-core' ),
- 'desc' => __('Select "Yes" to hide column on mobile.', 'fusion-core'),
- 'options' => $reverse_choices
- ),
- 'backgroundcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Background Color', 'fusion-core' ),
- 'desc' => __( 'Controls the background color.', 'fusion-core')
- ),
- 'backgroundimage' => array(
- 'type' => 'uploader',
- 'label' => __( 'Background Image', 'fusion-core' ),
- 'desc' => __('Upload an image to display in the background', 'fusion-core')
- ),
- 'backgroundrepeat' => array(
- 'type' => 'select',
- 'label' => __( 'Background Repeat', 'fusion-core' ),
- 'desc' => __('Choose how the background image repeats.', 'fusion-core'),
- 'options' => 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')
- )
- ),
- 'backgroundposition' => array(
- 'type' => 'select',
- 'label' => __( 'Background Position', 'fusion-core' ),
- 'desc' => __('Choose the postion of the background image.', 'fusion-core'),
- 'options' => 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')
- )
- ),
- 'hover_type' => array(
- 'std' => 'none',
- 'type' => 'select',
- 'label' => __( 'Hover Type', 'fusion-core' ),
- 'desc' => __('Select the hover effect type. This will disable links on elements inside the column.', 'fusion-core'),
- 'options' => array(
- 'none' => __('None', 'fusion-core'),
- 'zoomin' => __('Zoom In', 'fusion-core'),
- 'zoomout' => __('Zoom Out', 'fusion-core'),
- 'liftup' => __('Lift Up', 'fusion-core')
- )
- ),
- 'link' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Link URL', 'fusion-core' ),
- 'desc' => __( 'Add the URL the column will link to, ex: http://example.com. This will disable links on elements inside the column.', 'fusion-core' ),
- ),
- 'borderposition' => array(
- 'type' => 'select',
- 'label' => __( 'Border Position', 'fusion-core' ),
- 'desc' => __('Choose the postion of the border.', 'fusion-core'),
- 'options' => array(
- 'all' => __('All', 'fusion-core'),
- 'top' => __('Top', 'fusion-core'),
- 'right' => __('Right', 'fusion-core'),
- 'bottom' => __('Bottom', 'fusion-core'),
- 'left' => __('Left', 'fusion-core'),
- )
- ),
- 'bordersize' => array(
- 'std' => '0px',
- 'type' => 'text',
- 'label' => __( 'Border Size', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 1px.', 'fusion-core' ),
- ),
- 'bordercolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Border Color', 'fusion-core' ),
- 'desc' => __( 'Controls the border color.', 'fusion-core')
- ),
- 'borderstyle' => array(
- 'type' => 'select',
- 'label' => __( 'Border Style', 'fusion-core' ),
- 'desc' => __( 'Controls the border style.', 'fusion-core' ),
- 'options' => array(
- 'solid' => __('Solid', 'fusion-core'),
- 'dashed' => __('Dashed', 'fusion-core'),
- 'dotted' => __('Dotted', 'fusion-core')
- )
- ),
- 'padding' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Padding', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
- ),
- 'margin_top' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Margin Top', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
- ),
- 'margin_bottom' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Margin Bottom', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
- ),
- 'content' => array(
- 'std' => '',
- 'type' => 'textarea',
- 'label' => __( 'Column Content', 'fusion-core' ),
- 'desc' => __( 'Insert the column content', 'fusion-core' ),
- ),
- 'animation_type' => array(
- 'type' => 'select',
- 'label' => __( 'Animation Type', 'fusion-core' ),
- 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
- 'options' => $animation_type,
- ),
- 'animation_direction' => array(
- 'type' => 'select',
- 'label' => __( 'Direction of Animation', 'fusion-core' ),
- 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
- 'options' => $animation_direction,
- ),
- '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,
- ),
- 'animation_offset' => array(
- 'type' => 'select',
- 'std' => '',
- 'label' => __( 'Offset of Animation', 'fusion-core' ),
- 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
- 'options' => 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' ),
- )
- ),
- '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' => '[{{column}} spacing="{{spacing}}" last="{{last}}" center_content="{{center_content}}" hide_on_mobile="{{hide_on_mobile}}" background_color="{{backgroundcolor}}" background_image="{{backgroundimage}}" background_repeat="{{backgroundrepeat}}" background_position="{{backgroundposition}}" link="{{link}}" hover_type="{{hover_type}}" border_position="{{borderposition}}" border_size="{{bordersize}}" border_color="{{bordercolor}}" border_style="{{borderstyle}}" padding="{{padding}}" margin_top="{{margin_top}}" margin_bottom="{{margin_bottom}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}" animation_offset="{{animation_offset}}" class="{{class}}" id="{{id}}"]{{content}}[/{{column}}] ',
- 'clone_button' => __( 'Add Column', 'fusion-core')
- )
- );
- /*-----------------------------------------------------------------------------------*/
- /* Content Boxes Config
- /*-----------------------------------------------------------------------------------*/
- $fusion_shortcodes['contentboxes'] = array(
- 'params' => array(
- 'layout' => array(
- 'type' => 'select',
- 'label' => __( 'Box Layout', 'fusion-core' ),
- 'desc' => __( 'Select the layout for the content box', 'fusion-core' ),
- 'options' => 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' => __('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')
- )
- ),
- 'columns' => array(
- 'std' => 4,
- 'type' => 'select',
- 'label' => __( 'Number of Columns', 'fusion-core' ),
- 'desc' => __( 'Set the number of columns per row.', 'fusion-core' ),
- 'options' => fusion_shortcodes_range( 6, false )
- ),
- 'icon_align' => array(
- 'std' => 'left',
- 'type' => 'select',
- 'label' => __( 'Content Alignment', 'fusion-core' ),
- 'desc' => __( 'Works with "Classic Icon With Title" and "Classic Icon On Side" layout options.' ),
- 'options' => array('left' => 'Left',
- 'right' => 'Right')
- ),
- 'title_size' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Title Size', 'fusion-core' ),
- 'desc' => __( 'Controls the size of the title. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core')
- ),
- 'backgroundcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Content Box Background Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'icon_circle' => array(
- 'type' => 'select',
- 'label' => __( 'Icon Background', 'fusion-core' ),
- 'desc' => __( 'Controls the background behind the icon. Select default for theme option selection.', 'fusion-core' ),
- 'options' => array(
- '' => __('Default', 'fusion-core'),
- 'yes' => __('Yes', 'fusion-core'),
- 'no' => __('No', 'fusion-core'),
- )
- ),
- 'icon_circle_radius' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( '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')
- ),
- 'iconcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Icon Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'circlecolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Icon Background Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'circlebordercolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Icon Background Inner Border Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'circlebordercolorsize' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Icon Background Inner Border Size', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'outercirclebordercolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Icon Background Outer Border Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'outercirclebordercolorsize' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Icon Background Outer Border Size', 'fusion-core' ),
- 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
- ),
- 'icon_size' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Icon Size', 'fusion-core' ),
- 'desc' => __( 'Controls the size of the icon. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core')
- ),
- 'link_type' => array(
- 'type' => 'select',
- 'label' => __( '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' ),
- 'options' => array(
- '' => 'Default',
- 'text' => 'Text',
- 'button-bar' => 'Button Bar',
- 'button' => 'Button'
- )
- ),
- 'link_area' => array(
- 'std' => '',
- 'type' => 'select',
- 'label' => __( 'Link Area', 'fusion-core' ),
- 'desc' => __( 'Select which area the link will be assigned to' ),
- 'options' => array('' => 'Default',
- 'link-icon' => 'Link+Icon',
- 'box' => 'Entire Content Box')
- ),
- '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(
- '' => 'Default',
- '_self' => '_self',
- '_blank' => '_blank'
- )
- ),
- 'animation_delay' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Animation Delay', 'fusion-core' ),
- 'desc' => __( 'Controls the delay of animation between each element in a set. In milliseconds.', 'fusion-core')
- ),
- 'animation_offset' => array(
- 'type' => 'select',
- 'std' => '',
- 'label' => __( 'Offset of Animation', 'fusion-core' ),
- 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
- 'options' => 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' ),
- )
- ),
- 'animation_type' => array(
- 'type' => 'select',
- 'label' => __( 'Animation Type', 'fusion-core' ),
- 'desc' => __( 'Select the type on animation to use on the shortcode', 'fusion-core' ),
- 'options' => $animation_type,
- ),
- 'animation_direction' => array(
- 'type' => 'select',
- 'label' => __( 'Direction of Animation', 'fusion-core' ),
- 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
- 'options' => $animation_direction,
- ),
- '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,
- ),
- 'margin_top' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Margin Top', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
- ),
- 'margin_bottom' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Margin Bottom', 'fusion-core' ),
- 'desc' => __( 'In pixels (px), ex: 10px.', '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' => '[content_boxes layout="{{layout}}" columns="{{columns}}" icon_align="{{icon_align}}" title_size="{{title_size}}" backgroundcolor="{{backgroundcolor}}" icon_circle="{{icon_circle}}" icon_circle_radius="{{icon_circle_radius}}" iconcolor="{{iconcolor}}" circlecolor="{{circlecolor}}" circlebordercolor="{{circlebordercolor}}" circlebordercolorsize="{{circlebordercolorsize}}" outercirclebordercolor="{{circlebordercolor}}" outercirclebordercolorsize="{{outercirclebordercolorsize}}" icon_size="{{icon_size}}" link_type="{{link_type}}" link_area="{{link_area}}" animation_delay="{{animation_delay}}" animation_offset="{{animation_offset}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}" margin_top="{{margin_top}}" margin_bottom="{{margin_top}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/content_boxes]', // as there is no wrapper shortcode
- 'popup_title' => __( 'Content Boxes Shortcode', 'fusion-core' ),
- 'no_preview' => true,
- // child shortcode is clonable & sortable
- 'child_shortcode' => array(
- 'params' => array(
- 'title' => array(
- 'std' => '',
- 'type' => 'text',
- 'label' => __( 'Title', 'fusion-core'),
- 'desc' => __( 'The box title.', 'fusion-core' ),
- ),
- 'icon' => array(
- 'type' => 'iconpicker',
- 'label' => __( 'Icon', 'fusion-core' ),
- 'desc' => __( 'Click an icon to select, click again to deselect.', 'fusion-core' ),
- 'options' => $icons
- ),
- 'backgroundcolor' => array(
- 'type' => 'colorpicker',
- 'label' => __( 'Content Box Background Color', 'fusion-core' ),
- 'desc' => __( 'Leave blank for the