PageRenderTime 54ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/wp-content/plugins/js_composer/config/map.php

https://bitbucket.org/acipriani/madeinapulia.com
PHP | 3304 lines | 2980 code | 93 blank | 231 comment | 11 complexity | ee12427dd23267811626468e79bdb60e MD5 | raw file
Possible License(s): GPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, GPL-2.0, Apache-2.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /**
  3. * WPBakery Visual Composer Shortcodes settings
  4. *
  5. * @package VPBakeryVisualComposer
  6. *
  7. */
  8. $vc_is_wp_version_3_6_more = version_compare( preg_replace( '/^([\d\.]+)(\-.*$)/', '$1', get_bloginfo( 'version' ) ), '3.6' ) >= 0;
  9. // Used in "Button", "Call __( 'Blue', 'js_composer' )to Action", "Pie chart" blocks
  10. $colors_arr = array(
  11. __( 'Grey', 'js_composer' ) => 'wpb_button',
  12. __( 'Blue', 'js_composer' ) => 'btn-primary',
  13. __( 'Turquoise', 'js_composer' ) => 'btn-info',
  14. __( 'Green', 'js_composer' ) => 'btn-success',
  15. __( 'Orange', 'js_composer' ) => 'btn-warning',
  16. __( 'Red', 'js_composer' ) => 'btn-danger',
  17. __( 'Black', 'js_composer' ) => "btn-inverse"
  18. );
  19. // Used in "Button" and "Call to Action" blocks
  20. $size_arr = array(
  21. __( 'Regular size', 'js_composer' ) => 'wpb_regularsize',
  22. __( 'Large', 'js_composer' ) => 'btn-large',
  23. __( 'Small', 'js_composer' ) => 'btn-small',
  24. __( 'Mini', 'js_composer' ) => "btn-mini"
  25. );
  26. $target_arr = array(
  27. __( 'Same window', 'js_composer' ) => '_self',
  28. __( 'New window', 'js_composer' ) => "_blank"
  29. );
  30. $add_css_animation = array(
  31. 'type' => 'dropdown',
  32. 'heading' => __( 'CSS Animation', 'js_composer' ),
  33. 'param_name' => 'css_animation',
  34. 'admin_label' => true,
  35. 'value' => array(
  36. __( 'No', 'js_composer' ) => '',
  37. __( 'Top to bottom', 'js_composer' ) => 'top-to-bottom',
  38. __( 'Bottom to top', 'js_composer' ) => 'bottom-to-top',
  39. __( 'Left to right', 'js_composer' ) => 'left-to-right',
  40. __( 'Right to left', 'js_composer' ) => 'right-to-left',
  41. __( 'Appear from center', 'js_composer' ) => "appear"
  42. ),
  43. 'description' => __( 'Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.', 'js_composer' )
  44. );
  45. vc_map( array(
  46. 'name' => __( 'Row', 'js_composer' ),
  47. 'base' => 'vc_row',
  48. 'is_container' => true,
  49. 'icon' => 'icon-wpb-row',
  50. 'show_settings_on_create' => false,
  51. 'category' => __( 'Content', 'js_composer' ),
  52. 'description' => __( 'Place content elements inside the row', 'js_composer' ),
  53. 'params' => array(
  54. array(
  55. 'type' => 'colorpicker',
  56. 'heading' => __( 'Font Color', 'js_composer' ),
  57. 'param_name' => 'font_color',
  58. 'description' => __( 'Select font color', 'js_composer' ),
  59. 'edit_field_class' => 'vc_col-md-6 vc_column'
  60. ),
  61. /*
  62. array(
  63. 'type' => 'colorpicker',
  64. 'heading' => __( 'Custom Background Color', 'js_composer' ),
  65. 'param_name' => 'bg_color',
  66. 'description' => __( 'Select backgound color for your row', 'js_composer' ),
  67. 'edit_field_class' => 'col-md-6'
  68. ),
  69. array(
  70. 'type' => 'textfield',
  71. 'heading' => __( 'Padding', 'js_composer' ),
  72. 'param_name' => 'padding',
  73. 'description' => __( 'You can use px, em, %, etc. or enter just number and it will use pixels.', 'js_composer' ),
  74. 'edit_field_class' => 'col-md-6'
  75. ),
  76. array(
  77. 'type' => 'textfield',
  78. 'heading' => __( 'Bottom margin', 'js_composer' ),
  79. 'param_name' => 'margin_bottom',
  80. 'description' => __( 'You can use px, em, %, etc. or enter just number and it will use pixels.', 'js_composer' ),
  81. 'edit_field_class' => 'col-md-6'
  82. ),
  83. array(
  84. 'type' => 'attach_image',
  85. 'heading' => __( 'Background Image', 'js_composer' ),
  86. 'param_name' => 'bg_image',
  87. 'description' => __( 'Select background image for your row', 'js_composer' )
  88. ),
  89. array(
  90. 'type' => 'dropdown',
  91. 'heading' => __( 'Background Repeat', 'js_composer' ),
  92. 'param_name' => 'bg_image_repeat',
  93. 'value' => array(
  94. __( 'Default', 'js_composer' ) => '',
  95. __( 'Cover', 'js_composer' ) => 'cover',
  96. __('Contain', 'js_composer') => 'contain',
  97. __('No Repeat', 'js_composer') => 'no-repeat'
  98. ),
  99. 'description' => __( 'Select how a background image will be repeated', 'js_composer' ),
  100. 'dependency' => array( 'element' => 'bg_image', 'not_empty' => true)
  101. ),
  102. */
  103. array(
  104. 'type' => 'textfield',
  105. 'heading' => __( 'Extra class name', 'js_composer' ),
  106. 'param_name' => 'el_class',
  107. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  108. ),
  109. array(
  110. 'type' => 'css_editor',
  111. 'heading' => __( 'Css', 'js_composer' ),
  112. 'param_name' => 'css',
  113. // 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  114. 'group' => __( 'Design options', 'js_composer' )
  115. )
  116. ),
  117. 'js_view' => 'VcRowView'
  118. ) );
  119. vc_map( array(
  120. 'name' => __( 'Row', 'js_composer' ), //Inner Row
  121. 'base' => 'vc_row_inner',
  122. 'content_element' => false,
  123. 'is_container' => true,
  124. 'icon' => 'icon-wpb-row',
  125. 'weight' => 1000,
  126. 'show_settings_on_create' => false,
  127. 'description' => __( 'Place content elements inside the row', 'js_composer' ),
  128. 'params' => array(
  129. array(
  130. 'type' => 'colorpicker',
  131. 'heading' => __( 'Font Color', 'js_composer' ),
  132. 'param_name' => 'font_color',
  133. 'description' => __( 'Select font color', 'js_composer' ),
  134. 'edit_field_class' => 'vc_col-md-6 vc_column'
  135. ),
  136. array(
  137. 'type' => 'textfield',
  138. 'heading' => __( 'Extra class name', 'js_composer' ),
  139. 'param_name' => 'el_class',
  140. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  141. ),
  142. array(
  143. 'type' => 'css_editor',
  144. 'heading' => __( 'Css', 'js_composer' ),
  145. 'param_name' => 'css',
  146. // 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  147. 'group' => __( 'Design options', 'js_composer' )
  148. )
  149. ),
  150. 'js_view' => 'VcRowView'
  151. ) );
  152. $column_width_list = array(
  153. __('1 column - 1/12', 'js_composer') => '1/12',
  154. __('2 columns - 1/6', 'js_composer') => '1/6',
  155. __('3 columns - 1/4', 'js_composer') => '1/4',
  156. __('4 columns - 1/3', 'js_composer') => '1/3',
  157. __('5 columns - 5/12', 'js_composer') => '5/12',
  158. __('6 columns - 1/2', 'js_composer') => '1/2',
  159. __('7 columns - 7/12', 'js_composer') => '7/12',
  160. __('8 columns - 2/3', 'js_composer') => '2/3',
  161. __('9 columns - 3/4', 'js_composer') => '3/4',
  162. __('10 columns - 5/6', 'js_composer') => '5/6',
  163. __('11 columns - 11/12', 'js_composer') => '11/12',
  164. __('12 columns - 1/1', 'js_composer') => '1/1'
  165. );
  166. vc_map( array(
  167. 'name' => __( 'Column', 'js_composer' ),
  168. 'base' => 'vc_column',
  169. 'is_container' => true,
  170. 'content_element' => false,
  171. 'params' => array(
  172. array(
  173. 'type' => 'colorpicker',
  174. 'heading' => __( 'Font Color', 'js_composer' ),
  175. 'param_name' => 'font_color',
  176. 'description' => __( 'Select font color', 'js_composer' ),
  177. 'edit_field_class' => 'vc_col-md-6 vc_column'
  178. ),
  179. array(
  180. 'type' => 'textfield',
  181. 'heading' => __( 'Extra class name', 'js_composer' ),
  182. 'param_name' => 'el_class',
  183. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  184. ),
  185. array(
  186. 'type' => 'css_editor',
  187. 'heading' => __( 'Css', 'js_composer' ),
  188. 'param_name' => 'css',
  189. // 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  190. 'group' => __( 'Design options', 'js_composer' )
  191. ),
  192. array(
  193. 'type' => 'dropdown',
  194. 'heading' => __( 'Width', 'js_composer' ),
  195. 'param_name' => 'width',
  196. 'value' => $column_width_list,
  197. 'group' => __( 'Width & Responsiveness', 'js_composer' ),
  198. 'description' => __( 'Select column width.', 'js_composer' ),
  199. 'std' => '1/1'
  200. ),
  201. array(
  202. 'type' => 'column_offset',
  203. 'heading' => __('Responsiveness', 'js_composer'),
  204. 'param_name' => 'offset',
  205. 'group' => __( 'Width & Responsiveness', 'js_composer' ),
  206. 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer')
  207. )
  208. ),
  209. 'js_view' => 'VcColumnView'
  210. ) );
  211. vc_map( array(
  212. "name" => __( "Column", "js_composer" ),
  213. "base" => "vc_column_inner",
  214. "class" => "",
  215. "icon" => "",
  216. "wrapper_class" => "",
  217. "controls" => "full",
  218. "allowed_container_element" => false,
  219. "content_element" => false,
  220. "is_container" => true,
  221. "params" => array(
  222. array(
  223. 'type' => 'colorpicker',
  224. 'heading' => __( 'Font Color', 'js_composer' ),
  225. 'param_name' => 'font_color',
  226. 'description' => __( 'Select font color', 'js_composer' ),
  227. 'edit_field_class' => 'vc_col-md-6 vc_column'
  228. ),
  229. array(
  230. "type" => "textfield",
  231. "heading" => __( "Extra class name", "js_composer" ),
  232. "param_name" => "el_class",
  233. "value" => "",
  234. "description" => __( "If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer" )
  235. ),
  236. array(
  237. "type" => "css_editor",
  238. "heading" => __( 'Css', "js_composer" ),
  239. "param_name" => "css",
  240. // "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer"),
  241. "group" => __( 'Design options', 'js_composer' )
  242. ),
  243. array(
  244. 'type' => 'dropdown',
  245. 'heading' => __( 'Width', 'js_composer' ),
  246. 'param_name' => 'width',
  247. 'value' => $column_width_list,
  248. 'group' => __( 'Width & Responsiveness', 'js_composer' ),
  249. 'description' => __( 'Select column width.', 'js_composer' ),
  250. 'std' => '1/1'
  251. )
  252. ),
  253. "js_view" => 'VcColumnView'
  254. ) );
  255. /* Text Block
  256. ---------------------------------------------------------- */
  257. vc_map( array(
  258. 'name' => __( 'Text Block', 'js_composer' ),
  259. 'base' => 'vc_column_text',
  260. 'icon' => 'icon-wpb-layer-shape-text',
  261. 'wrapper_class' => 'clearfix',
  262. 'category' => __( 'Content', 'js_composer' ),
  263. 'description' => __( 'A block of text with WYSIWYG editor', 'js_composer' ),
  264. 'params' => array(
  265. array(
  266. 'type' => 'textarea_html',
  267. 'holder' => 'div',
  268. 'heading' => __( 'Text', 'js_composer' ),
  269. 'param_name' => 'content',
  270. 'value' => __( '<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'js_composer' )
  271. ),
  272. $add_css_animation,
  273. array(
  274. 'type' => 'textfield',
  275. 'heading' => __( 'Extra class name', 'js_composer' ),
  276. 'param_name' => 'el_class',
  277. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  278. ),
  279. array(
  280. 'type' => 'css_editor',
  281. 'heading' => __( 'Css', 'js_composer' ),
  282. 'param_name' => 'css',
  283. // 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  284. 'group' => __( 'Design options', 'js_composer' )
  285. )
  286. )
  287. ) );
  288. /* Latest tweets
  289. ---------------------------------------------------------- */
  290. /*vc_map( array(
  291. 'name' => __( 'Twitter Widget', 'js_composer' ),
  292. 'base' => 'vc_twitter',
  293. 'icon' => 'icon-wpb-balloon-twitter-left',
  294. 'category' => __( 'Social', 'js_composer' ),
  295. 'params' => array(
  296. array(
  297. 'type' => 'textfield',
  298. 'heading' => __( 'Widget title', 'js_composer' ),
  299. 'param_name' => 'title',
  300. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  301. ),
  302. array(
  303. 'type' => 'textfield',
  304. 'heading' => __( 'Twitter username', 'js_composer' ),
  305. 'param_name' => 'twitter_name',
  306. 'admin_label' => true,
  307. 'description' => __( 'Type in twitter profile name from which load tweets.', 'js_composer' )
  308. ),
  309. array(
  310. 'type' => 'dropdown',
  311. 'heading' => __( 'Tweets count', 'js_composer' ),
  312. 'param_name' => 'tweets_count',
  313. 'admin_label' => true,
  314. 'value' => array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15),
  315. 'description' => __( 'How many recent tweets to load.', 'js_composer' )
  316. ),
  317. array(
  318. 'type' => 'textfield',
  319. 'heading' => __( 'Extra class name', 'js_composer' ),
  320. 'param_name' => 'el_class',
  321. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  322. )
  323. )
  324. ) );*/
  325. /* Separator (Divider)
  326. ---------------------------------------------------------- */
  327. vc_map( array(
  328. 'name' => __( 'Separator', 'js_composer' ),
  329. 'base' => 'vc_separator',
  330. 'icon' => 'icon-wpb-ui-separator',
  331. 'show_settings_on_create' => true,
  332. 'category' => __( 'Content', 'js_composer' ),
  333. //"controls" => 'popup_delete',
  334. 'description' => __( 'Horizontal separator line', 'js_composer' ),
  335. 'params' => array(
  336. array(
  337. 'type' => 'dropdown',
  338. 'heading' => __( 'Color', 'js_composer' ),
  339. 'param_name' => 'color',
  340. 'value' => array_merge( getVcShared( 'colors' ), array( __( 'Custom color', 'js_composer' ) => 'custom' ) ),
  341. 'std' => 'grey',
  342. 'description' => __( 'Separator color.', 'js_composer' ),
  343. 'param_holder_class' => 'vc_colored-dropdown'
  344. ),
  345. array(
  346. 'type' => 'colorpicker',
  347. 'heading' => __( 'Custom Border Color', 'js_composer' ),
  348. 'param_name' => 'accent_color',
  349. 'description' => __( 'Select border color for your element.', 'js_composer' ),
  350. 'dependency' => array(
  351. 'element' => 'color',
  352. 'value' => array( 'custom' )
  353. ),
  354. ),
  355. array(
  356. 'type' => 'dropdown',
  357. 'heading' => __( 'Style', 'js_composer' ),
  358. 'param_name' => 'style',
  359. 'value' => getVcShared( 'separator styles' ),
  360. 'description' => __( 'Separator style.', 'js_composer' )
  361. ),
  362. array(
  363. 'type' => 'dropdown',
  364. 'heading' => __( 'Element width', 'js_composer' ),
  365. 'param_name' => 'el_width',
  366. 'value' => getVcShared( 'separator widths' ),
  367. 'description' => __( 'Separator element width in percents.', 'js_composer' )
  368. ),
  369. array(
  370. 'type' => 'textfield',
  371. 'heading' => __( 'Extra class name', 'js_composer' ),
  372. 'param_name' => 'el_class',
  373. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  374. )
  375. )
  376. ) );
  377. /* Textual block
  378. ---------------------------------------------------------- */
  379. vc_map( array(
  380. 'name' => __( 'Separator with Text', 'js_composer' ),
  381. 'base' => 'vc_text_separator',
  382. 'icon' => 'icon-wpb-ui-separator-label',
  383. 'category' => __( 'Content', 'js_composer' ),
  384. 'description' => __( 'Horizontal separator line with heading', 'js_composer' ),
  385. 'params' => array(
  386. array(
  387. 'type' => 'textfield',
  388. 'heading' => __( 'Title', 'js_composer' ),
  389. 'param_name' => 'title',
  390. 'holder' => 'div',
  391. 'value' => __( 'Title', 'js_composer' ),
  392. 'description' => __( 'Separator title.', 'js_composer' )
  393. ),
  394. array(
  395. 'type' => 'dropdown',
  396. 'heading' => __( 'Title position', 'js_composer' ),
  397. 'param_name' => 'title_align',
  398. 'value' => array(
  399. __( 'Align center', 'js_composer' ) => 'separator_align_center',
  400. __( 'Align left', 'js_composer' ) => 'separator_align_left',
  401. __( 'Align right', 'js_composer' ) => "separator_align_right"
  402. ),
  403. 'description' => __( 'Select title location.', 'js_composer' )
  404. ),
  405. array(
  406. 'type' => 'dropdown',
  407. 'heading' => __( 'Color', 'js_composer' ),
  408. 'param_name' => 'color',
  409. 'value' => array_merge( getVcShared( 'colors' ), array( __( 'Custom color', 'js_composer' ) => 'custom' ) ),
  410. 'std' => 'grey',
  411. 'description' => __( 'Separator color.', 'js_composer' ),
  412. 'param_holder_class' => 'vc_colored-dropdown'
  413. ),
  414. array(
  415. 'type' => 'colorpicker',
  416. 'heading' => __( 'Custom Color', 'js_composer' ),
  417. 'param_name' => 'accent_color',
  418. 'description' => __( 'Custom separator color for your element.', 'js_composer' ),
  419. 'dependency' => array(
  420. 'element' => 'color',
  421. 'value' => array( 'custom' )
  422. ),
  423. ),
  424. array(
  425. 'type' => 'dropdown',
  426. 'heading' => __( 'Style', 'js_composer' ),
  427. 'param_name' => 'style',
  428. 'value' => getVcShared( 'separator styles' ),
  429. 'description' => __( 'Separator style.', 'js_composer' )
  430. ),
  431. array(
  432. 'type' => 'dropdown',
  433. 'heading' => __( 'Element width', 'js_composer' ),
  434. 'param_name' => 'el_width',
  435. 'value' => getVcShared( 'separator widths' ),
  436. 'description' => __( 'Separator element width in percents.', 'js_composer' )
  437. ),
  438. array(
  439. 'type' => 'textfield',
  440. 'heading' => __( 'Extra class name', 'js_composer' ),
  441. 'param_name' => 'el_class',
  442. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  443. )
  444. ),
  445. 'js_view' => 'VcTextSeparatorView'
  446. ) );
  447. /* Message box
  448. ---------------------------------------------------------- */
  449. vc_map( array(
  450. 'name' => __( 'Message Box', 'js_composer' ),
  451. 'base' => 'vc_message',
  452. 'icon' => 'icon-wpb-information-white',
  453. 'wrapper_class' => 'alert',
  454. 'category' => __( 'Content', 'js_composer' ),
  455. 'description' => __( 'Notification box', 'js_composer' ),
  456. 'params' => array(
  457. array(
  458. 'type' => 'dropdown',
  459. 'heading' => __( 'Message box type', 'js_composer' ),
  460. 'param_name' => 'color',
  461. 'value' => array(
  462. __( 'Informational', 'js_composer' ) => 'alert-info',
  463. __( 'Warning', 'js_composer' ) => 'alert-warning',
  464. __( 'Success', 'js_composer' ) => 'alert-success',
  465. __( 'Error', 'js_composer' ) => "alert-danger"
  466. ),
  467. 'description' => __( 'Select message type.', 'js_composer' ),
  468. 'param_holder_class' => 'vc_message-type'
  469. ),
  470. array(
  471. 'type' => 'dropdown',
  472. 'heading' => __( 'Style', 'js_composer' ),
  473. 'param_name' => 'style',
  474. 'value' => getVcShared( 'alert styles' ),
  475. 'description' => __( 'Alert style.', 'js_composer' )
  476. ),
  477. array(
  478. 'type' => 'textarea_html',
  479. 'holder' => 'div',
  480. 'class' => 'messagebox_text',
  481. 'heading' => __( 'Message text', 'js_composer' ),
  482. 'param_name' => 'content',
  483. 'value' => __( '<p>I am message box. Click edit button to change this text.</p>', 'js_composer' )
  484. ),
  485. $add_css_animation,
  486. array(
  487. 'type' => 'textfield',
  488. 'heading' => __( 'Extra class name', 'js_composer' ),
  489. 'param_name' => 'el_class',
  490. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  491. )
  492. ),
  493. 'js_view' => 'VcMessageView'
  494. ) );
  495. /* Facebook like button
  496. ---------------------------------------------------------- */
  497. vc_map( array(
  498. 'name' => __( 'Facebook Like', 'js_composer' ),
  499. 'base' => 'vc_facebook',
  500. 'icon' => 'icon-wpb-balloon-facebook-left',
  501. 'category' => __( 'Social', 'js_composer' ),
  502. 'description' => __( 'Facebook like button', 'js_composer' ),
  503. 'params' => array(
  504. array(
  505. 'type' => 'dropdown',
  506. 'heading' => __( 'Button type', 'js_composer' ),
  507. 'param_name' => 'type',
  508. 'admin_label' => true,
  509. 'value' => array(
  510. __( 'Standard', 'js_composer' ) => 'standard',
  511. __( 'Button count', 'js_composer' ) => 'button_count',
  512. __( 'Box count', 'js_composer' ) => 'box_count'
  513. ),
  514. 'description' => __( 'Select button type.', 'js_composer' )
  515. )
  516. )
  517. ) );
  518. /* Tweetmeme button
  519. ---------------------------------------------------------- */
  520. vc_map( array(
  521. 'name' => __( 'Tweetmeme Button', 'js_composer' ),
  522. 'base' => 'vc_tweetmeme',
  523. 'icon' => 'icon-wpb-tweetme',
  524. 'category' => __( 'Social', 'js_composer' ),
  525. 'description' => __( 'Share on twitter button', 'js_composer' ),
  526. 'params' => array(
  527. array(
  528. 'type' => 'dropdown',
  529. 'heading' => __( 'Button type', 'js_composer' ),
  530. 'param_name' => 'type',
  531. 'admin_label' => true,
  532. 'value' => array(
  533. __( 'Horizontal', 'js_composer' ) => 'horizontal',
  534. __( 'Vertical', 'js_composer' ) => 'vertical',
  535. __( 'None', 'js_composer' ) => 'none'
  536. ),
  537. 'description' => __( 'Select button type.', 'js_composer' )
  538. )
  539. )
  540. ) );
  541. /* Google+ button
  542. ---------------------------------------------------------- */
  543. vc_map( array(
  544. 'name' => __( 'Google+ Button', 'js_composer' ),
  545. 'base' => 'vc_googleplus',
  546. 'icon' => 'icon-wpb-application-plus',
  547. 'category' => __( 'Social', 'js_composer' ),
  548. 'description' => __( 'Recommend on Google', 'js_composer' ),
  549. 'params' => array(
  550. array(
  551. 'type' => 'dropdown',
  552. 'heading' => __( 'Button size', 'js_composer' ),
  553. 'param_name' => 'type',
  554. 'admin_label' => true,
  555. 'value' => array(
  556. __( 'Standard', 'js_composer' ) => '',
  557. __( 'Small', 'js_composer' ) => 'small',
  558. __( 'Medium', 'js_composer' ) => 'medium',
  559. __( 'Tall', 'js_composer' ) => 'tall'
  560. ),
  561. 'description' => __( 'Select button size.', 'js_composer' )
  562. ),
  563. array(
  564. 'type' => 'dropdown',
  565. 'heading' => __( 'Annotation', 'js_composer' ),
  566. 'param_name' => 'annotation',
  567. 'admin_label' => true,
  568. 'value' => array(
  569. __( 'Inline', 'js_composer' ) => 'inline',
  570. __( 'Bubble', 'js_composer' ) => '',
  571. __( 'None', 'js_composer' ) => 'none'
  572. ),
  573. 'description' => __( 'Select type of annotation', 'js_composer' )
  574. )
  575. )
  576. ) );
  577. /* Pinterest button
  578. ---------------------------------------------------------- */
  579. vc_map( array(
  580. 'name' => __( 'Pinterest', 'js_composer' ),
  581. 'base' => 'vc_pinterest',
  582. 'icon' => 'icon-wpb-pinterest',
  583. 'category' => __( 'Social', 'js_composer' ),
  584. 'description' => __( 'Pinterest button', 'js_composer' ),
  585. "params" => array(
  586. array(
  587. 'type' => 'dropdown',
  588. 'heading' => __( 'Button layout', 'js_composer' ),
  589. 'param_name' => 'type',
  590. 'admin_label' => true,
  591. 'value' => array(
  592. __( 'Horizontal', 'js_composer' ) => '',
  593. __( 'Vertical', 'js_composer' ) => 'vertical',
  594. __( 'No count', 'js_composer' ) => 'none' ),
  595. 'description' => __( 'Select button layout.', 'js_composer' )
  596. )
  597. )
  598. ) );
  599. /* Toggle (FAQ)
  600. ---------------------------------------------------------- */
  601. vc_map( array(
  602. 'name' => __( 'FAQ', 'js_composer' ),
  603. 'base' => 'vc_toggle',
  604. 'icon' => 'icon-wpb-toggle-small-expand',
  605. 'category' => __( 'Content', 'js_composer' ),
  606. 'description' => __( 'Toggle element for Q&A block', 'js_composer' ),
  607. 'params' => array(
  608. array(
  609. 'type' => 'textfield',
  610. 'holder' => 'h4',
  611. 'class' => 'toggle_title',
  612. 'heading' => __( 'Toggle title', 'js_composer' ),
  613. 'param_name' => 'title',
  614. 'value' => __( 'Toggle title', 'js_composer' ),
  615. 'description' => __( 'Toggle block title.', 'js_composer' )
  616. ),
  617. array(
  618. 'type' => 'textarea_html',
  619. 'holder' => 'div',
  620. 'class' => 'toggle_content',
  621. 'heading' => __( 'Toggle content', 'js_composer' ),
  622. 'param_name' => 'content',
  623. 'value' => __( '<p>Toggle content goes here, click edit button to change this text.</p>', 'js_composer' ),
  624. 'description' => __( 'Toggle block content.', 'js_composer' )
  625. ),
  626. array(
  627. 'type' => 'dropdown',
  628. 'heading' => __( 'Default state', 'js_composer' ),
  629. 'param_name' => 'open',
  630. 'value' => array(
  631. __( 'Closed', 'js_composer' ) => 'false',
  632. __( 'Open', 'js_composer' ) => 'true'
  633. ),
  634. 'description' => __( 'Select "Open" if you want toggle to be open by default.', 'js_composer' )
  635. ),
  636. $add_css_animation,
  637. array(
  638. 'type' => 'textfield',
  639. 'heading' => __( 'Extra class name', 'js_composer' ),
  640. 'param_name' => 'el_class',
  641. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  642. )
  643. ),
  644. 'js_view' => 'VcToggleView'
  645. ) );
  646. /* Single image */
  647. vc_map( array(
  648. 'name' => __( 'Single Image', 'js_composer' ),
  649. 'base' => 'vc_single_image',
  650. 'icon' => 'icon-wpb-single-image',
  651. 'category' => __( 'Content', 'js_composer' ),
  652. 'description' => __( 'Simple image with CSS animation', 'js_composer' ),
  653. 'params' => array(
  654. array(
  655. 'type' => 'textfield',
  656. 'heading' => __( 'Widget title', 'js_composer' ),
  657. 'param_name' => 'title',
  658. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  659. ),
  660. array(
  661. 'type' => 'attach_image',
  662. 'heading' => __( 'Image', 'js_composer' ),
  663. 'param_name' => 'image',
  664. 'value' => '',
  665. 'description' => __( 'Select image from media library.', 'js_composer' )
  666. ),
  667. $add_css_animation,
  668. array(
  669. 'type' => 'textfield',
  670. 'heading' => __( 'Image size', 'js_composer' ),
  671. 'param_name' => 'img_size',
  672. 'description' => __( 'Enter image size. Example: "thumbnail", "medium", "large", "full" or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'js_composer' )
  673. ),
  674. array(
  675. 'type' => 'dropdown',
  676. 'heading' => __( 'Image alignment', 'js_composer' ),
  677. 'param_name' => 'alignment',
  678. 'value' => array(
  679. __( 'Align left', 'js_composer' ) => '',
  680. __( 'Align right', 'js_composer' ) => 'right',
  681. __( 'Align center', 'js_composer' ) => 'center'
  682. ),
  683. 'description' => __( 'Select image alignment.', 'js_composer' )
  684. ),
  685. array(
  686. 'type' => 'dropdown',
  687. 'heading' => __( 'Image style', 'js_composer' ),
  688. 'param_name' => 'style',
  689. 'value' => getVcShared( 'single image styles' )
  690. ),
  691. array(
  692. 'type' => 'dropdown',
  693. 'heading' => __( 'Border color', 'js_composer' ),
  694. 'param_name' => 'border_color',
  695. 'value' => getVcShared( 'colors' ),
  696. 'std' => 'grey',
  697. 'dependency' => array(
  698. 'element' => 'style',
  699. 'value' => array( 'vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle' )
  700. ),
  701. 'description' => __( 'Border color.', 'js_composer' ),
  702. 'param_holder_class' => 'vc_colored-dropdown'
  703. ),
  704. array(
  705. 'type' => 'checkbox',
  706. 'heading' => __( 'Link to large image?', 'js_composer' ),
  707. 'param_name' => 'img_link_large',
  708. 'description' => __( 'If selected, image will be linked to the larger image.', 'js_composer' ),
  709. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  710. ),
  711. array(
  712. 'type' => 'href',
  713. 'heading' => __( 'Image link', 'js_composer' ),
  714. 'param_name' => 'link',
  715. 'description' => __( 'Enter URL if you want this image to have a link.', 'js_composer' ),
  716. 'dependency' => array(
  717. 'element' => 'img_link_large',
  718. 'is_empty' => true,
  719. 'callback' => 'wpb_single_image_img_link_dependency_callback'
  720. )
  721. ),
  722. array(
  723. 'type' => 'dropdown',
  724. 'heading' => __( 'Link Target', 'js_composer' ),
  725. 'param_name' => 'img_link_target',
  726. 'value' => $target_arr,
  727. 'dependency' => array(
  728. 'element' => 'img_link',
  729. 'not_empty' => true
  730. )
  731. ),
  732. array(
  733. 'type' => 'textfield',
  734. 'heading' => __( 'Extra class name', 'js_composer' ),
  735. 'param_name' => 'el_class',
  736. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  737. ),
  738. array(
  739. 'type' => 'css_editor',
  740. 'heading' => __( 'Css', 'js_composer' ),
  741. 'param_name' => 'css',
  742. // 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
  743. 'group' => __( 'Design options', 'js_composer' )
  744. )
  745. )
  746. ) );
  747. /* Gallery/Slideshow
  748. ---------------------------------------------------------- */
  749. vc_map( array(
  750. 'name' => __( 'Image Gallery', 'js_composer' ),
  751. 'base' => 'vc_gallery',
  752. 'icon' => 'icon-wpb-images-stack',
  753. 'category' => __( 'Content', 'js_composer' ),
  754. 'description' => __( 'Responsive image gallery', 'js_composer' ),
  755. 'params' => array(
  756. array(
  757. 'type' => 'textfield',
  758. 'heading' => __( 'Widget title', 'js_composer' ),
  759. 'param_name' => 'title',
  760. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  761. ),
  762. array(
  763. 'type' => 'dropdown',
  764. 'heading' => __( 'Gallery type', 'js_composer' ),
  765. 'param_name' => 'type',
  766. 'value' => array(
  767. __( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade',
  768. __( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide',
  769. __( 'Nivo slider', 'js_composer' ) => 'nivo',
  770. __( 'Image grid', 'js_composer' ) => 'image_grid'
  771. ),
  772. 'description' => __( 'Select gallery type.', 'js_composer' )
  773. ),
  774. array(
  775. 'type' => 'dropdown',
  776. 'heading' => __( 'Auto rotate slides', 'js_composer' ),
  777. 'param_name' => 'interval',
  778. 'value' => array( 3, 5, 10, 15, __( 'Disable', 'js_composer' ) => 0 ),
  779. 'description' => __( 'Auto rotate slides each X seconds.', 'js_composer' ),
  780. 'dependency' => array(
  781. 'element' => 'type',
  782. 'value' => array( 'flexslider_fade', 'flexslider_slide', 'nivo' )
  783. )
  784. ),
  785. array(
  786. 'type' => 'attach_images',
  787. 'heading' => __( 'Images', 'js_composer' ),
  788. 'param_name' => 'images',
  789. 'value' => '',
  790. 'description' => __( 'Select images from media library.', 'js_composer' )
  791. ),
  792. array(
  793. 'type' => 'textfield',
  794. 'heading' => __( 'Image size', 'js_composer' ),
  795. 'param_name' => 'img_size',
  796. 'description' => __( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'js_composer' )
  797. ),
  798. array(
  799. 'type' => 'dropdown',
  800. 'heading' => __( 'On click', 'js_composer' ),
  801. 'param_name' => 'onclick',
  802. 'value' => array(
  803. __( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
  804. __( 'Do nothing', 'js_composer' ) => 'link_no',
  805. __( 'Open custom link', 'js_composer' ) => 'custom_link'
  806. ),
  807. 'description' => __( 'Define action for onclick event if needed.', 'js_composer' )
  808. ),
  809. array(
  810. 'type' => 'exploded_textarea',
  811. 'heading' => __( 'Custom links', 'js_composer' ),
  812. 'param_name' => 'custom_links',
  813. 'description' => __( 'Enter links for each slide here. Divide links with linebreaks (Enter) . ', 'js_composer' ),
  814. 'dependency' => array(
  815. 'element' => 'onclick',
  816. 'value' => array( 'custom_link' )
  817. )
  818. ),
  819. array(
  820. 'type' => 'dropdown',
  821. 'heading' => __( 'Custom link target', 'js_composer' ),
  822. 'param_name' => 'custom_links_target',
  823. 'description' => __( 'Select where to open custom links.', 'js_composer' ),
  824. 'dependency' => array(
  825. 'element' => 'onclick',
  826. 'value' => array( 'custom_link' )
  827. ),
  828. 'value' => $target_arr
  829. ),
  830. array(
  831. 'type' => 'textfield',
  832. 'heading' => __( 'Extra class name', 'js_composer' ),
  833. 'param_name' => 'el_class',
  834. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  835. )
  836. )
  837. ) );
  838. /* Image Carousel
  839. ---------------------------------------------------------- */
  840. vc_map( array(
  841. 'name' => __( 'Image Carousel', 'js_composer' ),
  842. 'base' => 'vc_images_carousel',
  843. 'icon' => 'icon-wpb-images-carousel',
  844. 'category' => __( 'Content', 'js_composer' ),
  845. 'description' => __( 'Animated carousel with images', 'js_composer' ),
  846. 'params' => array(
  847. array(
  848. 'type' => 'textfield',
  849. 'heading' => __( 'Widget title', 'js_composer' ),
  850. 'param_name' => 'title',
  851. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  852. ),
  853. array(
  854. 'type' => 'attach_images',
  855. 'heading' => __( 'Images', 'js_composer' ),
  856. 'param_name' => 'images',
  857. 'value' => '',
  858. 'description' => __( 'Select images from media library.', 'js_composer' )
  859. ),
  860. array(
  861. 'type' => 'textfield',
  862. 'heading' => __( 'Image size', 'js_composer' ),
  863. 'param_name' => 'img_size',
  864. 'description' => __( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'js_composer' )
  865. ),
  866. array(
  867. 'type' => 'dropdown',
  868. 'heading' => __( 'On click', 'js_composer' ),
  869. 'param_name' => 'onclick',
  870. 'value' => array(
  871. __( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
  872. __( 'Do nothing', 'js_composer' ) => 'link_no',
  873. __( 'Open custom link', 'js_composer' ) => 'custom_link'
  874. ),
  875. 'description' => __( 'What to do when slide is clicked?', 'js_composer' )
  876. ),
  877. array(
  878. 'type' => 'exploded_textarea',
  879. 'heading' => __( 'Custom links', 'js_composer' ),
  880. 'param_name' => 'custom_links',
  881. 'description' => __( 'Enter links for each slide here. Divide links with linebreaks (Enter) . ', 'js_composer' ),
  882. 'dependency' => array(
  883. 'element' => 'onclick',
  884. 'value' => array( 'custom_link' )
  885. )
  886. ),
  887. array(
  888. 'type' => 'dropdown',
  889. 'heading' => __( 'Custom link target', 'js_composer' ),
  890. 'param_name' => 'custom_links_target',
  891. 'description' => __( 'Select where to open custom links.', 'js_composer' ),
  892. 'dependency' => array(
  893. 'element' => 'onclick',
  894. 'value' => array( 'custom_link' )
  895. ),
  896. 'value' => $target_arr
  897. ),
  898. array(
  899. 'type' => 'dropdown',
  900. 'heading' => __( 'Slider mode', 'js_composer' ),
  901. 'param_name' => 'mode',
  902. 'value' => array(
  903. __( 'Horizontal', 'js_composer' ) => 'horizontal',
  904. __( 'Vertical', 'js_composer' ) => 'vertical'
  905. ),
  906. 'description' => __( 'Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)', 'js_composer' )
  907. ),
  908. array(
  909. 'type' => 'textfield',
  910. 'heading' => __( 'Slider speed', 'js_composer' ),
  911. 'param_name' => 'speed',
  912. 'value' => '5000',
  913. 'description' => __( 'Duration of animation between slides (in ms)', 'js_composer' )
  914. ),
  915. array(
  916. 'type' => 'textfield',
  917. 'heading' => __( 'Slides per view', 'js_composer' ),
  918. 'param_name' => 'slides_per_view',
  919. 'value' => '1',
  920. 'description' => __( 'Set numbers of slides you want to display at the same time on slider\'s container for carousel mode. Supports also "auto" value, in this case it will fit slides depending on container\'s width. "auto" mode isn\'t compatible with loop mode.', 'js_composer' )
  921. ),
  922. array(
  923. 'type' => 'checkbox',
  924. 'heading' => __( 'Slider autoplay', 'js_composer' ),
  925. 'param_name' => 'autoplay',
  926. 'description' => __( 'Enables autoplay mode.', 'js_composer' ),
  927. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  928. ),
  929. array(
  930. 'type' => 'checkbox',
  931. 'heading' => __( 'Hide pagination control', 'js_composer' ),
  932. 'param_name' => 'hide_pagination_control',
  933. 'description' => __( 'If YES pagination control will be removed.', 'js_composer' ),
  934. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  935. ),
  936. array(
  937. 'type' => 'checkbox',
  938. 'heading' => __( 'Hide prev/next buttons', 'js_composer' ),
  939. 'param_name' => 'hide_prev_next_buttons',
  940. 'description' => __( 'If "YES" prev/next control will be removed.', 'js_composer' ),
  941. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  942. ),
  943. array(
  944. 'type' => 'checkbox',
  945. 'heading' => __( 'Partial view', 'js_composer' ),
  946. 'param_name' => 'partial_view',
  947. 'description' => __( 'If "YES" part of the next slide will be visible on the right side.', 'js_composer' ),
  948. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  949. ),
  950. array(
  951. 'type' => 'checkbox',
  952. 'heading' => __( 'Slider loop', 'js_composer' ),
  953. 'param_name' => 'wrap',
  954. 'description' => __( 'Enables loop mode.', 'js_composer' ),
  955. 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
  956. ),
  957. array(
  958. 'type' => 'textfield',
  959. 'heading' => __( 'Extra class name', 'js_composer' ),
  960. 'param_name' => 'el_class',
  961. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  962. )
  963. )
  964. ) );
  965. /* Tabs
  966. ---------------------------------------------------------- */
  967. $tab_id_1 = time() . '-1-' . rand( 0, 100 );
  968. $tab_id_2 = time() . '-2-' . rand( 0, 100 );
  969. vc_map( array(
  970. "name" => __( 'Tabs', 'js_composer' ),
  971. 'base' => 'vc_tabs',
  972. 'show_settings_on_create' => false,
  973. 'is_container' => true,
  974. 'icon' => 'icon-wpb-ui-tab-content',
  975. 'category' => __( 'Content', 'js_composer' ),
  976. 'description' => __( 'Tabbed content', 'js_composer' ),
  977. 'params' => array(
  978. array(
  979. 'type' => 'textfield',
  980. 'heading' => __( 'Widget title', 'js_composer' ),
  981. 'param_name' => 'title',
  982. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  983. ),
  984. array(
  985. 'type' => 'dropdown',
  986. 'heading' => __( 'Auto rotate tabs', 'js_composer' ),
  987. 'param_name' => 'interval',
  988. 'value' => array( __( 'Disable', 'js_composer' ) => 0, 3, 5, 10, 15 ),
  989. 'std' => 0,
  990. 'description' => __( 'Auto rotate tabs each X seconds.', 'js_composer' )
  991. ),
  992. array(
  993. 'type' => 'textfield',
  994. 'heading' => __( 'Extra class name', 'js_composer' ),
  995. 'param_name' => 'el_class',
  996. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  997. )
  998. ),
  999. 'custom_markup' => '
  1000. <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
  1001. <ul class="tabs_controls">
  1002. </ul>
  1003. %content%
  1004. </div>'
  1005. ,
  1006. 'default_content' => '
  1007. [vc_tab title="' . __( 'Tab 1', 'js_composer' ) . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
  1008. [vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
  1009. ',
  1010. 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'
  1011. ) );
  1012. /* Tour section
  1013. ---------------------------------------------------------- */
  1014. $tab_id_1 = time() . '-1-' . rand( 0, 100 );
  1015. $tab_id_2 = time() . '-2-' . rand( 0, 100 );
  1016. WPBMap::map( 'vc_tour', array(
  1017. 'name' => __( 'Tour', 'js_composer' ),
  1018. 'base' => 'vc_tour',
  1019. 'show_settings_on_create' => false,
  1020. 'is_container' => true,
  1021. 'container_not_allowed' => true,
  1022. 'icon' => 'icon-wpb-ui-tab-content-vertical',
  1023. 'category' => __( 'Content', 'js_composer' ),
  1024. 'wrapper_class' => 'vc_clearfix',
  1025. 'description' => __( 'Vertical tabbed content', 'js_composer' ),
  1026. 'params' => array(
  1027. array(
  1028. 'type' => 'textfield',
  1029. 'heading' => __( 'Widget title', 'js_composer' ),
  1030. 'param_name' => 'title',
  1031. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  1032. ),
  1033. array(
  1034. 'type' => 'dropdown',
  1035. 'heading' => __( 'Auto rotate slides', 'js_composer' ),
  1036. 'param_name' => 'interval',
  1037. 'value' => array( __( 'Disable', 'js_composer' ) => 0, 3, 5, 10, 15 ),
  1038. 'std' => 0,
  1039. 'description' => __( 'Auto rotate slides each X seconds.', 'js_composer' )
  1040. ),
  1041. array(
  1042. 'type' => 'textfield',
  1043. 'heading' => __( 'Extra class name', 'js_composer' ),
  1044. 'param_name' => 'el_class',
  1045. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  1046. )
  1047. ),
  1048. 'custom_markup' => '
  1049. <div class="wpb_tabs_holder wpb_holder vc_clearfix vc_container_for_children">
  1050. <ul class="tabs_controls">
  1051. </ul>
  1052. %content%
  1053. </div>'
  1054. ,
  1055. 'default_content' => '
  1056. [vc_tab title="' . __( 'Tab 1', 'js_composer' ) . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
  1057. [vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
  1058. ',
  1059. 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'
  1060. ) );
  1061. vc_map( array(
  1062. 'name' => __( 'Tab', 'js_composer' ),
  1063. 'base' => 'vc_tab',
  1064. 'allowed_container_element' => 'vc_row',
  1065. 'is_container' => true,
  1066. 'content_element' => false,
  1067. 'params' => array(
  1068. array(
  1069. 'type' => 'textfield',
  1070. 'heading' => __( 'Title', 'js_composer' ),
  1071. 'param_name' => 'title',
  1072. 'description' => __( 'Tab title.', 'js_composer' )
  1073. ),
  1074. array(
  1075. 'type' => 'tab_id',
  1076. 'heading' => __( 'Tab ID', 'js_composer' ),
  1077. 'param_name' => "tab_id"
  1078. )
  1079. ),
  1080. 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'
  1081. ) );
  1082. /* Accordion block
  1083. ---------------------------------------------------------- */
  1084. vc_map( array(
  1085. 'name' => __( 'Accordion', 'js_composer' ),
  1086. 'base' => 'vc_accordion',
  1087. 'show_settings_on_create' => false,
  1088. 'is_container' => true,
  1089. 'icon' => 'icon-wpb-ui-accordion',
  1090. 'category' => __( 'Content', 'js_composer' ),
  1091. 'description' => __( 'Collapsible content panels', 'js_composer' ),
  1092. 'params' => array(
  1093. array(
  1094. 'type' => 'textfield',
  1095. 'heading' => __( 'Widget title', 'js_composer' ),
  1096. 'param_name' => 'title',
  1097. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  1098. ),
  1099. array(
  1100. 'type' => 'textfield',
  1101. 'heading' => __( 'Active section', 'js_composer' ),
  1102. 'param_name' => 'active_tab',
  1103. 'description' => __( 'Enter section number to be active on load or enter false to collapse all sections.', 'js_composer' )
  1104. ),
  1105. array(
  1106. 'type' => 'checkbox',
  1107. 'heading' => __( 'Allow collapsible all', 'js_composer' ),
  1108. 'param_name' => 'collapsible',
  1109. 'description' => __( 'Select checkbox to allow all sections to be collapsible.', 'js_composer' ),
  1110. 'value' => array( __( 'Allow', 'js_composer' ) => 'yes' )
  1111. ),
  1112. array(
  1113. 'type' => 'textfield',
  1114. 'heading' => __( 'Extra class name', 'js_composer' ),
  1115. 'param_name' => 'el_class',
  1116. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  1117. )
  1118. ),
  1119. 'custom_markup' => '
  1120. <div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children">
  1121. %content%
  1122. </div>
  1123. <div class="tab_controls">
  1124. <a class="add_tab" title="' . __( 'Add section', 'js_composer' ) . '"><span class="vc_icon"></span> <span class="tab-label">' . __( 'Add section', 'js_composer' ) . '</span></a>
  1125. </div>
  1126. ',
  1127. 'default_content' => '
  1128. [vc_accordion_tab title="' . __( 'Section 1', 'js_composer' ) . '"][/vc_accordion_tab]
  1129. [vc_accordion_tab title="' . __( 'Section 2', 'js_composer' ) . '"][/vc_accordion_tab]
  1130. ',
  1131. 'js_view' => 'VcAccordionView'
  1132. ) );
  1133. vc_map( array(
  1134. 'name' => __( 'Section', 'js_composer' ),
  1135. 'base' => 'vc_accordion_tab',
  1136. 'allowed_container_element' => 'vc_row',
  1137. 'is_container' => true,
  1138. 'content_element' => false,
  1139. 'params' => array(
  1140. array(
  1141. 'type' => 'textfield',
  1142. 'heading' => __( 'Title', 'js_composer' ),
  1143. 'param_name' => 'title',
  1144. 'description' => __( 'Accordion section title.', 'js_composer' )
  1145. ),
  1146. ),
  1147. 'js_view' => 'VcAccordionTabView'
  1148. ) );
  1149. /* Teaser grid
  1150. * @deprecated please use vc_posts_grid
  1151. ---------------------------------------------------------- */
  1152. vc_map( array(
  1153. 'name' => __( 'Teaser (posts) Grid', 'js_composer' ),
  1154. 'base' => 'vc_teaser_grid',
  1155. 'content_element' => false,
  1156. 'icon' => 'icon-wpb-application-icon-large',
  1157. 'category' => __( 'Content', 'js_composer' ),
  1158. 'params' => array(
  1159. array(
  1160. 'type' => 'textfield',
  1161. 'heading' => __( 'Widget title', 'js_composer' ),
  1162. 'param_name' => 'title',
  1163. 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
  1164. ),
  1165. array(
  1166. 'type' => 'dropdown',
  1167. 'heading' => __( 'Columns count', 'js_composer' ),
  1168. 'param_name' => 'grid_columns_count',
  1169. 'value' => array( 4, 3, 2, 1 ),
  1170. 'admin_label' => true,
  1171. 'description' => __( 'Select columns count.', 'js_composer' )
  1172. ),
  1173. array(
  1174. 'type' => 'posttypes',
  1175. 'heading' => __( 'Post types', 'js_composer' ),
  1176. 'param_name' => 'grid_posttypes',
  1177. 'description' => __( 'Select post types to populate posts from.', 'js_composer' )
  1178. ),
  1179. array(
  1180. 'type' => 'textfield',
  1181. 'heading' => __( 'Teasers count', 'js_composer' ),
  1182. 'param_name' => 'grid_teasers_count',
  1183. 'description' => __( 'How many teasers to show? Enter number or word "All".', 'js_composer' )
  1184. ),
  1185. array(
  1186. 'type' => 'dropdown',
  1187. 'heading' => __( 'Content', 'js_composer' ),
  1188. 'param_name' => 'grid_content',
  1189. 'value' => array(
  1190. __( 'Teaser (Excerpt)', 'js_composer' ) => 'teaser',
  1191. __( 'Full Content', 'js_composer' ) => 'content'
  1192. ),
  1193. 'description' => __( 'Teaser layout template.', 'js_composer' )
  1194. ),
  1195. array(
  1196. 'type' => 'dropdown',
  1197. 'heading' => __( 'Layout', 'js_composer' ),
  1198. 'param_name' => 'grid_layout',
  1199. 'value' => array(
  1200. __( 'Title + Thumbnail + Text', 'js_composer' ) => 'title_thumbnail_text',
  1201. __( 'Thumbnail + Title + Text', 'js_composer' ) => 'thumbnail_title_text',
  1202. __( 'Thumbnail + Text', 'js_composer' ) => 'thumbnail_text',
  1203. __( 'Thumbnail + Title', 'js_composer' ) => 'thumbnail_title',
  1204. __( 'Thumbnail only', 'js_composer' ) => 'thumbnail',
  1205. __( 'Title + Text', 'js_composer' ) => 'title_text' ),
  1206. 'description' => __( 'Teaser layout.', 'js_composer' )
  1207. ),
  1208. array(
  1209. 'type' => 'dropdown',
  1210. 'heading' => __( 'Link', 'js_composer' ),
  1211. 'param_name' => 'grid_link',
  1212. 'value' => array(
  1213. __( 'Link to post', 'js_composer' ) => 'link_post',
  1214. __( 'Link to bigger image', 'js_composer' ) => 'link_image',
  1215. __( 'Thumbnail to bigger image, title to post', 'js_composer' ) => 'link_image_post',
  1216. __( 'No link', 'js_composer' ) => 'link_no'
  1217. ),
  1218. 'description' => __( 'Link type.', 'js_composer' )
  1219. ),
  1220. array(
  1221. 'type' => 'dropdown',
  1222. 'heading' => __( 'Link target', 'js_composer' ),
  1223. 'param_name' => 'grid_link_target',
  1224. 'value' => $target_arr,
  1225. 'dependency' => array(
  1226. 'element' => 'grid_link',
  1227. 'value' => array( 'link_post', 'link_image_post' )
  1228. )
  1229. ),
  1230. array(
  1231. 'type' => 'dropdown',
  1232. 'heading' => __( 'Teaser grid layout', 'js_composer' ),
  1233. 'param_name' => 'grid_template',
  1234. 'value' => array(
  1235. __( 'Grid', 'js_composer' ) => 'grid',
  1236. __( 'Grid with filter', 'js_composer' ) => 'filtered_grid',
  1237. __( 'Carousel', 'js_composer' ) => 'carousel'
  1238. ),
  1239. 'description' => __( 'Teaser layout template.', 'js_composer' )
  1240. ),
  1241. array(
  1242. 'type' => 'dropdown',
  1243. 'heading' => __( 'Layout mode', 'js_composer' ),
  1244. 'param_name' => 'grid_layout_mode',
  1245. 'value' => array(
  1246. __( 'Fit rows', 'js_composer' ) => 'fitRows',
  1247. __( 'Masonry', 'js_composer' ) => 'masonry'
  1248. ),
  1249. 'dependency' => array(
  1250. 'element' => 'grid_template',
  1251. 'value' => array( 'filtered_grid', 'grid' )
  1252. ),
  1253. 'description' => __( 'Teaser layout template.', 'js_composer' )
  1254. ),
  1255. array(
  1256. 'type' => 'taxonomies',
  1257. 'heading' => __( 'Taxonomies', 'js_composer' ),
  1258. 'param_name' => 'grid_taxomonies',
  1259. 'dependency' => array(
  1260. 'element' => 'grid_template',
  1261. // 'not_empty' => true,
  1262. 'value' => array( 'filtered_grid' ),
  1263. 'callback' => 'wpb_grid_post_types_for_taxonomies_handler'
  1264. ),
  1265. 'description' => __( 'Select taxonomies.', 'js_composer' )
  1266. ),
  1267. array(
  1268. 'type' => 'textfield',
  1269. 'heading' => __( 'Thumbnail size', 'js_composer' ),
  1270. 'param_name' => 'grid_thumb_size',
  1271. 'description' => __( 'Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer' )
  1272. ),
  1273. array(
  1274. 'type' => 'textfield',
  1275. 'heading' => __( 'Post/Page IDs', 'js_composer' ),
  1276. 'param_name' => 'posts_in',
  1277. 'description' => __( 'Fill this field with page/posts IDs separated by commas (,) to retrieve only them. Use this in conjunction with "Post types" field.', 'js_composer' )
  1278. ),
  1279. array(
  1280. 'type' => 'textfield',
  1281. 'heading' => __( 'Exclude Post/Page IDs', 'js_composer' ),
  1282. 'param_name' => 'posts_not_in',
  1283. 'description' => __( 'Fill this field with page/posts IDs separated by commas (,) to exclude them from query.', 'js_composer' )
  1284. ),
  1285. array(
  1286. 'type' => 'exploded_textarea',
  1287. 'heading' => __( 'Categories', 'js_composer' ),
  1288. 'param_name' => 'grid_categories',
  1289. 'description' => __( 'If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter) . ', 'js_composer' )
  1290. ),
  1291. array(
  1292. 'type' => 'dropdown',
  1293. 'heading' => __( 'Order by', 'js_composer' ),
  1294. 'param_name' => 'orderby',
  1295. 'value' => array(
  1296. '',
  1297. __( 'Date', 'js_composer' ) => 'date',
  1298. __( 'ID', 'js_composer' ) => 'ID',
  1299. __( 'Author', 'js_composer' ) => 'author',
  1300. __( 'Title', 'js_composer' ) => 'title',
  1301. __( 'Modified', 'js_composer' ) => 'modified',
  1302. __( 'Random', 'js_composer' ) => 'rand',
  1303. __( 'Comment count', 'js_composer' ) => 'comment_count',
  1304. __( 'Menu order', 'js_composer' ) => 'menu_order'
  1305. ),
  1306. 'description' => sprintf( __( 'Select how to sort retrieved posts. More at %s.', 'js_composer' ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
  1307. ),
  1308. array(
  1309. 'type' => 'dropdown',
  1310. 'heading' => __( 'Order way', 'js_composer' ),
  1311. 'param_name' => 'order',
  1312. 'value' => array(
  1313. __( 'Descending', 'js_composer' ) => 'DESC',
  1314. __( 'Ascending', 'js_composer' ) => 'ASC'
  1315. ),
  1316. 'description' => sprintf( __( 'Designates the ascending or descending order. More at %s.', 'js_composer' ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
  1317. ),
  1318. array(
  1319. 'type' => 'textfield',
  1320. 'heading' => __( 'Extra class name', 'js_composer' ),
  1321. 'param_name' => 'el_class',
  1322. 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' )
  1323. )
  1324. )
  1325. ) );
  1326. /* Posts Grid
  1327. ---------------------------------------------------------- */
  1328. $vc_layout_sub_controls = array(
  1329. array( 'link_post', __( 'Link to post', 'js_comp…

Large files files are truncated, but you can click here to view the full file