PageRenderTime 29ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/fusion-core/tinymce/config.php

https://gitlab.com/webkod3r/tripolis
PHP | 1246 lines | 1042 code | 45 blank | 159 comment | 11 complexity | 171844fba44d303ce345e98de250b716 MD5 | raw file
  1. <?php
  2. /*-----------------------------------------------------------------------------------*/
  3. /* Default Options
  4. /*-----------------------------------------------------------------------------------*/
  5. // Number of posts array
  6. function fusion_shortcodes_range ( $range, $all = true, $default = false, $range_start = 1 ) {
  7. if( $all ) {
  8. $number_of_posts['-1'] = 'All';
  9. }
  10. if( $default ) {
  11. $number_of_posts[''] = 'Default';
  12. }
  13. foreach( range( $range_start, $range ) as $number ) {
  14. $number_of_posts[$number] = $number;
  15. }
  16. return $number_of_posts;
  17. }
  18. // Taxonomies
  19. function fusion_shortcodes_categories ( $taxonomy, $empty_choice = false, $empty_choice_label = 'Default' ) {
  20. $post_categories = array();
  21. if( $empty_choice == true ) {
  22. $post_categories[''] = $empty_choice_label;
  23. }
  24. $get_categories = get_categories('hide_empty=0&taxonomy=' . $taxonomy);
  25. if( ! is_wp_error( $get_categories ) ) {
  26. if( $get_categories && is_array($get_categories) ) {
  27. foreach ( $get_categories as $cat ) {
  28. if( array_key_exists('slug', $cat) &&
  29. array_key_exists('name', $cat)
  30. ) {
  31. $post_categories[$cat->slug] = $cat->name;
  32. }
  33. }
  34. }
  35. if( isset( $post_categories ) ) {
  36. return $post_categories;
  37. }
  38. }
  39. }
  40. function get_sidebars() {
  41. global $wp_registered_sidebars;
  42. $sidebars = array();
  43. foreach( $wp_registered_sidebars as $sidebar_id => $sidebar ) {
  44. $sidebars[$sidebar_id] = $sidebar['name'];
  45. }
  46. return $sidebars;
  47. }
  48. $choices = array( 'yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core') );
  49. $reverse_choices = array( 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core') );
  50. $choices_with_default = array( '' => __('Default', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core') );
  51. $reverse_choices_with_default = array( '' => __('Default', 'fusion-core'), 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core') );
  52. $leftright = array( 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core') );
  53. $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' );
  54. $animation_type = array(
  55. '0' => __( 'None', 'fusion-core' ),
  56. 'bounce' => __( 'Bounce', 'fusion-core' ),
  57. 'fade' => __( 'Fade', 'fusion-core' ),
  58. 'flash' => __( 'Flash', 'fusion-core' ),
  59. 'rubberBand' => __( 'Rubberband', 'fusion-core' ),
  60. 'shake' => __( 'Shake', 'fusion-core' ),
  61. 'slide' => __( 'Slide', 'fusion-core' ),
  62. 'zoom' => __( 'Zoom', 'fusion-core' ),
  63. );
  64. $animation_direction = array(
  65. 'down' => __( 'Down', 'fusion-core' ),
  66. 'left' => __( 'Left', 'fusion-core' ),
  67. 'right' => __( 'Right', 'fusion-core' ),
  68. 'up' => __( 'Up', 'fusion-core' ),
  69. 'static' => __( 'Static', 'fusion-core' ),
  70. );
  71. // Fontawesome icons list
  72. $pattern = '/\.(fa-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
  73. $fontawesome_path = FUSION_TINYMCE_DIR . '/css/font-awesome.css';
  74. if( file_exists( $fontawesome_path ) ) {
  75. @$subject = file_get_contents( $fontawesome_path );
  76. }
  77. preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
  78. $icons = array();
  79. foreach($matches as $match){
  80. $icons[$match[1]] = $match[2];
  81. }
  82. $checklist_icons = array ( 'icon-check' => '\f00c', 'icon-star' => '\f006', 'icon-angle-right' => '\f105', 'icon-asterisk' => '\f069', 'icon-remove' => '\f00d', 'icon-plus' => '\f067' );
  83. /*-----------------------------------------------------------------------------------*/
  84. /* Shortcode Selection Config
  85. /*-----------------------------------------------------------------------------------*/
  86. $fusion_shortcodes['shortcode-generator'] = array(
  87. 'no_preview' => true,
  88. 'params' => array(),
  89. 'shortcode' => '',
  90. 'popup_title' => ''
  91. );
  92. /*-----------------------------------------------------------------------------------*/
  93. /* Alert Config
  94. /*-----------------------------------------------------------------------------------*/
  95. $fusion_shortcodes['alert'] = array(
  96. 'no_preview' => true,
  97. 'params' => array(
  98. 'type' => array(
  99. 'type' => 'select',
  100. 'label' => __( 'Alert Type', 'fusion-core' ),
  101. 'desc' => __( 'Select the type of alert message. Choose custom for advanced color options below.', 'fusion-core' ),
  102. 'options' => array(
  103. 'general' => __('General', 'fusion-core'),
  104. 'error' => __('Error', 'fusion-core'),
  105. 'success' => __('Success', 'fusion-core'),
  106. 'notice' => __('Notice', 'fusion-core'),
  107. 'custom' => __('Custom', 'fusion-core'),
  108. )
  109. ),
  110. 'accentcolor' => array(
  111. 'type' => 'colorpicker',
  112. 'label' => __( 'Accent Color', 'fusion-core' ),
  113. 'desc' => __( 'Custom setting only. Set the border, text and icon color for custom alert boxes.', 'fusion-core')
  114. ),
  115. 'backgroundcolor' => array(
  116. 'type' => 'colorpicker',
  117. 'label' => __( 'Background Color', 'fusion-core' ),
  118. 'desc' => __( 'Custom setting only. Set the background color for custom alert boxes.', 'fusion-core')
  119. ),
  120. 'bordersize' => array(
  121. 'std' => '1px',
  122. 'type' => 'text',
  123. 'label' => __( 'Border Width', 'fusion-core' ),
  124. 'desc' => __('Custom setting only. For custom alert boxes. In pixels (px), ex: 1px.', 'fusion-core')
  125. ),
  126. 'icon' => array(
  127. 'type' => 'iconpicker',
  128. 'label' => __( 'Select Custom Icon', 'fusion-core' ),
  129. 'desc' => __( 'Custom setting only. Click an icon to select, click again to deselect', 'fusion-core' ),
  130. 'options' => $icons
  131. ),
  132. 'boxshadow' => array(
  133. 'type' => 'select',
  134. 'label' => __( 'Box Shadow', 'fusion-core' ),
  135. 'desc' => __( 'Display a box shadow below the alert box.', 'fusion-core' ),
  136. 'options' => $choices
  137. ),
  138. 'content' => array(
  139. 'std' => __('Your Content Goes Here', 'fusion-core'),
  140. 'type' => 'textarea',
  141. 'label' => __( 'Alert Content', 'fusion-core' ),
  142. 'desc' => __( 'Insert the alert\'s content', 'fusion-core' ),
  143. ),
  144. 'animation_type' => array(
  145. 'type' => 'select',
  146. 'label' => __( 'Animation Type', 'fusion-core' ),
  147. 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
  148. 'options' => $animation_type,
  149. ),
  150. 'animation_direction' => array(
  151. 'type' => 'select',
  152. 'label' => __( 'Direction of Animation', 'fusion-core' ),
  153. 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
  154. 'options' => $animation_direction,
  155. ),
  156. 'animation_speed' => array(
  157. 'type' => 'select',
  158. 'std' => '',
  159. 'label' => __( 'Speed of Animation', 'fusion-core' ),
  160. 'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 'fusion-core' ),
  161. 'options' => $dec_numbers,
  162. ),
  163. 'animation_offset' => array(
  164. 'type' => 'select',
  165. 'std' => '',
  166. 'label' => __( 'Offset of Animation', 'fusion-core' ),
  167. 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
  168. 'options' => array(
  169. '' => __( 'Default', 'fusion-core' ),
  170. 'top-into-view' => __( 'Top of element hits bottom of viewport', 'fusion-core' ),
  171. 'top-mid-of-view' => __( 'Top of element hits middle of viewport', 'fusion-core' ),
  172. 'bottom-in-view' => __( 'Bottom of element enters viewport', 'fusion-core' ),
  173. )
  174. ),
  175. 'class' => array(
  176. 'std' => '',
  177. 'type' => 'text',
  178. 'label' => __( 'CSS Class', 'fusion-core' ),
  179. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  180. ),
  181. 'id' => array(
  182. 'std' => '',
  183. 'type' => 'text',
  184. 'label' => __( 'CSS ID', 'fusion-core' ),
  185. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  186. ),
  187. ),
  188. '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]',
  189. 'popup_title' => __( 'Alert Shortcode', 'fusion-core' )
  190. );
  191. /*-----------------------------------------------------------------------------------*/
  192. /* Blog Config
  193. /*-----------------------------------------------------------------------------------*/
  194. $fusion_shortcodes['blog'] = array(
  195. 'no_preview' => true,
  196. 'params' => array(
  197. 'layout' => array(
  198. 'type' => 'select',
  199. 'label' => __( 'Blog Layout', 'fusion-core' ),
  200. 'desc' => __( 'Select the layout for the blog shortcode', 'fusion-core' ),
  201. 'options' => array(
  202. 'large' => __('Large', 'fusion-core'),
  203. 'medium' => __('Medium', 'fusion-core'),
  204. 'large alternate' => __('Large Alternate', 'fusion-core'),
  205. 'medium alternate' => __('Medium Alternate', 'fusion-core'),
  206. 'grid' => __('Grid', 'fusion-core'),
  207. 'timeline' => __('Timeline', 'fusion-core')
  208. )
  209. ),
  210. 'posts_per_page' => array(
  211. 'type' => 'select',
  212. 'label' => __( 'Posts Per Page', 'fusion-core' ),
  213. 'desc' => __( 'Select number of posts per page.', 'fusion-core' ),
  214. 'options' => fusion_shortcodes_range( 25, true, true )
  215. ),
  216. 'offset' => array(
  217. 'std' => '',
  218. 'type' => 'text',
  219. 'label' => __( 'Post Offset', 'fusion-core' ),
  220. 'desc' => __('The number of posts to skip. ex: 1.', 'fusion-core')
  221. ),
  222. 'cat_slug' => array(
  223. 'type' => 'multiple_select',
  224. 'label' => __( 'Categories', 'fusion-core' ),
  225. 'desc' => __( 'Select a category or leave blank for all.', 'fusion-core' ),
  226. 'options' => fusion_shortcodes_categories( 'category' )
  227. ),
  228. 'exclude_cats' => array(
  229. 'type' => 'multiple_select',
  230. 'label' => __( 'Exclude Categories', 'fusion-core' ),
  231. 'desc' => __( 'Select a category to exclude.', 'fusion-core' ),
  232. 'options' => fusion_shortcodes_categories( 'category' )
  233. ),
  234. 'show_title' => array(
  235. 'type' => 'select',
  236. 'label' => __( 'Show Title', 'fusion-core' ),
  237. 'desc' => __( 'Display the post title below the featured image.', 'fusion-core' ),
  238. 'options' => $choices
  239. ),
  240. 'title_link' => array(
  241. 'type' => 'select',
  242. 'label' => __( 'Link Title To Post', 'fusion-core' ),
  243. 'desc' => __( 'Choose if the title should be a link to the single post page.', 'fusion-core' ),
  244. 'options' => $choices
  245. ),
  246. 'thumbnail' => array(
  247. 'type' => 'select',
  248. 'label' => __( 'Show Thumbnail', 'fusion-core' ),
  249. 'desc' => __( 'Display the post featured image.', 'fusion-core' ),
  250. 'options' => $choices
  251. ),
  252. 'excerpt' => array(
  253. 'type' => 'select',
  254. 'label' => __( 'Show Excerpt', 'fusion-core' ),
  255. 'desc' => __( 'Show excerpt or choose "no" for full content.', 'fusion-core' ),
  256. 'options' => $choices
  257. ),
  258. 'excerpt_length' => array(
  259. 'std' => 35,
  260. 'type' => 'text',
  261. 'label' => __( 'Number of words/characters in Excerpt', 'fusion-core' ),
  262. 'desc' => __( 'Controls the excerpt length based on words or characters that is set in Theme Options > Extra.', 'fusion-core' ),
  263. ),
  264. 'meta_all' => array(
  265. 'type' => 'select',
  266. 'label' => __( 'Show Meta Info', 'fusion-core' ),
  267. 'desc' => __( 'Choose to show all meta data.', 'fusion-core' ),
  268. 'options' => $choices
  269. ),
  270. 'meta_author' => array(
  271. 'type' => 'select',
  272. 'label' => __( 'Show Author Name', 'fusion-core' ),
  273. 'desc' => __( 'Choose to show the author.', 'fusion-core' ),
  274. 'options' => $choices
  275. ),
  276. 'meta_categories' => array(
  277. 'type' => 'select',
  278. 'label' => __( 'Show Categories', 'fusion-core' ),
  279. 'desc' => __( "Choose to show the categories. Grid and timeline layout generally don't display categories.", 'fusion-core' ),
  280. 'options' => $choices
  281. ),
  282. 'meta_comments' => array(
  283. 'type' => 'select',
  284. 'label' => __( 'Show Comment Count', 'fusion-core' ),
  285. 'desc' => __( 'Choose to show the comments.', 'fusion-core' ),
  286. 'options' => $choices
  287. ),
  288. 'meta_date' => array(
  289. 'type' => 'select',
  290. 'label' => __( 'Show Date', 'fusion-core' ),
  291. 'desc' => __( 'Choose to show the date.', 'fusion-core' ),
  292. 'options' => $choices
  293. ),
  294. 'meta_link' => array(
  295. 'type' => 'select',
  296. 'label' => __( 'Show Read More Link', 'fusion-core' ),
  297. 'desc' => __( 'Choose to show the Read More link.', 'fusion-core' ),
  298. 'options' => $choices
  299. ),
  300. 'meta_tags' => array(
  301. 'type' => 'select',
  302. 'label' => __( 'Show Tags', 'fusion-core' ),
  303. 'desc' => __( "Choose to show the tags. Grid and timeline layout generally don't display tags.", 'fusion-core' ),
  304. 'options' => $choices
  305. ),
  306. 'paging' => array(
  307. 'type' => 'select',
  308. 'label' => __( 'Show Pagination', 'fusion-core' ),
  309. 'desc' => __( 'Show numerical pagination boxes.', 'fusion-core' ),
  310. 'options' => $choices
  311. ),
  312. 'scrolling' => array(
  313. 'type' => 'select',
  314. 'label' => __( 'Pagination Type', 'fusion-core' ),
  315. 'desc' => __( 'Choose the type of pagination.', 'fusion-core' ),
  316. 'options' => array(
  317. 'pagination' => __('Pagination', 'fusion-core'),
  318. 'infinite' => __('Infinite Scrolling', 'fusion-core'),
  319. 'load_more_button' => __('Load More Button', 'fusion-core')
  320. )
  321. ),
  322. 'blog_grid_columns' => array(
  323. 'type' => 'select',
  324. 'label' => __( 'Grid Layout # of Columns', 'fusion-core' ),
  325. 'desc' => __( 'Select whether to display the grid layout in 2, 3 or 4 column.', 'fusion-core' ),
  326. 'options' => array(
  327. '2' => '2',
  328. '3' => '3',
  329. '4' => '4',
  330. '5' => '5',
  331. '6' => '6',
  332. )
  333. ),
  334. 'blog_grid_column_spacing' => array(
  335. 'std' => '40',
  336. 'type' => 'text',
  337. 'label' => __( 'Grid Layout Column Spacing', 'fusion-core' ),
  338. 'desc' => __( 'Insert the amount of spacing between blog grid posts without "px".', 'fusion-core' )
  339. ),
  340. 'strip_html' => array(
  341. 'type' => 'select',
  342. 'label' => __( 'Strip HTML from Posts Content', 'fusion-core' ),
  343. 'desc' => __( 'Strip HTML from the post excerpt.', 'fusion-core' ),
  344. 'options' => $choices
  345. ),
  346. 'class' => array(
  347. 'std' => '',
  348. 'type' => 'text',
  349. 'label' => __( 'CSS Class', 'fusion-core' ),
  350. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  351. ),
  352. 'id' => array(
  353. 'std' => '',
  354. 'type' => 'text',
  355. 'label' => __( 'CSS ID', 'fusion-core' ),
  356. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  357. ),
  358. ),
  359. '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]',
  360. 'popup_title' => __( 'Blog Shortcode', 'fusion-core')
  361. );
  362. /*-----------------------------------------------------------------------------------*/
  363. /* Button Config
  364. /*-----------------------------------------------------------------------------------*/
  365. $fusion_shortcodes['button'] = array(
  366. 'no_preview' => true,
  367. 'params' => array(
  368. 'url' => array(
  369. 'std' => '',
  370. 'type' => 'text',
  371. 'label' => __( 'Button URL', 'fusion-core' ),
  372. 'desc' => __( 'Add the button\'s url ex: http://example.com.', 'fusion-core' )
  373. ),
  374. 'style' => array(
  375. 'type' => 'select',
  376. 'label' => __( 'Button Style', 'fusion-core' ),
  377. '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' ),
  378. 'options' => array(
  379. 'default' => __('Default', 'fusion-core'),
  380. 'custom' => __('Custom', 'fusion-core'),
  381. 'green' => __('Green', 'fusion-core'),
  382. 'darkgreen' => __('Dark Green', 'fusion-core'),
  383. 'orange' => __('Orange', 'fusion-core'),
  384. 'blue' => __('Blue', 'fusion-core'),
  385. 'red' => __('Red', 'fusion-core'),
  386. 'pink' => __('Pink', 'fusion-core'),
  387. 'darkgray' => __('Dark Gray', 'fusion-core'),
  388. 'lightgray' => __('Light Gray', 'fusion-core'),
  389. )
  390. ),
  391. 'size' => array(
  392. 'type' => 'select',
  393. 'label' => __( 'Button Size', 'fusion-core' ),
  394. 'desc' => __( 'Select the button\'s size. Choose default for theme option selection.', 'fusion-core' ),
  395. 'options' => array(
  396. '' => __('Default', 'fusion-core'),
  397. 'small' => __('Small', 'fusion-core'),
  398. 'medium' => __('Medium', 'fusion-core'),
  399. 'large' => __('Large', 'fusion-core'),
  400. 'xlarge' => __('XLarge', 'fusion-core'),
  401. )
  402. ),
  403. 'stretch' => array(
  404. 'type' => 'select',
  405. 'label' => __( 'Button Span', 'fusion-core' ),
  406. 'desc' => __( 'Choose to have the button span the full width of its container.', 'fusion-core' ),
  407. 'options' => $choices_with_default
  408. ),
  409. 'type' => array(
  410. 'type' => 'select',
  411. 'label' => __( 'Button Type', 'fusion-core' ),
  412. 'desc' => __( 'Select the button\'s type. Choose default for theme option selection.', 'fusion-core' ),
  413. 'options' => array(
  414. '' => __('Default', 'fusion-core'),
  415. 'flat' => __('Flat', 'fusion-core'),
  416. '3d' => '3D',
  417. )
  418. ),
  419. 'shape' => array(
  420. 'type' => 'select',
  421. 'label' => __( 'Button Shape', 'fusion-core' ),
  422. 'desc' => __( 'Select the button\'s shape. Choose default for theme option selection.', 'fusion-core' ),
  423. 'options' => array(
  424. '' => __('Default', 'fusion-core'),
  425. 'square' => __('Square', 'fusion-core'),
  426. 'pill' => __('Pill', 'fusion-core'),
  427. 'round' => __('Round', 'fusion-core'),
  428. )
  429. ),
  430. 'target' => array(
  431. 'type' => 'select',
  432. 'label' => __( 'Button Target', 'fusion-core' ),
  433. 'desc' => __( '_self = open in same window <br />_blank = open in new window.', 'fusion-core' ),
  434. 'options' => array(
  435. '_self' => '_self',
  436. '_blank' => '_blank'
  437. )
  438. ),
  439. 'title' => array(
  440. 'std' => '',
  441. 'type' => 'text',
  442. 'label' => __( 'Button Title Attribute', 'fusion-core' ),
  443. 'desc' => __( 'Set a title attribute for the button link.', 'fusion-core' ),
  444. ),
  445. 'content' => array(
  446. 'std' => __('Button Text', 'fusion-core'),
  447. 'type' => 'text',
  448. 'label' => __( 'Button\'s Text', 'fusion-core' ),
  449. 'desc' => __( 'Add the text that will display in the button.', 'fusion-core' ),
  450. ),
  451. 'gradtopcolor' => array(
  452. 'type' => 'colorpicker',
  453. 'label' => __( 'Button Gradient Top Color', 'fusion-core' ),
  454. 'desc' => __( 'Custom setting only. Set the top color of the button background.', 'fusion-core' )
  455. ),
  456. 'gradbottomcolor' => array(
  457. 'type' => 'colorpicker',
  458. 'label' => __( 'Button Gradient Bottom Color', 'fusion-core' ),
  459. 'desc' => __( 'Custom setting only. Set the bottom color of the button background or leave empty for solid color.', 'fusion-core' )
  460. ),
  461. 'gradtopcolorhover' => array(
  462. 'type' => 'colorpicker',
  463. 'label' => __( 'Button Gradient Top Color Hover', 'fusion-core' ),
  464. 'desc' => __( 'Custom setting only. Set the top hover color of the button background.', 'fusion-core' )
  465. ),
  466. 'gradbottomcolorhover' => array(
  467. 'type' => 'colorpicker',
  468. 'label' => __( 'Button Gradient Bottom Color Hover', 'fusion-core' ),
  469. 'desc' => __( 'Custom setting only. Set the bottom hover color of the button background or leave empty for solid color.', 'fusion-core' )
  470. ),
  471. 'accentcolor' => array(
  472. 'type' => 'colorpicker',
  473. 'label' => __( 'Accent Color', 'fusion-core' ),
  474. 'desc' => __( 'Custom setting only. This option controls the color of the button border, divider, text and icon.', 'fusion-core' )
  475. ),
  476. 'accenthovercolor' => array(
  477. 'type' => 'colorpicker',
  478. 'label' => __( 'Accent Hover Color', 'fusion-core' ),
  479. 'desc' => __( 'Custom setting only. This option controls the hover color of the button border, divider, text and icon.', 'fusion-core' )
  480. ),
  481. 'bevelcolor' => array(
  482. 'type' => 'colorpicker',
  483. 'label' => __( 'Bevel Color (3D Mode only)', 'fusion-core' ),
  484. 'desc' => __( 'Custom setting only. Set the bevel color of 3D buttons.', 'fusion-core' )
  485. ),
  486. 'borderwidth' => array(
  487. 'std' => '1px',
  488. 'type' => 'text',
  489. 'label' => __( 'Border Width', 'fusion-core' ),
  490. 'desc' => __( 'Custom setting only. In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core' )
  491. ),
  492. /*
  493. 'bordercolor' => array(
  494. 'type' => 'colorpicker',
  495. 'std' => '',
  496. 'label' => __( 'Border Color', 'fusion-core' ),
  497. 'desc' => __('Custom setting. Backside.', 'fusion-core')
  498. ),
  499. 'borderhovercolor' => array(
  500. 'type' => 'colorpicker',
  501. 'std' => '',
  502. 'label' => __( 'Border Hover Color', 'fusion-core' ),
  503. 'desc' => __('Custom setting. Backside.', 'fusion-core')
  504. ),
  505. 'textcolor' => array(
  506. 'type' => 'colorpicker',
  507. 'std' => '',
  508. 'label' => __( 'Text Color', 'fusion-core' ),
  509. 'desc' => __('Custom setting. Backside.', 'fusion-core')
  510. ),
  511. 'texthovercolor' => array(
  512. 'type' => 'colorpicker',
  513. 'std' => '',
  514. 'label' => __( 'Text Hover Color', 'fusion-core' ),
  515. 'desc' => __('Custom setting. Backside.', 'fusion-core')
  516. ),
  517. */
  518. 'icon' => array(
  519. 'type' => 'iconpicker',
  520. 'label' => __( 'Select Custom Icon', 'fusion-core' ),
  521. 'desc' => __( 'Click an icon to select, click again to deselect', 'fusion-core' ),
  522. 'options' => $icons
  523. ),
  524. /*
  525. 'iconcolor' => array(
  526. 'type' => 'colorpicker',
  527. 'std' => '',
  528. 'label' => __( 'Icon Color', 'fusion-core' ),
  529. 'desc' => __('Custom setting. Leave blank for theme option selection.', 'fusion-core')
  530. ),
  531. */
  532. 'iconposition' => array(
  533. 'type' => 'select',
  534. 'label' => __( 'Icon Position', 'fusion-core' ),
  535. 'desc' => __( 'Choose the position of the icon on the button.', 'fusion-core' ),
  536. 'options' => $leftright
  537. ),
  538. 'icondivider' => array(
  539. 'type' => 'select',
  540. 'label' => __( 'Icon Divider', 'fusion-core' ),
  541. 'desc' => __( 'Choose to display a divider between icon and text.', 'fusion-core' ),
  542. 'options' => $choices
  543. ),
  544. 'modal' => array(
  545. 'std' => '',
  546. 'type' => 'text',
  547. 'label' => __( 'Modal Window Anchor', 'fusion-core' ),
  548. 'desc' => __( 'Add the class name of the modal window you want to open on button click.', 'fusion-core' ),
  549. ),
  550. 'animation_type' => array(
  551. 'type' => 'select',
  552. 'label' => __( 'Animation Type', 'fusion-core' ),
  553. 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
  554. 'options' => $animation_type,
  555. ),
  556. 'animation_direction' => array(
  557. 'type' => 'select',
  558. 'label' => __( 'Direction of Animation', 'fusion-core' ),
  559. 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
  560. 'options' => $animation_direction,
  561. ),
  562. 'animation_speed' => array(
  563. 'type' => 'select',
  564. 'std' => '',
  565. 'label' => __( 'Speed of Animation', 'fusion-core' ),
  566. 'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 'fusion-core' ),
  567. 'options' => $dec_numbers,
  568. ),
  569. 'animation_offset' => array(
  570. 'type' => 'select',
  571. 'std' => '',
  572. 'label' => __( 'Offset of Animation', 'fusion-core' ),
  573. 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
  574. 'options' => array(
  575. '' => __( 'Default', 'fusion-core' ),
  576. 'top-into-view' => __( 'Top of element hits bottom of viewport', 'fusion-core' ),
  577. 'top-mid-of-view' => __( 'Top of element hits middle of viewport', 'fusion-core' ),
  578. 'bottom-in-view' => __( 'Bottom of element enters viewport', 'fusion-core' ),
  579. )
  580. ),
  581. 'alignment' => array(
  582. 'type' => 'select',
  583. 'std' => '',
  584. 'label' => __( 'Alignment', 'fusion-core' ),
  585. 'desc' => __( 'Select the button\'s alignment.', 'fusion-core' ),
  586. 'options' => array(
  587. 'left' => __('Left', 'fusion-core'),
  588. 'center' => __('Center', 'fusion-core'),
  589. 'right' => __('Right', 'fusion-core'),
  590. )
  591. ),
  592. 'class' => array(
  593. 'std' => '',
  594. 'type' => 'text',
  595. 'label' => __( 'CSS Class', 'fusion-core' ),
  596. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  597. ),
  598. 'id' => array(
  599. 'std' => '',
  600. 'type' => 'text',
  601. 'label' => __( 'CSS ID', 'fusion-core' ),
  602. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  603. ),
  604. ),
  605. '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]',
  606. 'popup_title' => __( 'Button Shortcode', 'fusion-core')
  607. );
  608. /*-----------------------------------------------------------------------------------*/
  609. /* Checklist Config
  610. /*-----------------------------------------------------------------------------------*/
  611. $fusion_shortcodes['checklist'] = array(
  612. 'params' => array(
  613. 'icon' => array(
  614. 'type' => 'iconpicker',
  615. 'label' => __( 'Select Icon', 'fusion-core' ),
  616. 'desc' => __( 'Global setting for all list items, this can be overridden individually below. Click an icon to select, click again to deselect.', 'fusion-core' ),
  617. 'options' => $icons
  618. ),
  619. 'iconcolor' => array(
  620. 'type' => 'colorpicker',
  621. 'label' => __( 'Icon Color', 'fusion-core' ),
  622. 'desc' => __( 'Global setting for all list items. Leave blank for theme option selection. Defines the icon color.', 'fusion-core')
  623. ),
  624. 'circle' => array(
  625. 'type' => 'select',
  626. 'label' => __( 'Icon in Circle', 'fusion-core' ),
  627. 'desc' => __( 'Global setting for all list items. Set to default for theme option selection. Choose to have icons in circles.', 'fusion-core' ),
  628. 'options' => $choices_with_default
  629. ),
  630. 'circlecolor' => array(
  631. 'type' => 'colorpicker',
  632. 'label' => __( 'Circle Color', 'fusion-core' ),
  633. 'desc' => __( 'Global setting for all list items. Leave blank for theme option selection. Defines the circle color.', 'fusion-core')
  634. ),
  635. 'size' => array(
  636. 'std' => '13px',
  637. 'type' => 'text',
  638. 'label' => __( 'Item Size', 'fusion-core' ),
  639. 'desc' => __( 'Select the list item\'s size. In pixels (px), ex: 13px.', 'fusion-core' ),
  640. ),
  641. 'class' => array(
  642. 'std' => '',
  643. 'type' => 'text',
  644. 'label' => __( 'CSS Class', 'fusion-core' ),
  645. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  646. ),
  647. 'id' => array(
  648. 'std' => '',
  649. 'type' => 'text',
  650. 'label' => __( 'CSS ID', 'fusion-core' ),
  651. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  652. ),
  653. ),
  654. 'shortcode' => '[checklist icon="{{icon}}" iconcolor="{{iconcolor}}" circle="{{circle}}" circlecolor="{{circlecolor}}" size="{{size}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/checklist]',
  655. 'popup_title' => __( 'Checklist Shortcode', 'fusion-core' ),
  656. 'no_preview' => true,
  657. // child shortcode is clonable & sortable
  658. 'child_shortcode' => array(
  659. 'params' => array(
  660. 'icon' => array(
  661. 'type' => 'iconpicker',
  662. 'label' => __( 'Select Icon', 'fusion-core' ),
  663. 'desc' => __( 'This setting will override the global setting above. Leave blank for theme option selection.', 'fusion-core' ),
  664. 'options' => $icons
  665. ),
  666. 'content' => array(
  667. 'std' => __('Your Content Goes Here', 'fusion-core'),
  668. 'type' => 'textarea',
  669. 'label' => __( 'List Item Content', 'fusion-core' ),
  670. 'desc' => __( 'Add list item content', 'fusion-core' ),
  671. ),
  672. ),
  673. 'shortcode' => '[li_item icon="{{icon}}"]{{content}}[/li_item]',
  674. 'clone_button' => __( 'Add New List Item', 'fusion-core')
  675. )
  676. );
  677. /*-----------------------------------------------------------------------------------*/
  678. /* Client Slider Config
  679. /*-----------------------------------------------------------------------------------*/
  680. /*
  681. $fusion_shortcodes['clientslider'] = array(
  682. 'params' => array(
  683. 'picture_size' => array(
  684. 'type' => 'select',
  685. 'label' => __( 'Picture Size', 'fusion-core' ),
  686. 'desc' => __( 'fixed = width and height will be fixed <br />auto = width and height will adjust to the image.', 'fusion-core' ),
  687. 'options' => array(
  688. 'fixed' => __('Fixed', 'fusion-core'),
  689. 'auto' => __('Auto', 'fusion-core')
  690. )
  691. ),
  692. 'class' => array(
  693. 'std' => '',
  694. 'type' => 'text',
  695. 'label' => __( 'CSS Class', 'fusion-core' ),
  696. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  697. ),
  698. 'id' => array(
  699. 'std' => '',
  700. 'type' => 'text',
  701. 'label' => __( 'CSS ID', 'fusion-core' ),
  702. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  703. ),
  704. ),
  705. 'shortcode' => '[clients picture_size="{{picture_size}}" class="{{class}}" id="{{id}}"]{{child_shortcode}}[/clients]', // as there is no wrapper shortcode
  706. 'popup_title' => __( 'Client Slider Shortcode', 'fusion-core' ),
  707. 'no_preview' => true,
  708. // child shortcode is clonable & sortable
  709. 'child_shortcode' => array(
  710. 'params' => array(
  711. 'url' => array(
  712. 'std' => '',
  713. 'type' => 'text',
  714. 'label' => __( 'Client Website Link', 'fusion-core' ),
  715. 'desc' => __( 'Add the url to client\'s website <br />ex: http://example.com', 'fusion-core')
  716. ),
  717. 'target' => array(
  718. 'type' => 'select',
  719. 'label' => __( 'Link Target', 'fusion-core' ),
  720. 'desc' => __( '_self = open in same window <br /> _blank = open in new window', 'fusion-core' ),
  721. 'options' => array(
  722. '_self' => '_self',
  723. '_blank' => '_blank'
  724. )
  725. ),
  726. 'image' => array(
  727. 'type' => 'uploader',
  728. 'label' => __( 'Client Image', 'fusion-core' ),
  729. 'desc' => __( 'Upload the client image', 'fusion-core' ),
  730. ),
  731. 'alt' => array(
  732. 'std' => '',
  733. 'type' => 'text',
  734. 'label' => __( 'Image Alt Text', 'fusion-core' ),
  735. 'desc' => __('The alt attribute provides alternative information if an image cannot be viewed', 'fusion-core')
  736. ),
  737. ),
  738. 'shortcode' => '[client link="{{url}}" linktarget="{{target}}" image="{{image}}" alt="{{alt}}"]',
  739. 'clone_button' => __( 'Add New Client Image', 'fusion-core')
  740. )
  741. );
  742. */
  743. /*-----------------------------------------------------------------------------------*/
  744. /* Code Block Config
  745. /*-----------------------------------------------------------------------------------*/
  746. /*$fusion_shortcodes['code'] = array(
  747. 'no_preview' => true,
  748. 'params' => array(
  749. 'content' => array(
  750. 'std' => 'Click edit button to change this code.',
  751. 'type' => 'textarea',
  752. 'label' => __( 'Code', 'fusion-core' ),
  753. 'desc' => __( 'Enter some content for this codeblock', 'fusion-core' ),
  754. ),
  755. 'class' => array(
  756. 'std' => '',
  757. 'type' => 'text',
  758. 'label' => __( 'CSS Class', 'fusion-core' ),
  759. 'desc' => __( 'Add a class to the HTML element.', 'fusion-core' )
  760. ),
  761. 'id' => array(
  762. 'std' => '',
  763. 'type' => 'text',
  764. 'label' => __( 'CSS ID', 'fusion-core' ),
  765. 'desc' => __( 'Add an ID to the HTML element.', 'fusion-core' )
  766. ),
  767. ),
  768. 'shortcode' => '[fusion_code class="{{class}}" id="{{id}}"]{{content}}[/fusion_code]',
  769. 'popup_title' => __( 'Code Block Shortcode', 'fusion-core' )
  770. );*/
  771. /*-----------------------------------------------------------------------------------*/
  772. /* Columns Config
  773. /*-----------------------------------------------------------------------------------*/
  774. $fusion_shortcodes['columns'] = array(
  775. 'shortcode' => ' {{child_shortcode}} ', // as there is no wrapper shortcode
  776. 'popup_title' => __( 'Insert Columns Shortcode', 'fusion-core' ),
  777. 'no_preview' => true,
  778. 'params' => array(),
  779. // child shortcode is clonable & sortable
  780. 'child_shortcode' => array(
  781. 'params' => array(
  782. 'column' => array(
  783. 'type' => 'select',
  784. 'label' => __( 'Column Type', 'fusion-core' ),
  785. 'desc' => __( 'Select the width of the column', 'fusion-core' ),
  786. 'options' => array(
  787. 'one_full' => __('One Column', 'fusion-core'),
  788. 'one_half' => __('One Half', 'fusion-core'),
  789. 'one_third' => __('One Third', 'fusion-core'),
  790. 'two_third' => __('Two Thirds', 'fusion-core'),
  791. 'one_fourth' => __('One Fourth', 'fusion-core'),
  792. 'three_fourth' => __('Three Fourth', 'fusion-core'),
  793. 'one_fifth' => __('One Fifth', 'fusion-core'),
  794. 'two_fifth' => __('Two Fifth', 'fusion-core'),
  795. 'three_fifth' => __('Three Fifth', 'fusion-core'),
  796. 'four_fifth' => __('Four Fifth', 'fusion-core'),
  797. 'one_sixth' => __('One Sixth', 'fusion-core'),
  798. 'five_sixth' => __('Five Sixth', 'fusion-core'),
  799. 'one' => __('One ( Six Sixth )', 'fusion-core'),
  800. )
  801. ),
  802. 'last' => array(
  803. 'type' => 'select',
  804. 'label' => __( 'Last Column', 'fusion-core' ),
  805. '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'),
  806. 'options' => $reverse_choices
  807. ),
  808. 'spacing' => array(
  809. 'std' => 'yes',
  810. 'type' => 'select',
  811. 'label' => __( 'Column Spacing', 'fusion-core' ),
  812. 'desc' => __( 'Set to "No" to eliminate margin between columns.', 'fusion-core' ),
  813. 'options' => $choices
  814. ),
  815. 'center_content' => array(
  816. 'type' => 'select',
  817. 'label' => __( 'Center Content Vertically', 'fusion-core' ),
  818. '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'),
  819. 'options' => $reverse_choices
  820. ),
  821. 'hide_on_mobile' => array(
  822. 'type' => 'select',
  823. 'label' => __( 'Hide on Mobile', 'fusion-core' ),
  824. 'desc' => __('Select "Yes" to hide column on mobile.', 'fusion-core'),
  825. 'options' => $reverse_choices
  826. ),
  827. 'backgroundcolor' => array(
  828. 'type' => 'colorpicker',
  829. 'label' => __( 'Background Color', 'fusion-core' ),
  830. 'desc' => __( 'Controls the background color.', 'fusion-core')
  831. ),
  832. 'backgroundimage' => array(
  833. 'type' => 'uploader',
  834. 'label' => __( 'Background Image', 'fusion-core' ),
  835. 'desc' => __('Upload an image to display in the background', 'fusion-core')
  836. ),
  837. 'backgroundrepeat' => array(
  838. 'type' => 'select',
  839. 'label' => __( 'Background Repeat', 'fusion-core' ),
  840. 'desc' => __('Choose how the background image repeats.', 'fusion-core'),
  841. 'options' => array(
  842. 'no-repeat' => __('No Repeat', 'fusion-core'),
  843. 'repeat' => __('Repeat Vertically and Horizontally', 'fusion-core'),
  844. 'repeat-x' => __('Repeat Horizontally', 'fusion-core'),
  845. 'repeat-y' => __('Repeat Vertically', 'fusion-core')
  846. )
  847. ),
  848. 'backgroundposition' => array(
  849. 'type' => 'select',
  850. 'label' => __( 'Background Position', 'fusion-core' ),
  851. 'desc' => __('Choose the postion of the background image.', 'fusion-core'),
  852. 'options' => array(
  853. 'left top' => __('Left Top', 'fusion-core'),
  854. 'left center' => __('Left Center', 'fusion-core'),
  855. 'left bottom' => __('Left Bottom', 'fusion-core'),
  856. 'right top' => __('Right Top', 'fusion-core'),
  857. 'right center' => __('Right Center', 'fusion-core'),
  858. 'right bottom' => __('Right Bottom', 'fusion-core'),
  859. 'center top' => __('Center Top', 'fusion-core'),
  860. 'center center' => __('Center Center', 'fusion-core'),
  861. 'center bottom' => __('Center Bottom', 'fusion-core')
  862. )
  863. ),
  864. 'hover_type' => array(
  865. 'std' => 'none',
  866. 'type' => 'select',
  867. 'label' => __( 'Hover Type', 'fusion-core' ),
  868. 'desc' => __('Select the hover effect type. This will disable links on elements inside the column.', 'fusion-core'),
  869. 'options' => array(
  870. 'none' => __('None', 'fusion-core'),
  871. 'zoomin' => __('Zoom In', 'fusion-core'),
  872. 'zoomout' => __('Zoom Out', 'fusion-core'),
  873. 'liftup' => __('Lift Up', 'fusion-core')
  874. )
  875. ),
  876. 'link' => array(
  877. 'std' => '',
  878. 'type' => 'text',
  879. 'label' => __( 'Link URL', 'fusion-core' ),
  880. 'desc' => __( 'Add the URL the column will link to, ex: http://example.com. This will disable links on elements inside the column.', 'fusion-core' ),
  881. ),
  882. 'borderposition' => array(
  883. 'type' => 'select',
  884. 'label' => __( 'Border Position', 'fusion-core' ),
  885. 'desc' => __('Choose the postion of the border.', 'fusion-core'),
  886. 'options' => array(
  887. 'all' => __('All', 'fusion-core'),
  888. 'top' => __('Top', 'fusion-core'),
  889. 'right' => __('Right', 'fusion-core'),
  890. 'bottom' => __('Bottom', 'fusion-core'),
  891. 'left' => __('Left', 'fusion-core'),
  892. )
  893. ),
  894. 'bordersize' => array(
  895. 'std' => '0px',
  896. 'type' => 'text',
  897. 'label' => __( 'Border Size', 'fusion-core' ),
  898. 'desc' => __( 'In pixels (px), ex: 1px.', 'fusion-core' ),
  899. ),
  900. 'bordercolor' => array(
  901. 'type' => 'colorpicker',
  902. 'label' => __( 'Border Color', 'fusion-core' ),
  903. 'desc' => __( 'Controls the border color.', 'fusion-core')
  904. ),
  905. 'borderstyle' => array(
  906. 'type' => 'select',
  907. 'label' => __( 'Border Style', 'fusion-core' ),
  908. 'desc' => __( 'Controls the border style.', 'fusion-core' ),
  909. 'options' => array(
  910. 'solid' => __('Solid', 'fusion-core'),
  911. 'dashed' => __('Dashed', 'fusion-core'),
  912. 'dotted' => __('Dotted', 'fusion-core')
  913. )
  914. ),
  915. 'padding' => array(
  916. 'std' => '',
  917. 'type' => 'text',
  918. 'label' => __( 'Padding', 'fusion-core' ),
  919. 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
  920. ),
  921. 'margin_top' => array(
  922. 'std' => '',
  923. 'type' => 'text',
  924. 'label' => __( 'Margin Top', 'fusion-core' ),
  925. 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
  926. ),
  927. 'margin_bottom' => array(
  928. 'std' => '',
  929. 'type' => 'text',
  930. 'label' => __( 'Margin Bottom', 'fusion-core' ),
  931. 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
  932. ),
  933. 'content' => array(
  934. 'std' => '',
  935. 'type' => 'textarea',
  936. 'label' => __( 'Column Content', 'fusion-core' ),
  937. 'desc' => __( 'Insert the column content', 'fusion-core' ),
  938. ),
  939. 'animation_type' => array(
  940. 'type' => 'select',
  941. 'label' => __( 'Animation Type', 'fusion-core' ),
  942. 'desc' => __( 'Select the type of animation to use on the shortcode', 'fusion-core' ),
  943. 'options' => $animation_type,
  944. ),
  945. 'animation_direction' => array(
  946. 'type' => 'select',
  947. 'label' => __( 'Direction of Animation', 'fusion-core' ),
  948. 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
  949. 'options' => $animation_direction,
  950. ),
  951. 'animation_speed' => array(
  952. 'type' => 'select',
  953. 'std' => '',
  954. 'label' => __( 'Speed of Animation', 'fusion-core' ),
  955. 'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 'fusion-core' ),
  956. 'options' => $dec_numbers,
  957. ),
  958. 'animation_offset' => array(
  959. 'type' => 'select',
  960. 'std' => '',
  961. 'label' => __( 'Offset of Animation', 'fusion-core' ),
  962. 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
  963. 'options' => array(
  964. '' => __( 'Default', 'fusion-core' ),
  965. 'top-into-view' => __( 'Top of element hits bottom of viewport', 'fusion-core' ),
  966. 'top-mid-of-view' => __( 'Top of element hits middle of viewport', 'fusion-core' ),
  967. 'bottom-in-view' => __( 'Bottom of element enters viewport', 'fusion-core' ),
  968. )
  969. ),
  970. 'class' => array(
  971. 'std' => '',
  972. 'type' => 'text',
  973. 'label' => __( 'CSS Class', 'fusion-core' ),
  974. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core' )
  975. ),
  976. 'id' => array(
  977. 'std' => '',
  978. 'type' => 'text',
  979. 'label' => __( 'CSS ID', 'fusion-core' ),
  980. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core' )
  981. ),
  982. ),
  983. '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}}] ',
  984. 'clone_button' => __( 'Add Column', 'fusion-core')
  985. )
  986. );
  987. /*-----------------------------------------------------------------------------------*/
  988. /* Content Boxes Config
  989. /*-----------------------------------------------------------------------------------*/
  990. $fusion_shortcodes['contentboxes'] = array(
  991. 'params' => array(
  992. 'layout' => array(
  993. 'type' => 'select',
  994. 'label' => __( 'Box Layout', 'fusion-core' ),
  995. 'desc' => __( 'Select the layout for the content box', 'fusion-core' ),
  996. 'options' => array(
  997. 'icon-with-title' => __('Classic Icon With Title', 'fusion-core'),
  998. 'icon-on-top' => __('Classic Icon On Top', 'fusion-core'),
  999. 'icon-on-side' => __('Classic Icon On Side', 'fusion-core'),
  1000. 'icon-boxed' => __('Icon Boxed', 'fusion-core'),
  1001. 'clean-vertical' => __('Clean Layout Vertical', 'fusion-core'),
  1002. 'clean-horizontal' => __('Clean Layout Horizontal', 'fusion-core'),
  1003. 'timeline-vertical' => __('Timeline Vertical', 'fusion-core'),
  1004. 'timeline-horizontal' => __('Timeline Horizontal', 'fusion-core')
  1005. )
  1006. ),
  1007. 'columns' => array(
  1008. 'std' => 4,
  1009. 'type' => 'select',
  1010. 'label' => __( 'Number of Columns', 'fusion-core' ),
  1011. 'desc' => __( 'Set the number of columns per row.', 'fusion-core' ),
  1012. 'options' => fusion_shortcodes_range( 6, false )
  1013. ),
  1014. 'icon_align' => array(
  1015. 'std' => 'left',
  1016. 'type' => 'select',
  1017. 'label' => __( 'Content Alignment', 'fusion-core' ),
  1018. 'desc' => __( 'Works with "Classic Icon With Title" and "Classic Icon On Side" layout options.' ),
  1019. 'options' => array('left' => 'Left',
  1020. 'right' => 'Right')
  1021. ),
  1022. 'title_size' => array(
  1023. 'std' => '',
  1024. 'type' => 'text',
  1025. 'label' => __( 'Title Size', 'fusion-core' ),
  1026. 'desc' => __( 'Controls the size of the title. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core')
  1027. ),
  1028. 'backgroundcolor' => array(
  1029. 'type' => 'colorpicker',
  1030. 'label' => __( 'Content Box Background Color', 'fusion-core' ),
  1031. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1032. ),
  1033. 'icon_circle' => array(
  1034. 'type' => 'select',
  1035. 'label' => __( 'Icon Background', 'fusion-core' ),
  1036. 'desc' => __( 'Controls the background behind the icon. Select default for theme option selection.', 'fusion-core' ),
  1037. 'options' => array(
  1038. '' => __('Default', 'fusion-core'),
  1039. 'yes' => __('Yes', 'fusion-core'),
  1040. 'no' => __('No', 'fusion-core'),
  1041. )
  1042. ),
  1043. 'icon_circle_radius' => array(
  1044. 'std' => '',
  1045. 'type' => 'text',
  1046. 'label' => __( 'Icon Background Radius', 'fusion-core' ),
  1047. 'desc' => __( 'Choose the border radius of the icon background. Leave blank for theme option selection. In pixels (px), ex: 1px, or "round".', 'fusion-core')
  1048. ),
  1049. 'iconcolor' => array(
  1050. 'type' => 'colorpicker',
  1051. 'label' => __( 'Icon Color', 'fusion-core' ),
  1052. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1053. ),
  1054. 'circlecolor' => array(
  1055. 'type' => 'colorpicker',
  1056. 'label' => __( 'Icon Background Color', 'fusion-core' ),
  1057. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1058. ),
  1059. 'circlebordercolor' => array(
  1060. 'type' => 'colorpicker',
  1061. 'label' => __( 'Icon Background Inner Border Color', 'fusion-core' ),
  1062. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1063. ),
  1064. 'circlebordercolorsize' => array(
  1065. 'std' => '',
  1066. 'type' => 'text',
  1067. 'label' => __( 'Icon Background Inner Border Size', 'fusion-core' ),
  1068. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1069. ),
  1070. 'outercirclebordercolor' => array(
  1071. 'type' => 'colorpicker',
  1072. 'label' => __( 'Icon Background Outer Border Color', 'fusion-core' ),
  1073. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1074. ),
  1075. 'outercirclebordercolorsize' => array(
  1076. 'std' => '',
  1077. 'type' => 'text',
  1078. 'label' => __( 'Icon Background Outer Border Size', 'fusion-core' ),
  1079. 'desc' => __( 'Leave blank for theme option selection.', 'fusion-core')
  1080. ),
  1081. 'icon_size' => array(
  1082. 'std' => '',
  1083. 'type' => 'text',
  1084. 'label' => __( 'Icon Size', 'fusion-core' ),
  1085. 'desc' => __( 'Controls the size of the icon. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core')
  1086. ),
  1087. 'link_type' => array(
  1088. 'type' => 'select',
  1089. 'label' => __( 'Link Type', 'fusion-core' ),
  1090. 'desc' => __( 'Select the type of link that should show in the content box. Select default for theme option selection.', 'fusion-core' ),
  1091. 'options' => array(
  1092. '' => 'Default',
  1093. 'text' => 'Text',
  1094. 'button-bar' => 'Button Bar',
  1095. 'button' => 'Button'
  1096. )
  1097. ),
  1098. 'link_area' => array(
  1099. 'std' => '',
  1100. 'type' => 'select',
  1101. 'label' => __( 'Link Area', 'fusion-core' ),
  1102. 'desc' => __( 'Select which area the link will be assigned to' ),
  1103. 'options' => array('' => 'Default',
  1104. 'link-icon' => 'Link+Icon',
  1105. 'box' => 'Entire Content Box')
  1106. ),
  1107. 'target' => array(
  1108. 'type' => 'select',
  1109. 'label' => __( 'Link Target', 'fusion-core' ),
  1110. 'desc' => __( '_self = open in same window <br /> _blank = open in new window', 'fusion-core' ),
  1111. 'options' => array(
  1112. '' => 'Default',
  1113. '_self' => '_self',
  1114. '_blank' => '_blank'
  1115. )
  1116. ),
  1117. 'animation_delay' => array(
  1118. 'std' => '',
  1119. 'type' => 'text',
  1120. 'label' => __( 'Animation Delay', 'fusion-core' ),
  1121. 'desc' => __( 'Controls the delay of animation between each element in a set. In milliseconds.', 'fusion-core')
  1122. ),
  1123. 'animation_offset' => array(
  1124. 'type' => 'select',
  1125. 'std' => '',
  1126. 'label' => __( 'Offset of Animation', 'fusion-core' ),
  1127. 'desc' => __( 'Choose when the animation should start.', 'fusion-core' ),
  1128. 'options' => array(
  1129. '' => __( 'Default', 'fusion-core' ),
  1130. 'top-into-view' => __( 'Top of element hits bottom of viewport', 'fusion-core' ),
  1131. 'top-mid-of-view' => __( 'Top of element hits middle of viewport', 'fusion-core' ),
  1132. 'bottom-in-view' => __( 'Bottom of element enters viewport', 'fusion-core' ),
  1133. )
  1134. ),
  1135. 'animation_type' => array(
  1136. 'type' => 'select',
  1137. 'label' => __( 'Animation Type', 'fusion-core' ),
  1138. 'desc' => __( 'Select the type on animation to use on the shortcode', 'fusion-core' ),
  1139. 'options' => $animation_type,
  1140. ),
  1141. 'animation_direction' => array(
  1142. 'type' => 'select',
  1143. 'label' => __( 'Direction of Animation', 'fusion-core' ),
  1144. 'desc' => __( 'Select the incoming direction for the animation', 'fusion-core' ),
  1145. 'options' => $animation_direction,
  1146. ),
  1147. 'animation_speed' => array(
  1148. 'type' => 'select',
  1149. 'std' => '',
  1150. 'label' => __( 'Speed of Animation', 'fusion-core' ),
  1151. 'desc' => __( 'Type in speed of animation in seconds (0.1 - 1)', 'fusion-core' ),
  1152. 'options' => $dec_numbers,
  1153. ),
  1154. 'margin_top' => array(
  1155. 'std' => '',
  1156. 'type' => 'text',
  1157. 'label' => __( 'Margin Top', 'fusion-core' ),
  1158. 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
  1159. ),
  1160. 'margin_bottom' => array(
  1161. 'std' => '',
  1162. 'type' => 'text',
  1163. 'label' => __( 'Margin Bottom', 'fusion-core' ),
  1164. 'desc' => __( 'In pixels (px), ex: 10px.', 'fusion-core' )
  1165. ),
  1166. 'class' => array(
  1167. 'std' => '',
  1168. 'type' => 'text',
  1169. 'label' => __( 'CSS Class', 'fusion-core' ),
  1170. 'desc' => __( 'Add a class to the wrapping HTML element.', 'fusion-core')
  1171. ),
  1172. 'id' => array(
  1173. 'std' => '',
  1174. 'type' => 'text',
  1175. 'label' => __( 'CSS ID', 'fusion-core' ),
  1176. 'desc' => __( 'Add an ID to the wrapping HTML element.', 'fusion-core')
  1177. ),
  1178. ),
  1179. '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
  1180. 'popup_title' => __( 'Content Boxes Shortcode', 'fusion-core' ),
  1181. 'no_preview' => true,
  1182. // child shortcode is clonable & sortable
  1183. 'child_shortcode' => array(
  1184. 'params' => array(
  1185. 'title' => array(
  1186. 'std' => '',
  1187. 'type' => 'text',
  1188. 'label' => __( 'Title', 'fusion-core'),
  1189. 'desc' => __( 'The box title.', 'fusion-core' ),
  1190. ),
  1191. 'icon' => array(
  1192. 'type' => 'iconpicker',
  1193. 'label' => __( 'Icon', 'fusion-core' ),
  1194. 'desc' => __( 'Click an icon to select, click again to deselect.', 'fusion-core' ),
  1195. 'options' => $icons
  1196. ),
  1197. 'backgroundcolor' => array(
  1198. 'type' => 'colorpicker',
  1199. 'label' => __( 'Content Box Background Color', 'fusion-core' ),
  1200. 'desc' => __( 'Leave blank for the