<?php

/*-----------------------------------------------------------------------------------*/
/*	Default Options
/*-----------------------------------------------------------------------------------*/

// Number of posts array
function t4p_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 t4p_shortcodes_categories ( $taxonomy, $empty_choice = false ) {
	if($empty_choice == true) {
		$post_categories[''] = 'Default';
	}

	$get_categories = get_categories('hide_empty=0&taxonomy=' . $taxonomy);
	if( ! array_key_exists('errors', $get_categories) ) {
		if( $get_categories && is_array($get_categories) ) {
			foreach ( $get_categories as $cat ) {
				$post_categories[$cat->slug] = $cat->name;
			}
		}

		if(isset($post_categories)) {
			return $post_categories;
		}
	}
}

$choices = array('yes' => 'Yes', 'no' => 'No');
$reverse_choices = array('no' => 'No', 'yes' => 'Yes');
$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' );

// Fontawesome icons list
$pattern = '/\.(fa-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
$fontawesome_path = T4P_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
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['shortcode-generator'] = array(
	'no_preview' => true,
	'params' => array(),
	'shortcode' => '',
	'popup_title' => ''
);

/*-----------------------------------------------------------------------------------*/
/*	Alert Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['alert'] = array(
	'no_preview' => true,
	'params' => array(

		'type' => array(
			'type' => 'select',
			'label' => __( 'Alert Type', 't4p-core' ),
			'desc' => __( 'Select the type of alert message', 't4p-core' ),
			'options' => array(
				'general' => 'General',
				'error' => 'Error',
				'success' => 'Success',
				'notice' => 'Notice',
			)
		),
		'content' => array(
			'std' => 'Your Content Goes Here',
			'type' => 'textarea',
			'label' => __( 'Alert Content', 't4p-core' ),
			'desc' => __( 'Insert the alert\'s content', 't4p-core' ),
		),
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
	'shortcode' => '[alert type="{{type}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"]{{content}}[/alert]',
	'popup_title' => __( 'Alert Shortcode', 't4p-core' )
);


/*-----------------------------------------------------------------------------------*/
/*	Button Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['button'] = array(
	'no_preview' => true,
	'params' => array(

		'url' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Button URL', 't4p-core'),
			'desc' => __('Add the button\'s url ex: http://example.com', 't4p-core')
		),
		'style' => array(
			'type' => 'select',
			'label' => __('Button Style', 't4p-core'),
			'desc' => __('Select the button\'s color. Select custom to use advanced color options below.', 't4p-core'),      
			'options' => array(
				'default' => 'Default',
				'custom' => 'Custom',        
				'green' => 'Green',
				'darkgreen' => 'Dark Green',
				'orange' => 'Orange',
				'blue' => 'Blue',
				'red' => 'Red',
				'pink' => 'Pink',
				'darkgray' => 'Dark Gray',
				'lightgray' => 'Light Gray',
			)
		),
		'size' => array(
			'type' => 'select',
			'label' => __('Button Size', 't4p-core'),
			'desc' => __('Select the button\'s size', 't4p-core'),
			'options' => array(
				'small' => 'Small',
				'large' => 'Large'
			)
		),
		'target' => array(
			'type' => 'select',
			'label' => __('Button Target', 't4p-core'),
			'desc' => __('_self = open in same window <br />_blank = open in new window', 't4p-core'),
			'options' => array(
				'_self' => '_self',
				'_blank' => '_blank'
			)
		),
	  'title' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Button Title attribute', 't4p-core'),
			'desc' => __('Set a title attribute for the link the button consists of', 't4p-core'),
		),    
		'content' => array(
			'std' => 'Button Text',
			'type' => 'text',
			'label' => __('Button\'s Text', 't4p-core'),
			'desc' => __('Add the text that will display in the button', 't4p-core'),
		),
		'gradtopcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Gradient Top Color', 't4p-core'),
			'desc' => __('Custom setting. Set the top color of the background gradient.', 't4p-core')
		),
		'gradbottomcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Gradient Bottom Color', 't4p-core'),
			'desc' => __('Custom setting. Set the bottom color of the background gradient. Leave empty for solid color', 't4p-core')
		),
		'gradtopcolorhover' => array(
			'type' => 'colorpicker',
			'label' => __('Gradient Top Color Hover', 't4p-core'),
			'desc' => __('Custom setting. Set the top hover color of the background gradient', 't4p-core')
		),
		'gradbottomcolorhover' => array(
			'type' => 'colorpicker',
			'label' => __('Gradient Bottom Color Hover', 't4p-core'),
			'desc' => __('Custom setting. Set the bottom hover color of the background gradient. Leave empty for solid color', 't4p-core')
		),
		'border' => array(
			'std' => '1px',
			'type' => 'text',
			'label' => __('Border', 't4p-core'),
			'desc' => 'Custom setting. In pixels (px), ex: 1px.'
		),
		'bordercolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Border Color', 't4p-core'),
			'desc' => 'Custom setting. Leave blank for default'
		),
		'textcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Text Color', 't4p-core'),
			'desc' => 'Custom setting. Leave blank for default'
		),
		'textshadow' => array(
			'type' => 'select',
			'label' => __('Shadow', 't4p-core'),
			'desc' => __('Choose to enable/disable the shadows', 't4p-core'),
			'options' => $choices
		),    
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
  'shortcode' => '[button link="{{url}}" color="{{style}}" size="{{size}}" target="{{target}}" title="{{title}}" gradient_colors="{{gradtopcolor}},{{gradbottomcolor}}" gradient_hover_colors="{{gradtopcolorhover}},{{gradbottomcolorhover}}" border_width="{{border}}" border_color="{{bordercolor}}" text_color="{{textcolor}}" shadow="{{textshadow}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"]{{content}}[/button]',  
	'popup_title' => __('Button Shortcode', 't4p-core')
);

/*-----------------------------------------------------------------------------------*/
/*	Checklist Config
/*-----------------------------------------------------------------------------------*/
$t4p_shortcodes['checklist'] = array(
	'params' => array(

		'icon' => array(
			'type' => 'iconpicker',
			'label' => __('Select Icon', 't4p-core'),
			'desc' => __('Click an icon to select, click again to deselect', 't4p-core'),
			'options' => $icons
		),
		'iconcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'circle' => array(
			'type' => 'select',
			'label' => __('Icon in Circle', 't4p-core'),
			'desc' => __('Choose to display the icon in a circle', 't4p-core'),
			'options' => $choices
		),
	),

	'shortcode' => '[checklist icon="{{icon}}" iconcolor="{{iconcolor}}" circle="{{circle}}"]&lt;ul&gt;{{child_shortcode}}&lt;/ul&gt;[/checklist]',
	'popup_title' => __('Checklist Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'content' => array(
				'std' => 'Your Content Goes Here',
				'type' => 'textarea',
				'label' => __( 'List Item Content', 't4p-core' ),
				'desc' => __( 'Add list item content', 't4p-core' ),
			),
		),
		'shortcode' => '&lt;li&gt;{{content}}&lt;/li&gt;',
		'clone_button' => __('Add New List Item', 't4p-core')
	)
);


/*-----------------------------------------------------------------------------------*/
/*	Client Slider Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['clientslider'] = array(
	'params' => array(),
	'shortcode' => '[clients]{{child_shortcode}}[/clients]', // as there is no wrapper shortcode
	'popup_title' => __('Client Slider Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'url' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Client Website Link', 't4p-core'),
				'desc' => __('Add the url to client\'s website <br />ex: http://example.com', 't4p-core')
			),
			'target' => array(
				'type' => 'select',
				'label' => __('Link Target', 't4p-core'),
				'desc' => __('_self = open in same window <br /> _blank = open in new window', 't4p-core'),
				'options' => array(
					'_self' => '_self',
					'_blank' => '_blank'
				)
			),
			'image' => array(
				'type' => 'uploader',
				'label' => __('Client Image', 't4p-core'),
				'desc' => __('Upload the client image', 't4p-core'),
			),
			'alt' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Image Alt Text', 't4p-core'),
				'desc' => 'The alt attribute provides alternative information if an image cannot be viewed'
			)
		),
		'shortcode' => '[client link="{{url}}" linktarget="{{target}}" image="{{image}}" alt="{{alt}}"]',
		'clone_button' => __('Add New Client Image', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Content Boxes Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['contentboxes'] = array(
	'params' => array(

		'layout' => array(
			'type' => 'select',
			'label' => __( 'Box Layout', 't4p-core' ),
			'desc' => __('Select the layout for the content box', 't4p-core'),
			'options' => array(
				'icon-with-title' => 'Icon beside Title',
				'icon-on-top' => 'Icon on Top of Title',
				'icon-on-side' => 'Icon beside Title and Content aligned with Title',
				'icon-boxed' => 'Icon Boxed',

			)
		),
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Content Box Background Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'iconcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'circlecolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Circle Background Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'circlebordercolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Circle Border Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
	),
	'shortcode' => '[content_boxes layout="{{layout}}" iconcolor="{{iconcolor}}" circlecolor="{{circlecolor}}" circlebordercolor="{{circlebordercolor}}" backgroundcolor="{{backgroundcolor}}"]{{child_shortcode}}[/content_boxes]', // as there is no wrapper shortcode
	'popup_title' => __('Content Boxes Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'title' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Title', 't4p-core')
			),
			'icon' => array(
				'type' => 'iconpicker',
				'label' => __('Icon', 't4p-core'),
				'desc' => __('Click an icon to select, click again to deselect', 't4p-core'),
				'options' => $icons
			),
			'image' => array(
				'type' => 'uploader',
				'label' => __('Icon Image', 't4p-core'),
				'desc' => 'To upload your own icon image, deselect the icon above and then upload your icon image'
			),
			'image_width' => array(
				'std' => 35,
				'type' => 'text',
				'label' => __('Icon Image Width', 't4p-core'),
				'desc' => 'If using an icon image, specify the image width in pixels but do not add px, ex: 35'
			),
			'image_height' => array(
				'std' => 35,
				'type' => 'text',
				'label' => __('Icon Image Height', 't4p-core'),
				'desc' => 'If using an icon image, specify the image height in pixels but do not add px, ex: 35'
			),
			'link' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Read More Link Url', 't4p-core'),
				'desc' => 'Add the link\'s url ex: http://example.com'

			),
			'linktext' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Read More Link Text', 't4p-core'),
				'desc' => 'Insert the text to display as the link'

			),
			'target' => array(
				'type' => 'select',
				'label' => __('Read More Link Target', 't4p-core'),
				'desc' => __('_self = open in same window <br /> _blank = open in new window', 't4p-core'),
				'options' => array(
					'_self' => '_self',
					'_blank' => '_blank'
				)
			),
			'content' => array(
				'std' => 'Your Content Goes Here',
				'type' => 'textarea',
				'label' => __( 'Content Box Content', 't4p-core' ),
				'desc' => __( 'Add content for content box', 't4p-core' ),
			),
			'animation_type' => array(
				'type' => 'select',
				'label' => __( 'Animation Type', 't4p-core' ),
				'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
				'options' => array(
					'0' => 'None',
					'bounce' => 'Bounce',
					'fade' => 'Fade',
					'flash' => 'Flash',
					'shake' => 'Shake',
					'slide' => 'Slide',
				)
			),
			'animation_direction' => array(
				'type' => 'select',
				'label' => __( 'Direction of Animation', 't4p-core' ),
				'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
				'options' => array(
					'down' => 'Down',
					'left' => 'Left',
					'right' => 'Right',
					'up' => 'Up',
				)
			),
			'animation_speed' => array(
				'type' => 'select',
				'std' => '',
				'label' => __( 'Speed of Animation', 't4p-core' ),
				'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
        'options' => $dec_numbers,
			)
		),
		'shortcode' => '[content_box title="{{title}}" icon="{{icon}}" image="{{image}}" image_width="{{image_width}}" image_height="{{image_height}}" link="{{link}}" linktarget="{{target}}" linktext="{{linktext}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"]{{content}}[/content_box]',
		'clone_button' => __('Add New Content Box', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Counters Circle Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['counterscircle'] = array(
	'params' => array(

	),
	'shortcode' => '[counters_circle]{{child_shortcode}}[/counters_circle]', // as there is no wrapper shortcode
	'popup_title' => __('Counters Circle Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'value' => array(
				'type' => 'select',
				'label' => __('Filled Area Percentage', 't4p-core'),
				'desc' => __('From 1% to 100%', 't4p-core'),
				'options' => t4p_shortcodes_range(100, false)
			),
			'filledcolor' => array(
				'type' => 'colorpicker',
				'label' => __('Filled Color', 't4p-core'),
				'desc' => __('Color for filled in area', 't4p-core')
			),
			'unfilledcolor' => array(
				'type' => 'colorpicker',
				'label' => __('Unfilled Color', 't4p-core'),
				'desc' => __('Color for unfilled area', 't4p-core')
			),
      'size' => array(
				'std' => '220',
				'type' => 'text',
				'label' => __( 'Size of the Counter', 't4p-core' ),
				'desc' => __( 'Insert size of the counter in px. ex: 220', 't4p-core' ),
			),
			'speed' => array(
				'std' => '1500',
				'type' => 'text',
				'label' => __( 'Animation Speed', 't4p-core' ),
				'desc' => __( 'Insert animation speed in milliseconds', 't4p-core' ),
			),
			'content' => array(
				'std' => 'Text',
				'type' => 'text',
				'label' => __( 'Counter Circle Text', 't4p-core' ),
				'desc' => __( 'Insert text for counter circle box, keep it short', 't4p-core' ),
			)
		),
		'shortcode' => '[counter_circle filledcolor="{{filledcolor}}" unfilledcolor="{{unfilledcolor}}" size="{{size}}" speed="{{speed}}" value="{{value}}"]{{content}}[/counter_circle]',
		'clone_button' => __('Add New Counter Circle', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Counters Box Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['countersbox'] = array(
	'params' => array(

	),
	'shortcode' => '[counters_box]{{child_shortcode}}[/counters_box]', // as there is no wrapper shortcode
	'popup_title' => __('Counters Box Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'value' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Counter Value', 't4p-core'),
				'desc' => __('The number to which the counter will animate', 't4p-core')
			),
			'unit' => array(
				'std' => '',
				'type' => 'text',
				'label' => __( 'Counter Box Unit', 't4p-core' ),
				'desc' => __( 'Insert a unit for the counter. ex %', 't4p-core' ),
			),
			'unitpos' => array(
				'std' => '',
				'type' => 'select',
				'label' => __( 'Counter Box Unit Position', 't4p-core' ),
				'desc' => __( 'Select the position of the specified unit.', 't4p-core' ),
				'options' => array(
					'prefix' => 'Left',
					'suffix' => 'Right',
				)					
			),	      
			'content' => array(
				'std' => 'Text',
				'type' => 'text',
				'label' => __( 'Counter Box Text', 't4p-core' ),
				'desc' => __( 'Insert text for counter box', 't4p-core' ),
			)
		),
		'shortcode' => '[counter_box value="{{value}}" unit="{{unit}}" unit_pos="{{unitpos}}"]{{content}}[/counter_box]',    
		'clone_button' => __('Add New Counter Box', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Dropcap Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['dropcap'] = array(
	'no_preview' => true,
	'params' => array(

		'content' => array(
			'std' => 'A',
			'type' => 'textarea',
			'label' => __( 'Dropcap Letter', 't4p-core' ),
			'desc' => __( 'Add the letter to be used as dropcap', 't4p-core' ),
		)

	),
	'shortcode' => '[dropcap]{{content}}[/dropcap]',
	'popup_title' => __( 'Dropcap Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Flexslider Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['flexslider'] = array(
	'no_preview' => true,
	'params' => array(

		'type' => array(
			'type' => 'select',
			'label' => __('Layout', 't4p-core'),
			'desc' => __('Choose a layout style for Flexslider', 't4p-core'),
			'options' => array(
				'posts' => 'Posts with Title',
				'posts-with-excerpt' => 'Posts with Title and Excerpt',
				'attachments' => 'Attachment Layout, Only Images Attached to Post/Page'
			)
		),
		'excerpt' => array(
			'std' => 35,
			'type' => 'select',
			'label' => __('Excerpt Number of Words', 't4p-core'),
			'desc' => __('Insert the number of words you want to show in the excerpt.', 't4p-core'),
			'options' => t4p_shortcodes_range( 50, false)
		),
		'category' => array(
			'std' => 35,
			'type' => 'select',
			'label' => __('Category', 't4p-core'),
			'desc' => __('Select a category of posts to display', 't4p-core'),
			'options' => t4p_shortcodes_categories( 'category', true )
		),
		'limit' => array(
			'std' => 3,
			'type' => 'select',
			'label' => __('Number of Slides', 't4p-core'),
			'desc' => __('Select the number of slides to display', 't4p-core'),
			'options' => t4p_shortcodes_range( 10, false )
		),
		'lightbox' => array(
			'type' => 'select',
			'label' => __('Lightbox on Click', 't4p-core'),
			'desc' => __('Only works on attachment layout', 't4p-core'),
			'options' => $choices
		),
		'image' => array(
			'type' => 'gallery',
			'label' => __('Attach Images to Post/Page Gallery', 't4p-core'),
			'desc' => 'Only works for attachments layout'
		),
	),
	'shortcode' => '[flexslider layout="{{type}}" excerpt="{{excerpt}}" category="{{category}}" limit="{{limit}}" id="" lightbox="{{lightbox}}"][/flexslider]',
	'popup_title' => __( 'Flexslider Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	FontAwesome Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['fontawesome'] = array(
	'no_preview' => true,
	'params' => array(

		'icon' => array(
			'type' => 'iconpicker',
			'label' => __('Select Icon', 't4p-core'),
			'desc' => __('Click an icon to select, click again to deselect', 't4p-core'),
			'options' => $icons
		),
		'circle' => array(
			'type' => 'select',
			'label' => __('Icon in Circle', 't4p-core'),
			'desc' => 'Choose to display the icon in a circle',
			'options' => $choices
		),
		'size' => array(
			'type' => 'select',
			'label' => __('Size of Icon', 't4p-core'),
			'desc' => 'Select the size of the icon',
			'options' => array(
				'large' => 'Large',
				'medium' => 'Medium',
				'small' => 'Small'
			)
		),
		'iconcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'circlecolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Circle Background Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'circlebordercolor' => array(
			'type' => 'colorpicker',
			'label' => __('Icon Circle Border Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
	'shortcode' => '[fontawesome icon="{{icon}}" circle="{{circle}}" size="{{size}}" iconcolor="{{iconcolor}}" circlecolor="{{circlecolor}}" circlebordercolor="{{circlebordercolor}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"]',
	'popup_title' => __( 'FontAwesome Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Fullwidth Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['fullwidth'] = array(
	'no_preview' => true,
	'params' => array(
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Background Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'backgroundimage' => array(
			'type' => 'uploader',
			'label' => __('Backgrond Image', 't4p-core'),
			'desc' => 'Upload an image to display in the background'
		),
		'backgroundrepeat' => array(
			'type' => 'select',
			'label' => __('Background Repeat', 't4p-core'),
			'desc' => 'Choose how the background image repeats.',
			'options' => array(
				'no-repeat' => 'No Repeat',
				'repeat' => 'Repeat Vertically and Horizontally',
				'repeat-x' => 'Repeat Horizontally',
				'repeat-y' => 'Repeat Vertically'
			)
		),
		'backgroundposition' => array(
			'type' => 'select',
			'label' => __('Background Position', 't4p-core'),
			'desc' => 'Choose the postion of the background image',
			'options' => array(
				'left top' => 'Left Top',
				'left center' => 'Left Center',
				'left bottom' => 'Left Bottom',
				'right top' => 'Right Top',
				'right center' => 'Right Center',
				'right bottom' => 'Right Bottom',
				'center top' => 'Center Top',
				'center center' => 'Center Center',
				'center bottom' => 'Center Bottom'
			)
		),
		'backgroundattachment' => array(
			'type' => 'select',
			'label' => __('Background Scroll', 't4p-core'),
			'desc' => 'Choose how the background image scrolls',
			'options' => array(
				'scroll' => 'Scroll: background scrolls along with the element',
				'fixed' => 'Fixed: background is fixed giving a parallax effect',
				'local' => 'Local: background scrolls along with the element\'s contents'
			)
		),
		'bordersize' => array(
			'std' => 1,
			'type' => 'select',
			'label' => __( 'Border Size', 't4p-core' ),
			'desc' => __( 'In pixels', 't4p-core' ),
			'options' => t4p_shortcodes_range( 10, false, false ,0 )
		),
		'bordercolor' => array(
			'type' => 'colorpicker',
			'label' => __('Border Color', 't4p-core'),
			'desc' => __('Leave blank for default', 't4p-core')
		),
		'paddingtop' => array(
			'std' => 20,
			'type' => 'select',
			'label' => __( 'Padding Top', 't4p-core' ),
			'desc' => __( 'In pixels', 't4p-core' ),
			'options' => t4p_shortcodes_range( 100, false )
		),
		'paddingbottom' => array(
			'std' => 20,
			'type' => 'select',
			'label' => __( 'Padding Bottom', 't4p-core' ),
			'desc' => __( 'In pixels', 't4p-core' ),
			'options' => t4p_shortcodes_range( 100, false )
		),
		'menuanchor' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Name Of Menu Anchor', 't4p-core'),
			'desc' => 'This name will be the id you will have to use in your one page menu.',
		),    
		'content' => array(
			'std' => 'Your Content Goes Here',
			'type' => 'textarea',
			'label' => __( 'Content', 't4p-core' ),
			'desc' => __( 'Add content', 't4p-core' ),
		),
	),
	'shortcode' => '[fullwidth menu_anchor="{{menuanchor}}" backgroundcolor="{{backgroundcolor}}" backgroundimage="{{backgroundimage}}" backgroundrepeat="{{backgroundrepeat}}" backgroundposition="{{backgroundposition}}" backgroundattachment="{{backgroundattachment}}" bordersize="{{bordersize}}px" bordercolor="{{bordercolor}}" paddingTop="{{paddingtop}}px" paddingBottom="{{paddingbottom}}px"]{{content}}[/fullwidth]',  
	'popup_title' => __( 'Fullwidth Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Google Map Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['googlemap'] = array(
	'no_preview' => true,
	'params' => array(

		'type' => array(
			'type' => 'select',
			'label' => __('Map Type', 't4p-core'),
			'desc' => __('Select the type of google map to display', 't4p-core'),
			'options' => array(
				'roadmap' => 'Roadmap',
				'satellite' => 'Satellite',
				'hybrid' => 'Hybrid',
				'terrain' => 'Terrain'
			)
		),
		'width' => array(
			'std' => '100%',
			'type' => 'text',
			'label' => __('Map Width', 't4p-core'),
			'desc' => __('Map Width in Percentage or Pixels', 't4p-core')
		),
		'height' => array(
			'std' => '300px',
			'type' => 'text',
			'label' => __('Map Height', 't4p-core'),
			'desc' => __('Map Height in Percentage or Pixels', 't4p-core')
		),
		'zoom' => array(
			'std' => 14,
			'type' => 'select',
			'label' => __('Zoom Level', 't4p-core'),
			'desc' => 'Higher number will be more zoomed in.',
			'options' => t4p_shortcodes_range( 25, false )
		),
		'scrollwheel' => array(
			'type' => 'select',
			'label' => __('Scrollwheel on Map', 't4p-core'),
			'desc' => 'Enable zooming using a mouse\'s scroll wheel',
			'options' => $choices
		),
		'scale' => array(
			'type' => 'select',
			'label' => __('Show Scale Control on Map', 't4p-core'),
			'desc' => 'Display the map scale',
			'options' => $choices
		),
		'zoom_pancontrol' => array(
			'type' => 'select',
			'label' => __('Show Pan Control on Map', 't4p-core'),
			'desc' => 'Displays pan control button',
			'options' => $choices
		),
		'popup' => array(
			'type' => 'select',
			'label' => __('Show tooltip by default?', 't4p-core'),
			'desc' => 'Display or hide tooltip by default when the map first loads',
			'options' => $choices
		),    
		'content' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __( 'Address', 't4p-core' ),
			'desc' => __( 'Add address to the location which will show up on map. For multiple addresses, separate addresses by using the | symbol. <br />ex: Address 1|Address 2|Address 3', 't4p-core' ),
		)
	),
	'shortcode' => '[map address="{{content}}" type="{{type}}" width="{{width}}" height="{{height}}" zoom="{{zoom}}" scrollwheel="{{scrollwheel}}" scale="{{scale}}" zoom_pancontrol="{{zoom_pancontrol}}" popup="{{popup}}"][/map]',  
	'popup_title' => __( 'Google Map Shortcode', 't4p-core' ),
);

/*-----------------------------------------------------------------------------------*/
/*	Highlight Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['highlight'] = array(
	'no_preview' => true,
	'params' => array(

		'color' => array(
			'type' => 'colorpicker',
			'label' => __('Highlight Color', 't4p-core'),
			'desc' => __('Pick a highlight color', 't4p-core')
		),
		'content' => array(
			'std' => 'Your Content Goes Here',
			'type' => 'textarea',
			'label' => __( 'Content to Higlight', 't4p-core' ),
			'desc' => __( 'Add your content to be highlighted', 't4p-core' ),
		)

	),
	'shortcode' => '[highlight color="{{color}}"]{{content}}[/highlight]',
	'popup_title' => __( 'Highlight Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Image Frame Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['imageframe'] = array(
	'no_preview' => true,
	'params' => array(
		'style' => array(
			'type' => 'select',
			'label' => __('Frame style type', 't4p-core'),
			'desc' => __('Selected the frame style type', 't4p-core'),
			'options' => array(
				'none' => 'None',
				'border' => 'Border',
				'glow' => 'Glow',
				'dropshadow' => 'Drop Shadow',
				'bottomshadow' => 'Bottom Shadow'
			)
		),
		'bordercolor' => array(
			'type' => 'colorpicker',
			'label' => __( 'Border Color', 't4p-core' ),
			'desc' => __( 'For border style type only', 't4p-core' ),
		),
		'bordersize' => array(
			'std' => 0,
			'type' => 'select',
			'label' => __( 'Border Size', 't4p-core' ),
			'desc' => __( 'In pixels, only for border style type', 't4p-core' ),
			'options' => t4p_shortcodes_range( 10, false, false, 0 )
		),
		'stylecolor' => array(
			'type' => 'colorpicker',
			'label' => __( 'Style Color', 't4p-core' ),
			'desc' => __( 'For all style types except border', 't4p-core' ),
		),
		'align' => array(
			'std' => 'none',
			'type' => 'select',
			'label' => __( 'Align', 't4p-core' ),
			'desc' => 'Choose how to align the image',
			'options' => array(
				'none' => 'None',      
				'left' => 'Left',
				'right' => 'Right',
				'center' => 'Center'
			)
		),
		'lightbox' => array(
			'type' => 'select',
			'label' => __('Image lightbox', 't4p-core'),
			'desc' => __('Show image in Lightbox', 't4p-core'),
			'options' => $reverse_choices
		),
		'image' => array(
			'type' => 'uploader',
			'label' => __('Image', 't4p-core'),
			'desc' => 'Upload an image to display in the frame'
		),
		'alt' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Image Alt Text', 't4p-core'),
			'desc' => 'The alt attribute provides alternative information if an image cannot be viewed'
		),
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
	'shortcode' => '[imageframe lightbox="{{lightbox}}" style="{{style}}" bordercolor="{{bordercolor}}" bordersize="{{bordersize}}px" stylecolor="{{stylecolor}}" align="{{align}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"]&lt;img alt="{{alt}}" src="{{image}}" /&gt;[/imageframe]',
	'popup_title' => __( 'Image Frame Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Image Carousel Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['imagecarousel'] = array(
	'params' => array(
		'lightbox' => array(
			'type' => 'select',
			'label' => __('Image lightbox', 't4p-core'),
			'desc' => __('Show Image in Lightbox', 't4p-core'),
			'options' => $choices
		),
	),
	'shortcode' => '[images lightbox="{{lightbox}}"]{{child_shortcode}}[/images]', // as there is no wrapper shortcode
	'popup_title' => __('Image Carousel Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'url' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Image Website Link', 't4p-core'),
				'desc' => __('Add the url to image\'s website. If lightbox option is enabled, you have to add the full image link to show it in the lightbox', 't4p-core')
			),
			'target' => array(
				'type' => 'select',
				'label' => __('Link Target', 't4p-core'),
				'desc' => __('_self = open in same window <br />_blank = open in new window', 't4p-core'),
				'options' => array(
					'_self' => '_self',
					'_blank' => '_blank'
				)
			),
			'image' => array(
				'type' => 'uploader',
				'label' => __('Image', 't4p-core'),
				'desc' => 'Upload an image to display'
			),
			'alt' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Image Alt Text', 't4p-core'),
				'desc' => 'The alt attribute provides alternative information if an image cannot be viewed'
			)
		),
		'shortcode' => '[image link="{{url}}" linktarget="{{target}}" image="{{image}}" alt="{{alt}}"]',
		'clone_button' => __('Add New Image', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Lightbox Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['lightbox'] = array(
	'no_preview' => true,
	'params' => array(

		'full_image' => array(
			'type' => 'uploader',
			'label' => __('Full Image', 't4p-core'),
			'desc' => 'Upload an image that will show up in the lightbox'
		),
		'thumb_image' => array(
			'type' => 'uploader',
			'label' => __('Thumbnail Image', 't4p-core'),
			'desc' => 'Clicking this image will show lightbox'
		),
		'alt' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Alt Text', 't4p-core'),
			'desc' => 'The alt attribute provides alternative information if an image cannot be viewed'
		),
		'title' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Lightbox Description', 't4p-core'),
			'desc' => 'This will show up in the lightbox as a description below the image'
		),
	),
	'shortcode' => '&lt;a title="{{title}}" href="{{full_image}}" rel="prettyPhoto"&gt;&lt;img alt="{{alt}}" src="{{thumb_image}}" /&gt;&lt;/a&gt;',
	'popup_title' => __( 'Lightbox Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Menu Anchor Config
/*-----------------------------------------------------------------------------------*/



$t4p_shortcodes['menuanchor'] = array(
	'no_preview' => true,
	'params' => array(

		'name' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Name Of Menu Anchor', 't4p-core'),
			'desc' => 'This name will be the id you will have to use in your one page menu.',

		)
	),
	'shortcode' => '[menu_anchor name="{{name}}"]',
	'popup_title' => __( 'Menu Anchor Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Person Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['person'] = array(
	'no_preview' => true,
	'params' => array(

		'picture' => array(
			'type' => 'uploader',
			'label' => __('Picture', 't4p-core'),
			'desc' => 'Upload an image to display'
		),
	  'pic_link' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Picture Link URL', 't4p-core'),
			'desc' => 'Add the URL the picture will link to, ex: http://example.com'
		),    
		'name' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Name', 't4p-core'),
			'desc' => 'Insert the name of the person'
		),
		'title' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Title', 't4p-core'),
			'desc' => 'Insert the title of the person'
		),
		'email' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Email Address', 't4p-core'),
			'desc' => 'Insert an email address to display the email icon'
		),
		'facebook' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Facebook Profile Link', 't4p-core'),
			'desc' => 'Insert a url to display the facebook icon'
		),
		'twitter' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Twitter Profile Link', 't4p-core'),
			'desc' => 'Insert a url to display the twitter icon'
		),
		'linkedin' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('LinkedIn Profile Link', 't4p-core'),
			'desc' => 'Insert a url to display the linkedin icon'
		),
		'dribbble' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Dribbble Profile Link', 't4p-core'),
			'desc' => 'Insert a url to display the dribbble icon'
		),
		'target' => array(
			'type' => 'select',
			'label' => __('Link Target', 't4p-core'),
			'desc' => __('_self = open in same window <br /> _blank = open in new window', 't4p-core'),
			'options' => array(
				'_self' => '_self',
				'_blank' => '_blank'
			)
		),
		'content' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __('Profile Description', 't4p-core'),
			'desc' => 'Enter the content to be displayed'
		),
	),
	'shortcode' => '[person name="{{name}}" picture="{{picture}}" pic_link="{{pic_link}}" title="{{title}}" email="{{email}}" facebook="{{facebook}}" twitter="{{twitter}}" linkedin="{{linkedin}}" dribbble="{{dribbble}}" linktarget="{{target}}"]{{content}}[/person]',
	'popup_title' => __( 'Person Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Progress Bar Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['progressbar'] = array(
	'params' => array(

		'value' => array(
			'type' => 'select',
			'label' => __('Filled Area Percentage', 't4p-core'),
			'desc' => __('From 1% to 100%', 't4p-core'),
			'options' => t4p_shortcodes_range(100, false)
		),
	  'unit' => array(
			'std' => '',
			'type' => 'text',
			'label' => __( 'Progress Bar Unit', 't4p-core' ),
			'desc' => __( 'Insert a unit for the progress bar. ex %', 't4p-core' ),
		),    
		'filledcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Filled Color', 't4p-core'),
			'desc' => __('Color for filled in area', 't4p-core')
		),
		'unfilledcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Unfilled Color', 't4p-core'),
			'desc' => __('Color for unfilled area', 't4p-core')
		),
		'content' => array(
			'std' => 'Text',
			'type' => 'text',
			'label' => __( 'Progess Bar Text', 't4p-core' ),
			'desc' => __( 'Text will show up on progess bar', 't4p-core' ),
		)
	),
	'shortcode' => '[progress percentage="{{value}}" unit="{{unit}}" filledcolor="{{filledcolor}}" unfilledcolor="{{unfilledcolor}}"]{{content}}[/progress]', // as there is no wrapper shortcode
	'popup_title' => __('Progress Bar Shortcode', 't4p-core'),
	'no_preview' => true,
);

/*-----------------------------------------------------------------------------------*/
/*	Recent Posts Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['recentposts'] = array(
	'no_preview' => true,
	'params' => array(

		'layout' => array(
			'type' => 'select',
			'label' => __( 'Layout', 't4p-core' ),
			'desc' => 'Select the layout for the shortcode',
			'options' => array(
				'default' => 'Default',
				'thumbnails-on-side' => 'Thumbnails on Side',
				'date-on-side' => 'Date on Side',
			)
		),
		'columns' => array(
			'type' => 'select',
			'label' => __('Columns', 't4p-core'),
			'desc' => __('Select the number of columns to display', 't4p-core'),
			'options' => t4p_shortcodes_range( 4, false )
		),
		'number_posts' => array(
			'std' => 4,
			'type' => 'select',
			'label' => __('Number of Posts', 't4p-core'),
			'desc' => 'Select the number of posts to display',
			'options' => t4p_shortcodes_range( 12, false )
		),
		'cat_slug' => array(
			'type' => 'multiple_select',
			'label' => __( 'Categories', 't4p-core' ),
			'desc' => __( 'Select a category or leave blank for all', 't4p-core' ),
			'options' => t4p_shortcodes_categories( 'category' )
		),
		'exclude_cats' => array(
			'type' => 'multiple_select',
			'label' => __( 'Exclude Categories', 't4p-core' ),
			'desc' => __( 'Select a category to exclude', 't4p-core' ),
			'options' => t4p_shortcodes_categories( 'category' )
		),
		'thumbnail' => array(
			'type' => 'select',
			'label' => __('Show Thumbnail', 't4p-core'),
			'desc' => 'Display the post featured image',
			'options' => $choices
		),
		'title' => array(
			'type' => 'select',
			'label' => __('Show Title', 't4p-core'),
			'desc' => 'Display the post title below the featured image',
			'options' => $choices
		),
		'meta' => array(
			'type' => 'select',
			'label' => __('Show Meta', 't4p-core'),
			'desc' => 'Choose to show all meta data',
			'options' => $choices
		),
		'excerpt' => array(
			'type' => 'select',
			'label' => __('Show Excerpt', 't4p-core'),
			'desc' => 'Choose to display the post excerpt',
			'options' => $choices
		),
		'excerpt_words' => array(
			'std' => 35,
			'type' => 'select',
			'label' => __('Number of Excerpt Words', 't4p-core'),
			'desc' => 'Insert the number of words you want to show in the excerpt',
			'options' => t4p_shortcodes_range( 60, false )
		),
		'strip_html' => array(
			'type' => 'select',
			'label' => __('Strip HTML', 't4p-core'),
			'desc' => 'Strip HTML from the post excerpt',
			'options' => $choices
		),
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
	'shortcode' => '[recent_posts layout="{{layout}}" columns="{{columns}}" number_posts="{{number_posts}}" cat_slug="{{cat_slug}}" exclude_cats="{{exclude_cats}}" thumbnail="{{thumbnail}}" title="{{title}}" meta="{{meta}}" excerpt="{{excerpt}}" excerpt_words="{{excerpt_words}}" strip_html="{{strip_html}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"][/recent_posts]',
	'popup_title' => __( 'Recent Posts Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Separator Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['separator'] = array(
	'no_preview' => true,
	'params' => array(

		'style' => array(
			'type' => 'select',
			'label' => __( 'Style', 't4p-core' ),
			'desc' => 'Choose the separator line style',
			'options' => array(
				'none' => 'No Style',
				'single' => 'Single Border',
				'double' => 'Double Border',
				'dashed' => 'Dashed Border',
				'dotted' => 'Dotted Border',
				'shadow' => 'Shadow'
			)
		),
		'top' => array(
			'std' => 40,
			'type' => 'select',
			'label' => __('Margin Top', 't4p-core'),
			'desc' => 'Spacing above the separator',
			'options' => t4p_shortcodes_range( 100, false, false, 0 )
	),
		'bottom' => array(
			'std' => 40,
			'type' => 'select',
			'label' => __('Margin Bottom', 't4p-core'),
			'desc' => 'Spacing below the separator',
			'options' => t4p_shortcodes_range( 100, false, false, 0 )      
		)
	),
	'shortcode' => '[separator top="{{top}}" bottom="{{bottom}}" style="{{style}}"]',  
	'popup_title' => __( 'Separator Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Sharing Box Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['sharingbox'] = array(
	'no_preview' => true,
	'params' => array(

		'tagline' => array(
			'std' => 'Share This',
			'type' => 'text',
			'label' => __('Tagline', 't4p-core'),
			'desc' => 'The title tagline that will display'
		),
		'title' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Title', 't4p-core'),
			'desc' => 'The post title that will be shared'
		),
		'link' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Link', 't4p-core'),
			'desc' => 'The link that will be shared'
		),
		'description' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __('Description', 't4p-core'),
			'desc' => 'The description that will be shared'
		),
		'link' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Link to Share', 't4p-core'),
			'desc' => ''
		),
    'pinterest_image' => array(
			'std' => '',
			'type' => 'uploader',
			'label' => __('Choose Image to Share on Pinterest', 't4p-core'),
			'desc' => ''
		),
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'label' => __('Background Color', 't4p-core'),
			'desc' => __('Leave blank for default color', 't4p-core')
		),
	),
	'shortcode' => '[sharing tagline="{{tagline}}" title="{{title}}" link="{{link}}" description="{{description}}" pinterest_image="{{pinterest_image}}" backgroundcolor="{{backgroundcolor}}"][/sharing]',
	'popup_title' => __( 'Sharing Box Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Slider Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['slider'] = array(
	'params' => array(
		'size' => array(
			'std' => '100%',
			'type' => 'size',
			'label' => __('Image Size (Width/Height)', 't4p-core'),
			'desc' => __('Width and Height in percentage (%) or pixels (px)', 't4p-core'),
		),
	),
	'shortcode' => '[slider width="{{size_width}}" height="{{size_height}}"]{{child_shortcode}}[/slider]', // as there is no wrapper shortcode
	'popup_title' => __('Slider Shortcode', 't4p-core'),
	'no_preview' => true,

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'slider_type' => array(
				'type' => 'select',
				'label' => __('Slide Type', 't4p-core'),
				'desc' => 'Choose a video or image slide',
				'options' => array(
					'image' => 'Image',
					'video' => 'Video'
				)
			),
			'video_content' => array(
				'std' => '',
				'type' => 'textarea',
				'label' => __('Video Shortcode or Video Embed Code', 't4p-core'),
				'desc' => 'Click the Youtube or Vimeo Shortcode button below then enter your unique video ID, or copy and paste your video embed code.<a href=\'[youtube id="Enter video ID (eg. Wq4Y7ztznKc)" width="600" height="350"]\' class="t4p-shortcodes-button t4p-add-video-shortcode">Insert Youtube Shortcode</a><a href=\'[vimeo id="Enter video ID (eg. 10145153)" width="600" height="350"]\' class="t4p-shortcodes-button t4p-add-video-shortcode">Insert Vimeo Shortcode</a>'
			),
			'image_content' => array(
				'std' => '',
				'type' => 'uploader',
				'label' => __('Slide Image', 't4p-core'),
				'desc' => 'Upload an image to display in the slide'
			),
			'image_url' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Full Image Link or External Link', 't4p-core'),
        'desc' => 'Add the url of where the image will link to. If lightbox option is enabled,and you don\'t add the full image link, lightbox will open slide image'
			),
			'image_target' => array(
				'type' => 'select',
				'label' => __('Link Target', 't4p-core'),
				'desc' => __('_self = open in same window <br /> _blank = open in new window', 't4p-core'),
				'options' => array(
					'_self' => '_self',
					'_blank' => '_blank'
				)
			),
			'image_lightbox' => array(
				'type' => 'select',
				'label' => __('Lighbox', 't4p-core'),
				'desc' => __('Show image in Lightbox', 't4p-core'),
				'options' => $choices
			),
		),
		'shortcode' => '[slide type="{{slider_type}}" link="{{image_url}}" linktarget="{{image_target}}" lightbox="{{image_lightbox}}"]{{image_content}}[/slide]',
		'clone_button' => __('Add New Slide', 't4p-core')
	)
);


/*-----------------------------------------------------------------------------------*/
/*	SoundCloud Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['soundcloud'] = array(
	'no_preview' => true,
	'params' => array(

		'url' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('SoundCloud Url', 't4p-core'),
			'desc' => 'The SoundCloud url, ex: http://api.soundcloud.com/tracks/110813479'
		),
		'comments' => array(
			'type' => 'select',
			'label' => __('Show Comments', 't4p-core'),
			'desc' => 'Choose to display comments',
			'options' => $choices
		),
		'auto_play' => array(
			'type' => 'select',
			'label' => __('Autoplay', 't4p-core'),
			'desc' => 'Choose to autoplay the track',
			'options' => $reverse_choices
		),
		'color' => array(
			'type' => 'colorpicker',
			'std' => '#ff7700',
			'label' => __('Color', 't4p-core'),
			'desc' => 'Select the color of the shortcode'
		),
		'width' => array(
			'std' => '100%',
			'type' => 'text',
			'label' => __('Width', 't4p-core'),
			'desc' => 'In pixels (px) or percentage (%)'
		),
		'height' => array(
			'std' => '81px',
			'type' => 'text',
			'label' => __('Height', 't4p-core'),
			'desc' => 'In pixels (px)'
		),
	),
	'shortcode' => '[soundcloud url="{{url}}" comments="{{comments}}" auto_play="{{auto_play}}" color="{{color}}" width="{{width}}" height="{{height}}"]',
	'popup_title' => __( 'Sharing Box Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Social Links Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['sociallinks'] = array(
	'no_preview' => true,
	'params' => array(

		'colorscheme' => array(
			'type' => 'select',
			'label' => __('Color Scheme', 't4p-core'),
			'desc' => 'Choose the color scheme for the social links',
			'options' => array(
				'' => 'Default',
				'light' => 'Light',
				'dark' => 'Dark'
			)
		),
		'target' => array(
			'type' => 'select',
			'label' => __('Link Target', 't4p-core'),
			'desc' => __('_self = open in same window <br />_blank = open in new window', 't4p-core'),
			'options' => array(
				'_self' => '_self',
				'_blank' => '_blank'
			)
		),
		'rss' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('RSS Link', 't4p-core'),
			'desc' => 'Insert your custom RSS link'
		),
		'facebook' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Facebook Link', 't4p-core'),
			'desc' => 'Insert your custom Facebook link'
		),
		'twitter' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Twitter Link', 't4p-core'),
			'desc' => 'Insert your custom Twitter link'
		),
		'dribbble' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Dribbble Link', 't4p-core'),
			'desc' => 'Insert your custom Dribbble link'
		),
		'google' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Google+ Link', 't4p-core'),
			'desc' => 'Insert your custom Google+ link'
		),
		'linkedin' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('LinkedIn Link', 't4p-core'),
			'desc' => 'Insert your custom LinkedIn link'
		),
		'blogger' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Blogger Link', 't4p-core'),
			'desc' => 'Insert your custom Blogger link'
		),
		'tumblr' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Tumblr Link', 't4p-core'),
			'desc' => 'Insert your custom Tumblr link'
		),
		'reddit' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Reddit Link', 't4p-core'),
			'desc' => 'Insert your custom Reddit link'
		),
		'yahoo' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Yahoo Link', 't4p-core'),
			'desc' => 'Insert your custom Yahoo link'
		),
		'deviantart' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Deviantart Link', 't4p-core'),
			'desc' => 'Insert your custom Deviantart link'
		),
		'vimeo' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Vimeo Link', 't4p-core'),
			'desc' => 'Insert your custom Vimeo link'
		),
		'youtube' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Youtube Link', 't4p-core'),
			'desc' => 'Insert your custom Youtube link'
		),
		'pinterest' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Pinterest Link', 't4p-core'),
			'desc' => 'Insert your custom Pinterest link'
		),
		'digg' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Digg Link', 't4p-core'),
			'desc' => 'Insert your custom Digg link'
		),
		'flickr' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Flickr Link', 't4p-core'),
			'desc' => 'Insert your custom Flickr link'
		),
		'forrst' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Forrst Link', 't4p-core'),
			'desc' => 'Insert your custom Forrst link'
		),
		'myspace' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Myspace Link', 't4p-core'),
			'desc' => 'Insert your custom Myspace link'
		),
		'skype' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Skype Link', 't4p-core'),
			'desc' => 'Insert your custom Skype link'
		),
		'show_custom' => array(
			'type' => 'select',
			'label' => __('Show Custom Social Icon', 't4p-core'),
			'desc' => __('Show the custom social icon specified in Theme Options', 't4p-core'),
			'options' => $reverse_choices
		),    
	),
	'shortcode' => '[social_links colorscheme="{{colorscheme}}" linktarget="{{target}}" rss="{{rss}}" facebook="{{facebook}}" twitter="{{twitter}}" dribbble="{{dribbble}}" google="{{google}}" linkedin="{{linkedin}}" blogger="{{blogger}}" tumblr="{{tumblr}}" reddit="{{reddit}}" yahoo="{{yahoo}}" deviantart="{{deviantart}}" vimeo="{{vimeo}}" youtube="{{youtube}}" pinterest="{{pinterest}}" digg="{{digg}}" flickr="{{flickr}}" forrst="{{forrst}}" myspace="{{myspace}}" skype="{{skype}}" show_custom="{{show_custom}}"]',  
	'popup_title' => __( 'Social Links Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Tabs Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['tabs'] = array(
	'params' => array(

		'layout' => array(
			'type' => 'select',
			'label' => __('Layout', 't4p-core'),
			'desc' => 'Choose the layout of the shortcode',
			'options' => array(
				'horizontal' => 'Horizontal',
				'vertical' => 'Vertical'
			)
		),
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Background Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'inactivecolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Inactive Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
	),
	'no_preview' => true,
	'shortcode' => '[t4p_tabs layout="{{layout}}" backgroundcolor="{{backgroundcolor}}" inactivecolor="{{inactivecolor}}"]{{child_shortcode}}[/t4p_tabs]',
	'popup_title' => __('Insert Tab Shortcode', 't4p-core'),

	'child_shortcode' => array(
		'params' => array(
			'title' => array(
				'std' => 'Title',
				'type' => 'text',
				'label' => __('Tab Title', 't4p-core'),
				'desc' => __('Title of the tab', 't4p-core'),
			),
			'content' => array(
				'std' => 'Tab Content',
				'type' => 'textarea',
				'label' => __('Tab Content', 't4p-core'),
				'desc' => __('Add the tabs content', 't4p-core')
			)
		),
		'shortcode' => '[t4p_tab title="{{title}}"]{{content}}[/t4p_tab]',
		'clone_button' => __('Add Tab', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Tagline Box Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['taglinebox'] = array(
	'no_preview' => true,
	'params' => array(
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Background Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'shadow' => array(
			'type' => 'select',
			'label' => __('Shadow', 't4p-core'),
			'desc' => __('Show the shadow below the box', 't4p-core'),
			'options' => $reverse_choices
		),
		'border' => array(
			'std' => '0px',
			'type' => 'text',
			'label' => __('Border', 't4p-core'),
			'desc' => 'In pixels (px), ex: 1px'
		),
		'bordercolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Border Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'highlightposition' => array(
			'type' => 'select',
			'label' => __('Highlight Border Position', 't4p-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', 't4p-core'),
			'options' => array(
				'top' => 'Top',
				'bottom' => 'Bottom',
				'left' => 'Left',
				'right' => 'Right'
			)
		),
		'button' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Button Text', 't4p-core'),
			'desc' => 'Insert the text that will display in the button'
		),
		'url' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Link', 't4p-core'),
			'desc' => __('The url the button will link to', 't4p-core')
		),
		'target' => array(
			'type' => 'select',
			'label' => __('Link Target', 't4p-core'),
			'desc' => __('_self = open in same window <br /> _blank = open in new window', 't4p-core'),
			'options' => array(
				'_self' => '_self',
				'_blank' => '_blank'
			)
		),
		'buttoncolor' => array(
			'type' => 'select',
			'label' => __('Button Color', 't4p-core'),
			'desc' => 'Choose the button color <br />Default uses theme option selection',
			'options' => array(
				'' => 'Default',
				'green' => 'Green',
				'darkgreen' => 'Dark Green',
				'orange' => 'Orange',
				'blue' => 'Blue',
				'red' => 'Red',
				'pink' => 'Pink',
				'darkgray' => 'Dark Gray',
				'lightgray' => 'Light Gray',
			)
		),
		'title' => array(
			'type' => 'textarea',
			'label' => __('Tagline Title', 't4p-core'),
			'desc' => 'Insert the title text',
			'std' => 'Title'
		),
		'description' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __('Tagline Description', 't4p-core'),
			'desc' => 'Insert the description text',
		),
		'animation_type' => array(
			'type' => 'select',
			'label' => __( 'Animation Type', 't4p-core' ),
			'desc' => __( 'Select the type on animation to use on the shortcode', 't4p-core' ),
			'options' => array(
				'0' => 'None',
				'bounce' => 'Bounce',
				'fade' => 'Fade',
				'flash' => 'Flash',
				'shake' => 'Shake',
				'slide' => 'Slide',
			)
		),
		'animation_direction' => array(
			'type' => 'select',
			'label' => __( 'Direction of Animation', 't4p-core' ),
			'desc' => __( 'Select the incoming direction for the animation', 't4p-core' ),
			'options' => array(
				'down' => 'Down',
				'left' => 'Left',
				'right' => 'Right',
				'up' => 'Up',
			)
		),
		'animation_speed' => array(
			'type' => 'select',
			'std' => '',
			'label' => __( 'Speed of Animation', 't4p-core' ),
			'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 't4p-core' ),
      'options' => $dec_numbers,
		)
	),
	'shortcode' => '[tagline_box backgroundcolor="{{backgroundcolor}}" shadow="{{shadow}}" border="{{border}}" bordercolor="{{bordercolor}}" highlightposition="{{highlightposition}}" link="{{url}}" linktarget="{{target}}" buttoncolor="{{buttoncolor}}" button="{{button}}" title="{{title}}" description="{{description}}" animation_type="{{animation_type}}" animation_direction="{{animation_direction}}" animation_speed="{{animation_speed}}"][/tagline_box]',
	'popup_title' => __('Insert Tagline Box Shortcode', 't4p-core')
);

/*-----------------------------------------------------------------------------------*/
/*	Testimonials Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['testimonials'] = array(
	'params' => array(

		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Background Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'textcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Text Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
	),
	'no_preview' => true,
	'shortcode' => '[testimonials backgroundcolor="{{backgroundcolor}}" textcolor="{{textcolor}}"]{{child_shortcode}}[/testimonials]',
	'popup_title' => __('Insert Testimonials Shortcode', 't4p-core'),

	'child_shortcode' => array(
		'params' => array(
			'name' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Name', 't4p-core'),
				'desc' => 'Insert the name of the person',
			),
			'company' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Company', 't4p-core'),
				'desc' => 'Insert the name of the company',
			),
			'link' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Link', 't4p-core'),
				'desc' => 'Add the url the company name will link to'
			),
			'target' => array(
				'type' => 'select',
				'label' => __('Target', 't4p-core'),
				'desc' => __('_self = open in same window <br />_blank = open in new window', 't4p-core'),
				'options' => array(
					'_self' => '_self',
					'_blank' => '_blank'
				)
			),
			'content' => array(
				'std' => '',
				'type' => 'textarea',
				'label' => __('Testimonial Content', 't4p-core'),
				'desc' => 'Add the testimonial content'
			)
		),
		'shortcode' => '[testimonial name="{{name}}" company="{{company}}" link="{{link}}" target="{{target}}"]{{content}}[/testimonial]',
		'clone_button' => __('Add Testimonial', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Title Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['title'] = array(
	'no_preview' => true,
	'params' => array(

		'size' => array(
			'type' => 'select',
			'label' => __('Title Size', 't4p-core'),
			'desc' => 'Choose the title size, H1-H6',
			'options' => t4p_shortcodes_range( 6, false )
		),
		'content' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __('Title', 't4p-core'),
			'desc' => 'Insert the title text'
		),
	),
	'shortcode' => '[title size="{{size}}"]{{content}}[/title]',
	'popup_title' => __( 'Sharing Box Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Toggles Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['toggles'] = array(
	'params' => array(

	),
	'no_preview' => true,
	'shortcode' => '[accordian]{{child_shortcode}}[/accordian]',
	'popup_title' => __('Insert Toggles Shortcode', 't4p-core'),

	'child_shortcode' => array(
		'params' => array(
			'title' => array(
				'std' => '',
				'type' => 'text',
				'label' => __('Title', 't4p-core'),
				'desc' => 'Insert the toggle title',
			),
			'open' => array(
				'type' => 'select',
				'label' => __('Open by Default', 't4p-core'),
				'desc' => 'Choose to have the toggle open when page loads',
				'options' => $reverse_choices
			),
			'content' => array(
				'std' => '',
				'type' => 'textarea',
				'label' => __('Toggle Content', 't4p-core'),
				'desc' => 'Insert the toggle content'
			)
		),
		'shortcode' => '[toggle title="{{title}}" open="{{open}}"]{{content}}[/toggle]',
		'clone_button' => __('Add Toggle', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Tooltip Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['tooltip'] = array(
	'no_preview' => true,
	'params' => array(

		'title' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Tooltip Text', 't4p-core'),
			'desc' => 'Insert the text that displays in the tooltip'
		),
		'content' => array(
			'std' => '',
			'type' => 'textarea',
			'label' => __('Content', 't4p-core'),
			'desc' => 'Insert the text that will activate the tooltip hover'
		),
	),
	'shortcode' => '[tooltip title="{{title}}"]{{content}}[/tooltip]',
	'popup_title' => __( 'Tooltip Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Vimeo Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['vimeo'] = array(
	'no_preview' => true,
	'params' => array(

		'id' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Video ID', 't4p-core'),
			'desc' => 'For example the Video ID for <br />https://vimeo.com/75230326 is 75230326'
		),
		'width' => array(
			'std' => '600',
			'type' => 'text',
			'label' => __('Width', 't4p-core'),
			'desc' => 'In pixels but only enter a number, ex: 600'
		),
		'height' => array(
			'std' => '350',
			'type' => 'text',
			'label' => __('Height', 't4p-core'),
			'desc' => 'In pixels but enter a number, ex: 350'
		),
    'autoplay' => array(
			'type' => 'select',
			'label' => __( 'Autoplay Video', 't4p-core' ),
			'desc' =>  __( 'Set to yes to make video autoplaying', 't4p-core' ),
			'options' => $reverse_choices
		),
		'apiparams' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Additional API Parameter', 't4p-core'),
			'desc' => __( 'Use additional API parameter, for example &title=0 to disable title on video. VimeoPlus account may be required.', 't4p-core' ),
		),    
	),
	'shortcode' => '[vimeo id="{{id}}" width="{{width}}" height="{{height}}" autoplay="{{autoplay}}" api_params="{{apiparams}}"]',  
	'popup_title' => __( 'Vimeo Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Woo Featured Slider Config
/*-----------------------------------------------------------------------------------*/

$t4p_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://theme4press.com/alora-documentation/shortcodes/woocommerce-featured-products-slider/" target="_blank">WooCommerce Featured Products Slider</a>',
			'type' => 'info'
		)
	),
	'shortcode' => '[featured_products_slider]',
	'popup_title' => __( 'Woocommerce Featured Products Slider Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Woo Products Slider Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['wooproducts'] = array(
	'params' => array(

		'picture_size' => array(
			'type' => 'select',
			'label' => __('Picture Size', 't4p-core'),
			'desc' => __('fixed = width and height will be fixed <br />auto = width and height will adjust to the image.', 't4p-core'),
			'options' => array(
				'fixed' => 'Fixed',
				'auto' => 'Auto'
			)
		),
		'cat_slug' => array(
			'type' => 'multiple_select',
			'label' => __( 'Categories', 't4p-core' ),
			'desc' => __( 'Select a category or leave blank for all', 't4p-core' ),
			'options' => t4p_shortcodes_categories( 'product_cat' )
		),
		'number_posts' => array(
			'std' => 5,
			'type' => 'select',
			'label' => __('Number of Products', 't4p-core'),
			'desc' => 'Select the number of products to display',
			'options' => t4p_shortcodes_range( 20, false )
		),
		'show_cats' => array(
			'type' => 'select',
			'label' => __('Show Categories', 't4p-core'),
			'desc' => 'Choose to show or hide the categories',
			'options' => $reverse_choices
		),
		'show_price' => array(
			'type' => 'select',
			'label' => __('Show Price', 't4p-core'),
			'desc' => 'Choose to show or hide the price',
			'options' => $reverse_choices
		),
		'show_buttons' => array(
			'type' => 'select',
			'label' => __('Show Buttons', 't4p-core'),
			'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', 't4p-core'),
	'no_preview' => true,
);

/*-----------------------------------------------------------------------------------*/
/*	Youtube Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['youtube'] = array(
	'no_preview' => true,
	'params' => array(

		'id' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('Video ID', 't4p-core'),
			'desc' => 'For example the Video ID for <br />http://www.youtube.com/tr7IEI8ijJ8 is tr7IEI8ijJ8'
		),
		'width' => array(
			'std' => '600',
			'type' => 'text',
			'label' => __('Width', 't4p-core'),
			'desc' => 'In pixels but only enter a number, ex: 600'
		),
		'height' => array(
			'std' => '350',
			'type' => 'text',
			'label' => __('Height', 't4p-core'),
			'desc' => 'In pixels but only enter a number, ex: 350'
		),
    'autoplay' => array(
			'type' => 'select',
			'label' => __( 'Autoplay Video', 't4p-core' ),
			'desc' =>  __( 'Set to yes to make video autoplaying', 't4p-core' ),
			'options' => $reverse_choices
		),
		'apiparams' => array(
			'std' => '',
			'type' => 'text',
			'label' => __('AdditionalAPI Parameter', 't4p-core'),
			'desc' => __( 'Use additional API parameter, for example &rel=0 to disable related videos', 't4p-core' ),
		),    
	),
	'shortcode' => '[youtube id="{{id}}" width="{{width}}" height="{{height}}" autoplay="{{autoplay}}" api_params="{{apiparams}}"]',  
	'popup_title' => __( 'Vimeo Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Columns Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['columns'] = array(
	'shortcode' => ' {{child_shortcode}} ', // as there is no wrapper shortcode
	'popup_title' => __('Insert Columns Shortcode', 't4p-core'),
	'no_preview' => true,
  'params' => array(),

	// child shortcode is clonable & sortable
	'child_shortcode' => array(
		'params' => array(
			'column' => array(
				'type' => 'select',
				'label' => __('Column Type', 't4p-core'),
				'desc' => __('Select the width of the column', 't4p-core'),
				'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', 't4p-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',
				'options' => $reverse_choices
			),
			'content' => array(
				'std' => '',
				'type' => 'textarea',
				'label' => __('Column Content', 't4p-core'),
				'desc' => __('Insert the column content', 't4p-core'),
			)
		),
		'shortcode' => '[{{column}} last="{{last}}"]{{content}}[/{{column}}] ',
		'clone_button' => __('Add Column', 't4p-core')
	)
);

/*-----------------------------------------------------------------------------------*/
/*	Pricing Table Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['pricingtable'] = array(
	'no_preview' => true,
	'params' => array(

		'type' => array(
			'type' => 'select',
			'label' => __('Type', 't4p-core'),
			'desc' => __('Select the type of pricing table', 't4p-core'),
			'options' => array(
				'1' => 'Style 1 (Supports 5 Columns)',
				'2' => 'Style 2 (Supports 4 Columns)',
			)
		),
		'backgroundcolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Background Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'bordercolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Border Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'dividercolor' => array(
			'type' => 'colorpicker',
			'std' => '',
			'label' => __('Divider Color', 't4p-core'),
			'desc' => 'Leave blank for default'
		),
		'columns' => array(
			'type' => 'select',
			'label' => __('Number of Columns', 't4p-core'),
			'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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/pricing_footer][/pricing_column]&lt;br /&gt;' => '4 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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/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]&lt;a href=&quot;#&quot; class=&quot;default button small&quot;&gt;Sign Up&lt;/a&gt;[/pricing_footer][/pricing_column]&lt;br /&gt;' => '5 Columns'
			)
		)
	),
	'shortcode' => '[pricing_table type="{{type}}" backgroundcolor="{{backgroundcolor}}" bordercolor="{{bordercolor}}" dividercolor="{{dividercolor}}"]{{columns}}[/pricing_table]',
	'popup_title' => __( 'Pricing Table Shortcode', 't4p-core' )
);

/*-----------------------------------------------------------------------------------*/
/*	Table Config
/*-----------------------------------------------------------------------------------*/

$t4p_shortcodes['table'] = array(
	'no_preview' => true,
	'params' => array(

		'type' => array(
			'type' => 'select',
			'label' => __('Type', 't4p-core'),
			'desc' => __('Select the table style', 't4p-core'),
			'options' => array(
				'1' => 'Style 1',
				'2' => 'Style 2',
			)
		),
		'columns' => array(
			'type' => 'select',
			'label' => __('Number of Columns', 't4p-core'),
			'desc' => 'Select how many columns to display',
			'options' => array(
				'1' => '1 Column',
				'2' => '2 Columns',
				'3' => '3 Columns',
				'4' => '4 Columns'
			)
		)
	),
	'shortcode' => '',
	'popup_title' => __( 'Table Shortcode', 't4p-core' )
);