Advertisement
rdusnr

Untitled

Nov 1st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 265.88 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * Visual Composer specific configurations
  5. * @package WordPress
  6. * @subpackage K Elements
  7. * @author SeventhQueen <themesupport@seventhqueen.com>
  8. * @since K Elements 1.0
  9. */
  10.  
  11.  
  12. vc_set_as_theme();
  13.  
  14. if (! function_exists('kleo_vc_elem_increment')) {
  15. function kleo_vc_elem_increment() {
  16. static $count = 0;
  17. $count ++;
  18.  
  19. return $count;
  20. }
  21. }
  22.  
  23.  
  24. /***************************************************
  25. :: Remove Teaser Metabox
  26. ***************************************************/
  27. if ( is_admin() ) {
  28. function kleo_vc_remove_teaser_metabox() {
  29. $post_types = get_post_types( '', 'names' );
  30. foreach ( $post_types as $post_type ) {
  31. remove_meta_box( 'vc_teaser', $post_type, 'side' );
  32. }
  33. }
  34. add_action( 'do_meta_boxes', 'kleo_vc_remove_teaser_metabox' );
  35. }
  36.  
  37.  
  38.  
  39. // Remove Default VC Features
  40. /*vc_remove_element("vc_wp_search");
  41. vc_remove_element("vc_wp_meta");
  42. vc_remove_element("vc_wp_recentcomments");
  43. vc_remove_element("vc_wp_pages");
  44. vc_remove_element("vc_wp_text");
  45. vc_remove_element("vc_wp_links");
  46. vc_remove_element("vc_wp_rss");
  47. vc_remove_element("vc_button");
  48. vc_remove_element("vc_posts_slider");
  49. vc_remove_element("vc_cta_button");
  50. vc_remove_element("vc_cta_button2");*/
  51.  
  52.  
  53. /***************************************************
  54. :: Visual Composer CSS replace classes
  55. ***************************************************/
  56.  
  57.  
  58. function kleo_css_classes_for_vc_row_and_vc_column( $class_string, $tag ) {
  59.  
  60. if($tag=='vc_row' || $tag=='vc_row_inner') {
  61. $class_string = str_replace('vc_row-fluid', 'row', $class_string);
  62. }
  63. elseif($tag=='vc_column' || $tag=='vc_column_inner') {
  64. $class_string = str_replace('vc_span2', 'col-sm-2', $class_string);
  65. $class_string = str_replace('vc_span3', 'col-sm-3', $class_string);
  66. $class_string = str_replace('vc_span4', 'col-sm-4', $class_string);
  67. $class_string = str_replace('vc_span5', 'col-sm-5', $class_string);
  68. $class_string = str_replace('vc_span6', 'col-sm-6', $class_string);
  69. $class_string = str_replace('vc_span7', 'col-sm-7', $class_string);
  70. $class_string = str_replace('vc_span8', 'col-sm-8', $class_string);
  71. $class_string = str_replace('vc_span9', 'col-sm-9', $class_string);
  72. $class_string = str_replace('vc_span10', 'col-sm-10', $class_string);
  73. $class_string = str_replace('vc_span11', 'col-sm-11', $class_string);
  74. $class_string = str_replace('vc_span12', 'col-sm-12', $class_string);
  75. $class_string = str_replace('wpb_column', 'kleo_column', $class_string);
  76.  
  77. }
  78.  
  79. return $class_string;
  80. }
  81.  
  82. function kleo_css_classes_for_elements( $class_string, $tag, $atts = array() ) {
  83. if ( $tag == 'vc_widget_sidebar' ) {
  84. $class_string .= ' sidebar';
  85. }
  86.  
  87. if ($tag == 'vc_column_text' || $tag == 'vc_custom_heading' ) {
  88.  
  89. if (isset($atts['letter_spacing']) && $atts['letter_spacing'] != '') {
  90. $class_string .= ' letter-spacing-' . $atts['letter_spacing'];
  91. }
  92. if (isset($atts['vertical_separator']) && $atts['vertical_separator'] != '') {
  93. $class_string .= ' vertical-separator';
  94. if ($atts['vertical_separator'] == 'dark') {
  95. $class_string .= ' vertical-dark';
  96. }
  97. }
  98. }
  99. if ( $tag == 'vc_custom_heading' ) {
  100. if ( isset( $atts['visibility'] ) && $atts['visibility'] != '' ) {
  101. $class_string .= ' ' . str_replace( ',', ' ', $atts['visibility'] );
  102. }
  103. }
  104. if ( $tag == 'vc_progress_bar' ) {
  105. if ( isset( $atts['style'] ) && $atts['style'] != '' ) {
  106. $class_string .= ' ' . $atts['style'] . '-style';
  107. }
  108. }
  109.  
  110.  
  111. return $class_string;
  112. }
  113.  
  114. /**
  115. * Disabled class changes and replaced with custom column template in theme for performance
  116. */
  117. function kleo_vc_replace_classes() {
  118. if ( defined( 'KLEO_THEME_VERSION' ) && KLEO_THEME_VERSION <= '3.0' ) {
  119. add_filter('vc_shortcodes_css_class', 'kleo_css_classes_for_vc_row_and_vc_column', 10, 3);
  120. }
  121. add_filter('vc_shortcodes_css_class', 'kleo_css_classes_for_elements', 10, 3);
  122. }
  123. add_action( 'after_setup_theme', 'kleo_vc_replace_classes', 12 );
  124.  
  125.  
  126.  
  127. /***************************************************
  128. :: Visual Composer modify parameters
  129. ***************************************************/
  130.  
  131. function kleo_vc_manipulate_shortcodes() {
  132.  
  133. global $kleo_config;
  134. $k_elements = $kleo_config['shortcodes'];
  135.  
  136. $animation =array(
  137. "type" => "dropdown",
  138. "class" => "hide hidden",
  139. "holder" => 'div',
  140. "heading" => __("Animation", "k-elements"),
  141. "admin_label" => true,
  142. "param_name" => "animation",
  143. "value" => array(
  144. "None" => "",
  145. "Animate when visible" => "animate-when-visible",
  146. "Animate when almost visible" => "animate-when-almost-visible"
  147. ),
  148. "description" => ""
  149. );
  150. $css_animation = array(
  151. "type" => "dropdown",
  152. "class" => "hide hidden",
  153. "holder" => 'div',
  154. "heading" => __("Animation type", "k-elements"),
  155. //"admin_label" => true,
  156. "param_name" => "css_animation",
  157. "value" => array(
  158. "Right to Left" => "right-to-left",
  159. "Left to Right" => "left-to-right",
  160. "Bottom to Top" => "bottom-to-top",
  161. "Top to Bottom" => "top-to-bottom",
  162. "Scale" => "el-appear",
  163. "Fade" => "el-fade",
  164. "Pulsate" => "pulsate",
  165. ),
  166. "dependency" => array(
  167. "element" => "animation",
  168. "not_empty" => true
  169. ),
  170. "description" => ""
  171. );
  172.  
  173. $visibility = array(
  174. 'param_name' => 'visibility',
  175. 'heading' => __( 'Responsive Visibility', 'k-elements' ),
  176. 'description' => __( 'Hide/Show content by screen size.', 'k-elements' ),
  177. 'type' => 'checkbox',
  178. 'holder' => 'div',
  179. 'value' => array(
  180. 'Hidden Phones (max 768px)' => 'hidden-xs',
  181. 'Hidden Tablets (768px - 991px)' => 'hidden-sm',
  182. 'Hidden Desktops (992px - 1199px)' => 'hidden-md',
  183. 'Hidden Large Desktops (min 1200px)' => 'hidden-lg',
  184. 'Hidden XLarge Desktops (min 1440px)' => 'hidden-xlg',
  185. 'Visible Phones (max 767px)' => 'visible-xs',
  186. 'Visible Tablets (768px - 991px)' => 'visible-sm',
  187. 'Visible Desktops (992px - 1199px)' => 'visible-md',
  188. 'Visible Large Desktops (min 1200px)' => 'visible-lg',
  189. 'Visible XLarge Desktops (min 1440px)' => 'visible-xlg'
  190. ),
  191. 'group' => __( 'Responsive Visibility', 'k-elements' ),
  192. );
  193.  
  194. $letter_spacing = array(
  195. 'param_name' => 'letter_spacing',
  196. 'heading' => __( 'Letter spacing', 'k-elements' ),
  197. 'description' => __( 'Set a custom letter spacing.', 'k-elements' ),
  198. 'type' => 'dropdown',
  199. 'class' => 'hide hidden',
  200. 'holder' => 'div',
  201. 'value' => array(
  202. 'Default' => '',
  203. '0.03em' => '25',
  204. '0.06em' => '50',
  205. '0.09em' => '75',
  206. '0.12em' => '100',
  207. '2px' => '2px',
  208. '4px' => '4px',
  209. ),
  210. );
  211. $vertical_separator = array(
  212. 'param_name' => 'vertical_separator',
  213. 'heading' => __( 'Vertical separator', 'k-elements' ),
  214. 'description' => __( 'Set a fancy vertical line separator to the left side.', 'k-elements' ),
  215. 'type' => 'dropdown',
  216. 'class' => 'hide hidden',
  217. 'holder' => 'div',
  218. 'value' => array(
  219. 'No' => '',
  220. 'Yes' => 'yes',
  221. 'Dark' => 'dark'
  222. ),
  223. 'group' => __( 'Vertical separator', 'k-elements' ),
  224. );
  225.  
  226.  
  227. $icon = array(
  228. 'type' => 'iconpicker',
  229. 'heading' => __( 'Icon', 'k-elements' ),
  230. 'param_name' => 'icon',
  231. "admin_label" => true,
  232. 'value' => '', // default value to backend editor admin_label
  233. 'settings' => array(
  234. 'emptyIcon' => false,
  235. 'type' => 'fontello',
  236. 'iconsPerPage' => 4000,
  237. ),
  238. 'description' => __( 'Select icon from library.', 'k-elements' ),
  239. );
  240.  
  241. $icon_size = array(
  242. "type" => "dropdown",
  243. "class" => "hide hidden",
  244. "holder" => 'div',
  245. "heading" => __("Icon size", "k-elements"),
  246. "admin_label" => true,
  247. "param_name" => "icon_size",
  248. "value" => array(
  249. "Regular" => "",
  250. "2x" => "2x",
  251. "3x" => "3x",
  252. "4x" => "4x"
  253. )
  254. );
  255.  
  256. $el_class = array(
  257. "type" => "textfield",
  258. "holder" => 'div',
  259. 'class' => 'hide hidden',
  260. "heading" => __("Extra class name", "k-elements"),
  261. "param_name" => "el_class",
  262. "value" => "",
  263. "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.","k-elements")
  264. );
  265.  
  266. $tooltip = array(
  267. "type" => "dropdown",
  268. "holder" => 'div',
  269. 'class' => 'hide hidden',
  270. "heading" => __("Show Tooltip/Popover", "k-elements"),
  271. "param_name" => "tooltip",
  272. "value" => array(
  273. 'No' => '',
  274. "Tooltip" => "tooltip",
  275. "Popover" => "popover"
  276. ),
  277. "description" => __("Display a tooltip or popover with descriptive text."),
  278. );
  279. $tooltip_position = array(
  280. "type" => "dropdown",
  281. "holder" => 'div',
  282. 'class' => 'hide hidden',
  283. "heading" => __("Tip position", "k-elements"),
  284. "param_name" => "tooltip_position",
  285. "value" => array(
  286. "Left" => "left",
  287. "Right" => "right",
  288. "Top" => "top",
  289. "Bottom" => "bottom"
  290. ),
  291. "dependency" => array(
  292. "element" => "tooltip",
  293. "not_empty" => true
  294. ),
  295. "description" => __("In which position to show the tooltip/popover"),
  296. );
  297. $tooltip_title = array(
  298. "type" => "textfield",
  299. "holder" => 'div',
  300. 'class' => 'hide hidden',
  301. "heading" => __("Tip/Popover Title", "k-elements"),
  302. "param_name" => "tooltip_title",
  303. "value" => "",
  304. "dependency" => array(
  305. "element" => "tooltip",
  306. "not_empty" => true
  307. ),
  308. );
  309. $tooltip_text = array(
  310. "type" => "textfield",
  311. "holder" => 'div',
  312. 'class' => 'hide hidden',
  313. "heading" => __("Popover text", "k-elements"),
  314. "param_name" => "tooltip_text",
  315. "value" => "",
  316. "dependency" => array(
  317. "element" => "tooltip",
  318. "value" => "popover"
  319. ),
  320. );
  321. $tooltip_action = array(
  322. "type" => "dropdown",
  323. "holder" => 'div',
  324. 'class' => 'hide hidden',
  325. "heading" => __("Tip/Popover action", "k-elements"),
  326. "param_name" => "tooltip_action",
  327. "value" => array(
  328. "Hover" => "hover",
  329. "Click" => "click"
  330. ),
  331. "dependency" => array(
  332. "element" => "tooltip",
  333. "not_empty" => true
  334. ),
  335. "description" => __("When to trigger the popover"),
  336. );
  337.  
  338. $button_args = array(
  339. array(
  340. "param_name" => "title",
  341. "type" => "textfield",
  342. "holder" => "div",
  343. "class" => "",
  344. "heading" => __( "Title", "k-elements" ),
  345. "value" => __( 'Text on the button', "k-elements" ),
  346. "description" => __( "Button text." )
  347. ),
  348. array(
  349. "param_name" => "href",
  350. "type" => "textfield",
  351. "holder" => "div",
  352. "class" => "",
  353. "heading" => __( "URL(Link)" , "k-elements" ),
  354. "value" => '',
  355. "description" => ""
  356. ),
  357. array(
  358. "type" => "dropdown",
  359. "holder" => "div",
  360. "class" => "hide hidden",
  361. "heading" => __( "Target" , "k-elements"),
  362. "param_name" => "target",
  363. "value" => array(
  364. 'Same window' => '_self',
  365. 'New window' => '_blank'
  366. ),
  367. "description" => ""
  368. ),
  369. array(
  370. "param_name" => "style",
  371. "type" => "dropdown",
  372. "holder" => "div",
  373. "class" => "hide hidden",
  374. "heading" => __( "Style" , "k-elements"),
  375. "value" => array(
  376. 'Default' => 'default',
  377. 'Primary' => 'primary',
  378. 'See through' => 'see-through',
  379. 'Highlight' => 'highlight',
  380. 'Highlight style 2' => 'highlight style2',
  381. 'Link' => 'link',
  382. 'Custom' => 'custom'
  383. ),
  384. "description" => "Choose the button style",
  385. ),
  386. array(
  387. 'type' => 'colorpicker',
  388. 'heading' => __( 'Background color', 'k-elements' ),
  389. 'param_name' => 'custom_background',
  390. 'description' => __( 'Select custom background color.', 'k-elements' ),
  391. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  392. 'group' => __( 'Custom button', 'k-elements' ),
  393. 'dependency' => array(
  394. 'element' => 'style',
  395. 'value' => array( 'custom' )
  396. ),
  397. ),
  398. array(
  399. 'type' => 'colorpicker',
  400. 'heading' => __( 'Hover Background color', 'k-elements' ),
  401. 'param_name' => 'custom_bg_hover',
  402. 'description' => __( 'Select custom background color on hover.', 'k-elements' ),
  403. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  404. 'group' => __( 'Custom button', 'k-elements' ),
  405. 'dependency' => array(
  406. 'element' => 'style',
  407. 'value' => array( 'custom' )
  408. ),
  409. ),
  410. array(
  411. 'type' => 'colorpicker',
  412. 'heading' => __( 'Text color', 'k-elements' ),
  413. 'param_name' => 'custom_text',
  414. 'description' => __( 'Select custom text color.', 'k-elements' ),
  415. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  416. 'group' => __( 'Custom button', 'k-elements' ),
  417. 'dependency' => array(
  418. 'element' => 'style',
  419. 'value' => array( 'custom' )
  420. ),
  421. ),
  422. array(
  423. 'type' => 'colorpicker',
  424. 'heading' => __( 'Hover Text color', 'k-elements' ),
  425. 'param_name' => 'custom_text_hover',
  426. 'description' => __( 'Select custom text color on hover.', 'k-elements' ),
  427. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  428. 'group' => __( 'Custom button', 'k-elements' ),
  429. 'dependency' => array(
  430. 'element' => 'style',
  431. 'value' => array( 'custom' )
  432. ),
  433. ),
  434. array(
  435. 'type' => 'colorpicker',
  436. 'heading' => __( 'Border color', 'k-elements' ),
  437. 'param_name' => 'custom_border',
  438. 'description' => __( 'Select custom border color.', 'k-elements' ),
  439. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  440. 'group' => __( 'Custom button', 'k-elements' ),
  441. 'dependency' => array(
  442. 'element' => 'style',
  443. 'value' => array( 'custom' )
  444. ),
  445. ),
  446. array(
  447. 'type' => 'colorpicker',
  448. 'heading' => __( 'Hover border color', 'k-elements' ),
  449. 'param_name' => 'custom_border_hover',
  450. 'description' => __( 'Select custom border color on hover.', 'k-elements' ),
  451. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  452. 'group' => __( 'Custom button', 'k-elements' ),
  453. 'dependency' => array(
  454. 'element' => 'style',
  455. 'value' => array( 'custom' )
  456. ),
  457. ),
  458. array(
  459. "param_name" => "border_width",
  460. "type" => "dropdown",
  461. "holder" => "div",
  462. "class" => "hide hidden",
  463. "heading" => __( "Border width", "k-elements"),
  464. "value" => array(
  465. 'Default' => '',
  466. '1px' => '1px',
  467. '2px' => '2px',
  468. '3px' => '3px',
  469. '4px' => '4px',
  470. '5px' => '5px',
  471. '6px' => '6px',
  472. '7px' => '7px',
  473. '8px' => '8px',
  474. '9px' => '9px',
  475. '10px' => '10px',
  476. ),
  477. "description" => 'Custom border width',
  478. 'group' => __( 'Custom button', 'k-elements' ),
  479. 'dependency' => array(
  480. 'element' => 'style',
  481. 'value' => array( 'custom' )
  482. ),
  483. ),
  484. array(
  485. 'type' => 'colorpicker',
  486. 'heading' => __( 'Boxed Icon Type - Icon Background', 'k-elements' ),
  487. 'param_name' => 'icon_custom_background',
  488. 'description' => __( 'Select custom background color.', 'k-elements' ),
  489. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  490. 'group' => __( 'Custom button', 'k-elements' ),
  491. 'dependency' => array(
  492. 'element' => 'type',
  493. 'value' => array( 'boxed-icon' )
  494. ),
  495. ),
  496. array(
  497. 'type' => 'colorpicker',
  498. 'heading' => __( 'Boxed Icon Type - Icon Text color', 'k-elements' ),
  499. 'param_name' => 'icon_custom_text',
  500. 'description' => __( 'Select custom text color.', 'k-elements' ),
  501. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  502. 'group' => __( 'Custom button', 'k-elements' ),
  503. 'dependency' => array(
  504. 'element' => 'type',
  505. 'value' => array( 'boxed-icon' )
  506. ),
  507. ),
  508. array(
  509. "param_name" => "position",
  510. "type" => "dropdown",
  511. "holder" => "div",
  512. "class" => "hide hidden",
  513. "heading" => __( "Position", "k-elements"),
  514. "value" => array(
  515. 'Inline' => 'inline',
  516. 'Left' => 'left',
  517. 'Right' => 'right',
  518. 'Center' => 'center',
  519. ),
  520. "description" => "Choose how to position the button"
  521. ),
  522. array(
  523. "param_name" => "size",
  524. "type" => "dropdown",
  525. "holder" => "div",
  526. "class" => "hide hidden",
  527. "heading" => __( "Size", "k-elements" ),
  528. "value" => array(
  529. 'Default' => '',
  530. 'Extra small' => 'xs',
  531. 'Small' => 'sm',
  532. 'Large' => 'lg',
  533. 'XLarge' => 'xl',
  534. 'XXLarge' => 'xxl',
  535. ),
  536. "description" => "Choose how you want them to appear"
  537. ),
  538. array(
  539. "param_name" => "type",
  540. "type" => "dropdown",
  541. "holder" => "div",
  542. "class" => "hide hidden",
  543. "heading" => __( "Type", "k-elements" ),
  544. "value" => array(
  545. 'Regular' => '',
  546. 'Boxed Left Icon' => 'boxed-icon',
  547. 'Animated' => 'text-animated',
  548. 'Subtext' => 'subtext',
  549. 'App button' => 'app'
  550. ),
  551. "description" => "Choose between several button types. Fox Boxed Let Icon type check Advanced styling for custom colors "
  552. ),
  553.  
  554.  
  555. array(
  556. "param_name" => "title_alt",
  557. "type" => "textfield",
  558. "holder" => "div",
  559. "class" => "",
  560. "heading" => __( "Second title", "k-elements" ),
  561. "value" => '',
  562. "dependency" => array(
  563. "element" => "type",
  564. "value" => array( 'text-animated', 'subtext', 'app' )
  565. ),
  566. "description" => ""
  567. ),
  568.  
  569. array(
  570. "param_name" => "special",
  571. "type" => "dropdown",
  572. "holder" => "div",
  573. "class" => "hide hidden",
  574. "heading" => __( "Rounded button", "k-elements" ),
  575. "value" => array(
  576. 'Default(2px)' => '',
  577. 'Extra rounded(Special)' => 'yes',
  578. 'Extra rounded - no border' => 'no_border',
  579. 'Not rounded' => 'no',
  580. ),
  581. "description" => "Make the button extra rounded"
  582. ),
  583. array(
  584. "param_name" => "border",
  585. "type" => "dropdown",
  586. "holder" => "div",
  587. "class" => "hide hidden",
  588. "heading" => __( "Border", "k-elements" ),
  589. "value" => array(
  590. 'Default' => '',
  591. 'No border' => 'no',
  592. ),
  593. "description" => 'Remove button border'
  594. ),
  595.  
  596. $icon,
  597. $tooltip,
  598. $tooltip_position,
  599. $tooltip_title,
  600. $tooltip_text,
  601. $tooltip_action,
  602. array(
  603. "param_name" => "font_size",
  604. "type" => "textfield",
  605. "holder" => "div",
  606. "class" => "hide hidden",
  607. "heading" => __( "Font size. Use px|em|pt", "k-elements" ),
  608. "value" => '',
  609. "description" => "",
  610. //'group' => __( 'Advanced styling', 'k-elements' ),
  611. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  612. ),
  613. array(
  614. "param_name" => "font_weight",
  615. "type" => "dropdown",
  616. "holder" => "div",
  617. "class" => "hide hidden",
  618. "heading" => __( "Font weight", "k-elements" ),
  619. "value" => array(
  620. 'Theme Default' => '',
  621. 'Regular' => '400',
  622. 'Bold' => '700',
  623.  
  624. ),
  625. "description" => "Set a custom font weight.",
  626. //'group' => __( 'Advanced styling', 'k-elements' ),
  627. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  628. ),
  629. array(
  630. "param_name" => "uppercase",
  631. "type" => "checkbox",
  632. "holder" => "div",
  633. "class" => "hide hidden",
  634. "heading" => __( "Make text uppercase", "k-elements" ),
  635. "value" => array(
  636. "Yes" => "yes"
  637. ),
  638. "description" => "",
  639. //'group' => __( 'Advanced styling', 'k-elements' ),
  640. ),
  641. );
  642.  
  643.  
  644.  
  645. $box_shadow = array(
  646. array(
  647. "type" => "colorpicker",
  648. "holder" => "div",
  649. "class" => "hide hidden",
  650. "heading" => __("Shadow color", "k-elements"),
  651. "param_name" => "box_shadow_color",
  652. "value" => "#000000",
  653. 'group' => __( 'Box shadow', 'k-elements' ),
  654. ),
  655. array(
  656. "type" => "textfield",
  657. "holder" => "div",
  658. "class" => "hide hidden",
  659. "heading" => __("Horizontal Length", "k-elements"),
  660. "param_name" => "box_shadow_x",
  661. "value" => "0",
  662. "description" => __("Length in pixels"),
  663. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  664. 'group' => __( 'Box shadow', 'k-elements' ),
  665. ),
  666. array(
  667. "type" => "textfield",
  668. "holder" => "div",
  669. "class" => "hide hidden",
  670. "heading" => __("Vertical Length", "k-elements"),
  671. "param_name" => "box_shadow_y",
  672. "value" => "0",
  673. "description" => __("Length in pixels"),
  674. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  675. 'group' => __( 'Box shadow', 'k-elements' ),
  676. ),
  677. array(
  678. "type" => "textfield",
  679. "holder" => "div",
  680. "class" => "hide hidden",
  681. "heading" => __("Blur Radius", "k-elements"),
  682. "param_name" => "box_shadow_blur",
  683. "value" => "0",
  684. "description" => __("Length in pixels"),
  685. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  686. 'group' => __( 'Box shadow', 'k-elements' ),
  687. ),
  688. array(
  689. "type" => "textfield",
  690. "holder" => "div",
  691. "class" => "hide hidden",
  692. "heading" => __("Spread Radius", "k-elements"),
  693. "param_name" => "box_shadow_spread",
  694. "value" => "0",
  695. "description" => __("Length in pixels"),
  696. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  697. 'group' => __( 'Box shadow', 'k-elements' ),
  698. ),
  699. );
  700.  
  701.  
  702. $query_offset = array(
  703. "param_name" => "query_offset",
  704. "type" => "textfield",
  705. "holder" => "div",
  706. "class" => "hide hidden",
  707. "heading" => __('Query offset', 'k-elements'),
  708. "value" => '0',
  709. "description" => 'Enter an offset for the posts query(numerical value)',
  710. );
  711.  
  712. $responsive_font = array(
  713. array(
  714. "type" => "checkbox",
  715. "holder" => 'div',
  716. 'class' => 'hide hidden',
  717. "heading" => __("Enable responsive font size settings", "k-elements"),
  718. "param_name" => "responsive_font",
  719. "description" => "",
  720. 'value' => array(
  721. 'Yes' => 'yes'
  722. ),
  723. ),
  724. array(
  725. "type" => "textfield",
  726. "class" => "hide hidden",
  727. "holder" => 'div',
  728. "heading" => __("Font size - Mobile", "k-elements"),
  729. "admin_label" => true,
  730. "param_name" => "font_size_xs",
  731. "value" => "",
  732. "description" => "Max 768px device width. Use px|em|%|pt|cm",
  733. 'group' => __( 'Responsive Font', 'k-elements' ),
  734. 'dependency' => array(
  735. 'element' => 'responsive_font',
  736. "not_empty" => true
  737. ),
  738. 'edit_field_class' => 'vc_col-sm-6 vc_column pad-top-15',
  739. ),
  740. array(
  741. "type" => "textfield",
  742. "class" => "hide hidden",
  743. "holder" => 'div',
  744. "heading" => __("Line Height - Mobile", "k-elements"),
  745. "admin_label" => true,
  746. "param_name" => "line_height_xs",
  747. "value" => "",
  748. "description" => "Max 768px device width. Use px|em|%|pt|cm",
  749. 'group' => __( 'Responsive Font', 'k-elements' ),
  750. 'dependency' => array(
  751. 'element' => 'responsive_font',
  752. "not_empty" => true
  753. ),
  754. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  755. ),
  756. array(
  757. "type" => "textfield",
  758. "class" => "hide hidden",
  759. "holder" => 'div',
  760. "heading" => __("Font size - Tablet", "k-elements"),
  761. "admin_label" => true,
  762. "param_name" => "font_size_sm",
  763. "value" => "",
  764. "description" => "768px - 991px device width. Use px|em|%|pt|cm",
  765. 'group' => __( 'Responsive Font', 'k-elements' ),
  766. 'dependency' => array(
  767. 'element' => 'responsive_font',
  768. "not_empty" => true
  769. ),
  770. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  771. ),
  772. array(
  773. "type" => "textfield",
  774. "class" => "hide hidden",
  775. "holder" => 'div',
  776. "heading" => __("Line Height - Tablet", "k-elements"),
  777. "admin_label" => true,
  778. "param_name" => "line_height_sm",
  779. "value" => "",
  780. "description" => "768px - 991px device width. Use px|em|%|pt|cm",
  781. 'group' => __( 'Responsive Font', 'k-elements' ),
  782. 'dependency' => array(
  783. 'element' => 'responsive_font',
  784. "not_empty" => true
  785. ),
  786. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  787. ),
  788. array(
  789. "type" => "textfield",
  790. "class" => "hide hidden",
  791. "holder" => 'div',
  792. "heading" => __("Font size - Desktop", "k-elements"),
  793. "admin_label" => true,
  794. "param_name" => "font_size_md",
  795. "value" => "",
  796. "description" => "991px - 1200px device width. Use px|em|%|pt|cm",
  797. 'group' => __( 'Responsive Font', 'k-elements' ),
  798. 'dependency' => array(
  799. 'element' => 'responsive_font',
  800. "not_empty" => true
  801. ),
  802. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  803. ),
  804. array(
  805. "type" => "textfield",
  806. "class" => "hide hidden",
  807. "holder" => 'div',
  808. "heading" => __("Line Height - Desktop", "k-elements"),
  809. "admin_label" => true,
  810. "param_name" => "line_height_md",
  811. "value" => "",
  812. "description" => "991px - 1200px device width. Use px|em|%|pt|cm",
  813. 'group' => __( 'Responsive Font', 'k-elements' ),
  814. 'dependency' => array(
  815. 'element' => 'responsive_font',
  816. "not_empty" => true
  817. ),
  818. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  819. ),
  820. );
  821.  
  822.  
  823. /* ROW */
  824. vc_remove_param( 'vc_row', 'full_width' );
  825. //vc_remove_param( 'vc_row', 'bg_color' );
  826. vc_remove_param( 'vc_row', 'font_color' );
  827. //vc_remove_param( 'vc_row', 'bg_image' );
  828. vc_remove_param( 'vc_row', 'bg_image_repeat' );
  829. vc_remove_param( 'vc_row', 'padding' );
  830. vc_remove_param( 'vc_row', 'margin_bottom' );
  831. vc_remove_param( 'vc_row', 'el_class' );
  832. vc_remove_param( 'vc_row', 'css' );
  833. vc_remove_param( 'vc_row', 'parallax' );
  834. vc_remove_param( 'vc_row', 'parallax_image' );
  835. vc_remove_param( 'vc_row', 'parallax_speed_bg' );
  836.  
  837. vc_add_param( 'vc_row', array(
  838. 'param_name' => 'front_status',
  839. 'heading' => __( 'Status', 'k-elements' ),
  840. 'description' => __( 'Select front-end visibility status. If set to Draft it will not show on your page.', 'k-elements' ),
  841. 'type' => 'dropdown',
  842. 'holder' => 'div',
  843. 'class' => 'hide hidden',
  844. "value" => array(
  845. 'Enabled' => '',
  846. 'Draft' => 'draft'
  847. )
  848. ) );
  849.  
  850. vc_add_param( 'vc_row', array(
  851. 'param_name' => 'inner_container',
  852. 'heading' => __( 'Inner Container', 'k-elements' ),
  853. 'description' => __( 'Select whether to insert a container to the section. This will keep the content from going full with.', 'k-elements' ),
  854. 'type' => 'dropdown',
  855. 'holder' => 'div',
  856. 'class' => 'hide hidden',
  857. "admin_label" => true,
  858. "value" => array(
  859. 'Yes' => 'yes',
  860. 'No' => 'no'
  861. )
  862. ) );
  863. vc_add_param( 'vc_row', array(
  864. 'param_name' => 'text_align',
  865. 'heading' => __( 'Text align', 'k-elements' ),
  866. 'description' => __( 'Align whole row content.', 'k-elements' ),
  867. 'type' => 'dropdown',
  868. 'holder' => 'div',
  869. 'class' => 'hide hidden',
  870. "value" => array(
  871. 'Left' => '',
  872. 'Right' => 'right',
  873. 'Center' => 'center'
  874. )
  875. ) );
  876.  
  877.  
  878. vc_add_param("vc_row", array(
  879. "type" => "colorpicker",
  880. "holder" => 'div',
  881. 'class' => 'hide hidden',
  882. "heading" => __("Text color", "k-elements"),
  883. "param_name" => "text_color",
  884. "value" => "",
  885. "description" => __("Try to force a color for the whole section."),
  886. 'group' => __( 'Text & Background', 'k-elements' ),
  887. ));
  888.  
  889. vc_add_param("vc_row", array(
  890. "type" => "dropdown",
  891. "holder" => 'div',
  892. 'class' => 'hide hidden',
  893. "heading" => __("Section style", "k-elements"),
  894. "admin_label" => true,
  895. "param_name" => "section_type",
  896. "value" => array(
  897. "Main style" => "main",
  898. "Alternate style" => "alternate",
  899. "Header style" => "header",
  900. "Footer style" => "footer",
  901. "Socket style" => "socket"
  902. ),
  903. "description" => __("These styles are set under Theme options. They will apply that section styling to this row(background color, text color, highlight color, etc)"),
  904. 'group' => __( 'Text & Background', 'k-elements' ),
  905. ));
  906.  
  907. vc_add_param("vc_row", array(
  908. "type" => "dropdown",
  909. "holder" => 'div',
  910. 'class' => 'hide hidden',
  911. "heading" => __("Background style", "k-elements"),
  912. "admin_label" => true,
  913. "param_name" => "type",
  914. "value" => array(
  915. "Default" => '',
  916. "Color" => "color",
  917. "Image" => "image",
  918. "Video" => "video"
  919. ),
  920. "description" => "",
  921. 'group' => __( 'Text & Background', 'k-elements' ),
  922. ));
  923.  
  924.  
  925. vc_add_param("vc_row", array(
  926. "type" => "colorpicker",
  927. "holder" => 'div',
  928. 'class' => 'hide hidden',
  929. "heading" => __("Background color", "k-elements"),
  930. "param_name" => "bg_color",
  931. "value" => "",
  932. "description" => __(""),
  933. "dependency" => array(
  934. "element" => "type",
  935. "value" => array("color", "image")
  936. ),
  937. 'group' => __( 'Text & Background', 'k-elements' ),
  938. ));
  939. vc_add_param("vc_row", array(
  940. "type" => "attach_image", //attach_images
  941. "holder" => 'div',
  942. 'class' => 'hide hidden',
  943. "heading" => __("Background image", "k-elements"),
  944. "param_name" => "bg_image",
  945. "description" => "",
  946. "dependency" => array(
  947. "element" => "type",
  948. "value" => "image"
  949. ),
  950. 'group' => __( 'Text & Background', 'k-elements' ),
  951. ));
  952. vc_add_param("vc_row", array(
  953. "type" => "checkbox", //attach_images
  954. "holder" => 'div',
  955. 'class' => 'hide hidden',
  956. "heading" => __("Enable dark gradient", "k-elements"),
  957. "param_name" => "bg_gradient",
  958. "description" => "",
  959. "dependency" => array(
  960. "element" => "type",
  961. "value" => "image"
  962. ),
  963. 'value' => array(
  964. 'Yes' => 'yes'
  965. ),
  966. 'group' => __( 'Text & Background', 'k-elements' ),
  967. ));
  968.  
  969. vc_add_param("vc_row", array(
  970. "type" => "dropdown",
  971. "holder" => 'div',
  972. 'class' => 'hide hidden',
  973. "heading" => __("BG vertical position", "k-elements"),
  974. "param_name" => "bg_position",
  975. "value" => array(
  976. "Top" => "top",
  977. "Middle" => "center",
  978. "Bottom" => "bottom"
  979. ),
  980. "description" => __(""),
  981. "dependency" => array(
  982. "element" => "type",
  983. "value" => "image"
  984. ),
  985. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  986. 'group' => __( 'Text & Background', 'k-elements' ),
  987. ));
  988. vc_add_param("vc_row", array(
  989. "type" => "dropdown",
  990. "holder" => 'div',
  991. 'class' => 'hide hidden',
  992. "heading" => __("BG horizontal position", "k-elements"),
  993. "param_name" => "bg_position_horizontal",
  994. "value" => array(
  995. "Left" => "left",
  996. "Middle" => "center",
  997. "Right" => "right"
  998. ),
  999. "description" => __(""),
  1000. "dependency" => array(
  1001. "element" => "type",
  1002. "value" => "image"
  1003. ),
  1004. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1005. 'group' => __( 'Text & Background', 'k-elements' ),
  1006. ));
  1007. vc_add_param("vc_row", array(
  1008. "type" => "dropdown",
  1009. "holder" => 'div',
  1010. 'class' => 'hide hidden',
  1011. "heading" => __("Background repeat", "k-elements"),
  1012. "param_name" => "bg_repeat",
  1013. "value" => array(
  1014. "No repeat" => "no-repeat",
  1015. "Repeat (horizontally & vertically)" => "repeat",
  1016. "Repeat horizontally" => "repeat-x",
  1017. "Repeat vertically" => "repeat-y"
  1018. ),
  1019. "description" => __(""),
  1020. "dependency" => array(
  1021. "element" => "type",
  1022. "value" => "image"
  1023. ),
  1024. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1025. 'group' => __( 'Text & Background', 'k-elements' ),
  1026. ));
  1027. vc_add_param("vc_row", array(
  1028. "type" => "dropdown",
  1029. "holder" => 'div',
  1030. 'class' => 'hide hidden',
  1031. "heading" => __("Full-width background", "k-elements"),
  1032. "param_name" => "bg_cover",
  1033. "value" => array(
  1034. "Enabled" => "true",
  1035. "Disabled" => "false"
  1036. ),
  1037. "description" => "",
  1038. "dependency" => array(
  1039. "element" => "type",
  1040. "value" => "image"
  1041. ),
  1042. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1043. 'group' => __( 'Text & Background', 'k-elements' ),
  1044. ));
  1045. vc_add_param("vc_row", array(
  1046. "type" => "dropdown",
  1047. "holder" => 'div',
  1048. 'class' => 'hide hidden',
  1049. "heading" => __("Fixed background", "k-elements"),
  1050. "param_name" => "bg_attachment",
  1051. "value" => array(
  1052. "Disabled" => "false",
  1053. "Enabled" => "true"
  1054. ),
  1055. "description" => __(""),
  1056. "dependency" => array(
  1057. "element" => "type",
  1058. "value" => "image"
  1059. ),
  1060. 'group' => __( 'Text & Background', 'k-elements' ),
  1061. ));
  1062. // parallax enable
  1063. vc_add_param("vc_row", array(
  1064. "type" => "checkbox",
  1065. "holder" => 'div',
  1066. 'class' => 'hide hidden',
  1067. "heading" => __("Enable parallax", "k-elements"),
  1068. "param_name" => "enable_parallax",
  1069. "value" => array(
  1070. "" => "false"
  1071. ),
  1072. "dependency" => array(
  1073. "element" => "type",
  1074. "value" => "image"
  1075. ),
  1076. 'group' => __( 'Text & Background', 'k-elements' ),
  1077. ));
  1078. vc_add_param("vc_row", array(
  1079. "type" => "textfield",
  1080. "holder" => 'div',
  1081. 'class' => 'hide hidden',
  1082. "heading" => __("Parallax speed", "k-elements"),
  1083. "param_name" => "parallax_speed",
  1084. "value" => "0.1",
  1085. "dependency" => array(
  1086. "element" => "enable_parallax",
  1087. "not_empty" => true
  1088. ),
  1089. 'group' => __( 'Text & Background', 'k-elements' ),
  1090. ));
  1091. // video background
  1092. vc_add_param("vc_row", array(
  1093. "type" => "textfield",
  1094. "holder" => 'div',
  1095. 'class' => 'hide hidden',
  1096. "heading" => __("Video background (mp4)", "k-elements"),
  1097. "param_name" => "bg_video_src_mp4",
  1098. "value" => "",
  1099. "dependency" => array(
  1100. "element" => "type",
  1101. "value" => "video"
  1102. ),
  1103. 'group' => __( 'Text & Background', 'k-elements' ),
  1104. ));
  1105. vc_add_param("vc_row", array(
  1106. "type" => "textfield",
  1107. "holder" => 'div',
  1108. 'class' => 'hide hidden',
  1109. "heading" => __("Video background (ogv)", "k-elements"),
  1110. "param_name" => "bg_video_src_ogv",
  1111. "value" => "",
  1112. "dependency" => array(
  1113. "element" => "type",
  1114. "value" => "video"
  1115. ),
  1116. 'group' => __( 'Text & Background', 'k-elements' ),
  1117. ));
  1118. vc_add_param("vc_row", array(
  1119. "type" => "textfield",
  1120. "holder" => 'div',
  1121. 'class' => 'hide hidden',
  1122. "heading" => __("Video background (webm)", "k-elements"),
  1123. "param_name" => "bg_video_src_webm",
  1124. "value" => "",
  1125. "dependency" => array(
  1126. "element" => "type",
  1127. "value" => "video"
  1128. ),
  1129. 'group' => __( 'Text & Background', 'k-elements' ),
  1130. ));
  1131. vc_add_param("vc_row", array(
  1132. "type" => "attach_image", //attach_images
  1133. "holder" => 'div',
  1134. 'class' => 'hide hidden',
  1135. "heading" => __("Image cover", "k-elements"),
  1136. "param_name" => "bg_video_cover",
  1137. "description" => "It will show before video load and on some mobile devices where video can't be played.",
  1138. "dependency" => array(
  1139. "element" => "type",
  1140. "value" => "video"
  1141. ),
  1142. 'group' => __( 'Text & Background', 'k-elements' ),
  1143. ));
  1144.  
  1145. vc_add_param("vc_row", array(
  1146. "type" => "dropdown",
  1147. "holder" => 'div',
  1148. 'class' => 'hide hidden',
  1149. "heading" => __("Vertical Aligned Content", "k-elements"),
  1150. "param_name" => "vertical_align",
  1151. "value" => array(
  1152. "No" => '',
  1153. "Yes" => "yes"
  1154. ),
  1155. "description" => "If you set Yes then the content in the row columns will have middle vertical alignment"
  1156. ));
  1157. vc_add_param("vc_row", array(
  1158. "type" => "dropdown",
  1159. "holder" => 'div',
  1160. 'class' => 'hide hidden',
  1161. "heading" => __("Between Columns Gap", "k-elements"),
  1162. "param_name" => "column_gap",
  1163. "value" => array(
  1164. "Yes" => '',
  1165. "No" => "no"
  1166. ),
  1167. "description" => "Set to No only when you want to remove inner Columns padding."
  1168. ));
  1169.  
  1170. vc_add_param("vc_row", array(
  1171. "type" => "textfield",
  1172. "holder" => 'div',
  1173. 'class' => 'hide hidden',
  1174. "heading" => __("Top padding", "k-elements"),
  1175. "param_name" => "padding_top",
  1176. "value" => "40",
  1177. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1178. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1179. ));
  1180. vc_add_param("vc_row", array(
  1181. "type" => "textfield",
  1182. "holder" => 'div',
  1183. 'class' => 'hide hidden',
  1184. "heading" => __("Bottom padding", "k-elements"),
  1185. "param_name" => "padding_bottom",
  1186. "value" => "40",
  1187. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1188. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1189. ));
  1190. vc_add_param("vc_row", array(
  1191. "type" => "textfield",
  1192. "holder" => 'div',
  1193. 'class' => 'hide hidden',
  1194. "heading" => __("Left padding", "k-elements"),
  1195. "param_name" => "padding_left",
  1196. "value" => "",
  1197. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1198. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1199. ));
  1200. vc_add_param("vc_row", array(
  1201. "type" => "textfield",
  1202. "holder" => 'div',
  1203. 'class' => 'hide hidden',
  1204. "heading" => __("Right padding", "k-elements"),
  1205. "param_name" => "padding_right",
  1206. "value" => "",
  1207. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1208. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  1209. ));
  1210.  
  1211.  
  1212. vc_add_param("vc_row", array(
  1213. "type" => "textfield",
  1214. "holder" => 'div',
  1215. 'class' => 'hide hidden',
  1216. "heading" => __("Top margin", "k-elements"),
  1217. "param_name" => "margin_top",
  1218. "value" => "",
  1219. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1220. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1221. ));
  1222. vc_add_param("vc_row", array(
  1223. "type" => "textfield",
  1224. "holder" => 'div',
  1225. 'class' => 'hide hidden',
  1226. "heading" => __("Bottom margin", "k-elements"),
  1227. "param_name" => "margin_bottom",
  1228. "value" => "",
  1229. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1230. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1231. ));
  1232. vc_add_param("vc_row", array(
  1233. "type" => "textfield",
  1234. "holder" => 'div',
  1235. 'class' => 'hide hidden',
  1236. "heading" => __("Minim height", "k-elements"),
  1237. "param_name" => "min_height",
  1238. "value" => "0",
  1239. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1240. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1241. ));
  1242. vc_add_param("vc_row", array(
  1243. "type" => "textfield",
  1244. "holder" => 'div',
  1245. 'class' => 'hide hidden',
  1246. "heading" => __("Fixed height", "k-elements"),
  1247. "param_name" => "fixed_height",
  1248. "value" => "0",
  1249. "description" => __("Allowed measures: px,em,%,pt,cm."),
  1250. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1251. ));
  1252.  
  1253. vc_add_param( 'vc_row', array(
  1254. 'param_name' => 'border',
  1255. 'heading' => __( 'Border', 'k-elements' ),
  1256. 'description' => __( 'Select whether or not to display a border on this section.', 'k-elements' ),
  1257. 'type' => 'dropdown',
  1258. "holder" => 'div',
  1259. 'class' => 'hide hidden',
  1260. 'value' => array(
  1261. 'None' => 'none',
  1262. 'Bottom' => 'bottom',
  1263. 'Top' => 'top',
  1264. 'Left' => 'left',
  1265. 'Right' => 'right',
  1266. 'Horizontal' => 'horizontal',
  1267. 'Vertical' => 'vertical',
  1268. 'All' => 'all'
  1269. )
  1270. ) );
  1271.  
  1272. // overflow hidden
  1273. vc_add_param("vc_row", array(
  1274. "type" => "checkbox",
  1275. "holder" => 'div',
  1276. 'class' => 'hide hidden',
  1277. "heading" => __("Overflow hidden", "k-elements"),
  1278. "param_name" => "overflow",
  1279. 'description' => __( 'Check if you want to hide section overflow', 'k-elements' ),
  1280. "value" => array(
  1281. "" => "false"
  1282. )
  1283. ));
  1284.  
  1285. vc_add_param("vc_row", $animation);
  1286. vc_add_param("vc_row", $css_animation);
  1287.  
  1288. vc_add_param( "vc_row", $visibility );
  1289.  
  1290. vc_add_param("vc_row", array(
  1291. "type" => "textfield",
  1292. "holder" => 'div',
  1293. 'class' => 'hide hidden',
  1294. "heading" => __("Custom inline style", "k-elements"),
  1295. "param_name" => "inline_style",
  1296. "value" => ""
  1297. ));
  1298.  
  1299. vc_add_param("vc_row", $el_class);
  1300.  
  1301. vc_add_param("vc_row", array(
  1302. "type" => "textfield",
  1303. "holder" => 'div',
  1304. 'class' => 'hide hidden',
  1305. "heading" => __("Element ID", "k-elements"),
  1306. "param_name" => "el_id",
  1307. "value" => "",
  1308. "description" => "Set an ID for this section(without #). Can be used for One page links"
  1309. ));
  1310.  
  1311.  
  1312. /* vc_row_inner */
  1313. vc_add_param( 'vc_row_inner', array(
  1314. 'param_name' => 'inner_container',
  1315. 'heading' => __( 'Inner Container', 'k-elements' ),
  1316. 'description' => __( 'Select whether to insert a container to the section. This will keep the content from going full with.', 'k-elements' ),
  1317. 'type' => 'dropdown',
  1318. 'holder' => 'div',
  1319. 'class' => 'hide hidden',
  1320. "admin_label" => true,
  1321. "value" => array(
  1322. 'No' => 'no',
  1323. 'Yes' => 'yes'
  1324. )
  1325. ) );
  1326. vc_add_param( 'vc_row_inner', array(
  1327. "type" => "textfield",
  1328. "holder" => "div",
  1329. "class" => "hide hidden",
  1330. "heading" => __("Min. height", "k-elements"),
  1331. "param_name" => "min_height",
  1332. "value" => "",
  1333. "description" => __("Force a minimum height. Use px|em|%|pt|cm"),
  1334. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1335. ));
  1336.  
  1337. vc_add_param( 'vc_row_inner', array(
  1338. "type" => "textfield",
  1339. "holder" => "div",
  1340. "class" => "hide hidden",
  1341. "heading" => __( "Fixed height", "k-elements" ),
  1342. "param_name" => "fixed_height",
  1343. "value" => "",
  1344. "description" => __( "Force a fixed height. Use px|em|%|pt|cm" ),
  1345. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1346. ) );
  1347. vc_add_param("vc_row_inner", array(
  1348. "type" => "dropdown",
  1349. "holder" => 'div',
  1350. 'class' => 'hide hidden',
  1351. "heading" => __("Background horizontal position", "k-elements"),
  1352. "param_name" => "bg_pos_h",
  1353. "value" => array(
  1354. "Default" => "",
  1355. "Left" => "left",
  1356. "Center" => "center",
  1357. "Right" => "right"
  1358. ),
  1359. "description" => __(""),
  1360. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1361. 'group' => __( 'Design Options', 'k-elements' ),
  1362. ));
  1363.  
  1364. vc_add_param("vc_row_inner", array(
  1365. "type" => "dropdown",
  1366. "holder" => 'div',
  1367. 'class' => 'hide hidden',
  1368. "heading" => __("Background vertical position", "k-elements"),
  1369. "param_name" => "bg_pos_v",
  1370. "value" => array(
  1371. "Default" => "",
  1372. "Top" => "top",
  1373. "Center" => "center",
  1374. "Bottom" => "bottom"
  1375. ),
  1376. "description" => __(""),
  1377. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  1378. 'group' => __( 'Design Options', 'k-elements' ),
  1379. ));
  1380.  
  1381. vc_add_param("vc_row_inner", array(
  1382. "type" => "checkbox",
  1383. "holder" => 'div',
  1384. 'class' => 'hide hidden',
  1385. "heading" => __("Enable dark gradient", "k-elements"),
  1386. "param_name" => "bg_gradient",
  1387. "description" => "",
  1388. 'value' => array(
  1389. 'Yes' => 'yes'
  1390. ),
  1391. 'group' => __( 'Design Options', 'k-elements' ),
  1392. ));
  1393.  
  1394.  
  1395.  
  1396.  
  1397. /* Inner column */
  1398.  
  1399. vc_map_update("vc_column_inner", array("allowed_container_element" => true));
  1400.  
  1401.  
  1402. vc_add_param("vc_column_inner", array(
  1403. "type" => "checkbox",
  1404. "holder" => 'div',
  1405. 'class' => 'hide hidden',
  1406. "heading" => __("Enable dark gradient", "k-elements"),
  1407. "param_name" => "bg_gradient",
  1408. "description" => "",
  1409. 'value' => array(
  1410. 'Yes' => 'yes'
  1411. ),
  1412. 'group' => __( 'Design Options', 'k-elements' ),
  1413. ));
  1414.  
  1415. vc_add_param("vc_column", array(
  1416. "type" => "checkbox",
  1417. "holder" => 'div',
  1418. 'class' => 'hide hidden',
  1419. "heading" => __("Enable dark gradient", "k-elements"),
  1420. "param_name" => "bg_gradient",
  1421. "description" => "",
  1422. 'value' => array(
  1423. 'Yes' => 'yes'
  1424. ),
  1425. 'group' => __( 'Design Options', 'k-elements' ),
  1426. ));
  1427.  
  1428. vc_add_param("vc_column", array(
  1429. "type" => "textfield",
  1430. "holder" => 'div',
  1431. 'class' => 'hide hidden',
  1432. "heading" => __("Z-index"),
  1433. "param_name" => "z_index",
  1434. "value" => '',
  1435. "description" => __("Stack order for overlapping elements. Use integer value."),
  1436. ));
  1437.  
  1438.  
  1439. /* VC Message */
  1440.  
  1441. add_action( 'vc_after_init', 'kleo_add_icons_to_vc_message' );
  1442.  
  1443. vc_add_param( 'vc_message', array(
  1444. 'type' => 'iconpicker',
  1445. 'heading' => __( 'Icon', 'k-elements' ),
  1446. 'param_name' => 'icon_fontello',
  1447. 'value' => 'icon-info-circled', // default value to backend editor admin_label
  1448. 'settings' => array(
  1449. 'emptyIcon' => false,
  1450. 'type' => 'fontello',
  1451. 'iconsPerPage' => 4000,
  1452. ),
  1453. 'dependency' => array(
  1454. 'element' => 'icon_type',
  1455. 'value' => 'fontello',
  1456. ),
  1457. 'description' => __( 'Select icon from library.', 'k-elements' ),
  1458. 'weight' => 1,
  1459. ) );
  1460.  
  1461.  
  1462. vc_remove_param( 'vc_message', 'css_animation' );
  1463. vc_add_param( "vc_message", $animation );
  1464. vc_add_param( "vc_message", $css_animation );
  1465.  
  1466.  
  1467. /* Text column */
  1468. vc_remove_param( 'vc_column_text', 'css_animation' );
  1469. vc_remove_param( 'vc_column_text', 'el_class' );
  1470. vc_map_update('vc_column_text', array('weight' => '990'));
  1471. vc_add_param("vc_column_text", array(
  1472. "type" => "dropdown",
  1473. "class" => "hide hidden",
  1474. "holder" => 'div',
  1475. "heading" => __("Lead Content", "k-elements"),
  1476. "admin_label" => true,
  1477. "param_name" => "lead",
  1478. "value" => array(
  1479. "No" => "",
  1480. "Yes" => "yes"
  1481. ),
  1482. "description" => ""
  1483. ));
  1484. vc_add_param("vc_column_text", array(
  1485. "type" => "colorpicker",
  1486. "class" => "hide hidden",
  1487. "holder" => 'div',
  1488. "heading" => __("Text color", "k-elements"),
  1489. "admin_label" => true,
  1490. "param_name" => "text_color",
  1491. "value" => "",
  1492. "description" => "Set a custom text color."
  1493. ));
  1494. vc_add_param("vc_column_text", array(
  1495. "type" => "textfield",
  1496. "class" => "hide hidden",
  1497. "holder" => 'div',
  1498. "heading" => __("Font size", "k-elements"),
  1499. "admin_label" => true,
  1500. "param_name" => "font_size",
  1501. "value" => "",
  1502. "description" => "Set a custom Font size. Use px|em|%|pt|cm"
  1503. ));
  1504. vc_add_param("vc_column_text", array(
  1505. "type" => "textfield",
  1506. "class" => "hide hidden",
  1507. "holder" => 'div',
  1508. "heading" => __("Line Height", "k-elements"),
  1509. "admin_label" => true,
  1510. "param_name" => "line_height",
  1511. "value" => "",
  1512. "description" => "Set a custom line height. Use px|em|%|pt|cm"
  1513. ));
  1514.  
  1515. vc_add_params( "vc_column_text", $responsive_font );
  1516. vc_add_param('vc_column_text', array(
  1517. "type" => "dropdown",
  1518. "class" => "hide hidden",
  1519. "holder" => 'div',
  1520. "heading" => __("Font weight", "k-elements"),
  1521. "admin_label" => true,
  1522. "param_name" => "font_weight",
  1523. "value" => array(
  1524. "Normal" => "",
  1525. "Bold" => "bold"
  1526. ),
  1527. "description" => "Set a custom Font Weight for this text"
  1528. ));
  1529.  
  1530.  
  1531. vc_add_param( "vc_column_text", $vertical_separator );
  1532.  
  1533. vc_add_param( "vc_column_text", $letter_spacing );
  1534.  
  1535. vc_add_param( "vc_column_text", $animation );
  1536. vc_add_param( "vc_column_text", $css_animation );
  1537. vc_add_param( "vc_column_text", $el_class );
  1538.  
  1539.  
  1540. /* VC CUSTOM HEADING */
  1541. vc_add_param( "vc_custom_heading", $letter_spacing );
  1542. vc_add_params( "vc_custom_heading", $responsive_font );
  1543. vc_add_param( "vc_custom_heading", $vertical_separator );
  1544. vc_add_param( "vc_custom_heading", $visibility );
  1545.  
  1546.  
  1547. /* Toggle */
  1548. vc_map_update('vc_toggle', array('name' => 'Toggle', 'description' => 'Add a Toggle element', 'weight' => 6));
  1549. vc_remove_param( 'vc_toggle', 'color' );
  1550. vc_remove_param( 'vc_toggle', 'style' );
  1551. vc_remove_param( 'vc_toggle', 'size' );
  1552. vc_remove_param( 'vc_toggle', 'inverted' );
  1553. vc_remove_param( 'vc_toggle', 'css_animation' );
  1554. vc_remove_param('vc_toggle','el_class');
  1555.  
  1556. vc_add_param("vc_toggle", array(
  1557. 'type' => 'iconpicker',
  1558. 'heading' => __( 'Icon when toggle is opened' ),
  1559. 'param_name' => 'icon',
  1560. 'value' => '', // default value to backend editor admin_label
  1561. 'settings' => array(
  1562. 'emptyIcon' => false,
  1563. 'type' => 'fontello',
  1564. 'iconsPerPage' => 4000,
  1565. ),
  1566. 'description' => __( 'Select icon from library.', 'k-elements' ),
  1567. ));
  1568.  
  1569. vc_add_param("vc_toggle", array(
  1570. 'type' => 'iconpicker',
  1571. 'heading' => __( 'Icon when toggle is closed' ),
  1572. 'param_name' => 'icon_closed',
  1573. 'value' => '', // default value to backend editor admin_label
  1574. 'settings' => array(
  1575. 'emptyIcon' => false,
  1576. 'type' => 'fontello',
  1577. 'iconsPerPage' => 4000,
  1578. ),
  1579. 'description' => __( 'Select icon from library.', 'k-elements' ),
  1580. ));
  1581. vc_add_param("vc_toggle", array(
  1582. "type" => "dropdown",
  1583. "class" => "hide hidden",
  1584. "holder" => 'div',
  1585. "heading" => __("Icon position"),
  1586. "admin_label" => true,
  1587. "param_name" => "icon_position",
  1588. "value" => array(
  1589. "Left" => "to-left",
  1590. "Right" => "to-right"
  1591. ),
  1592. "description" => ""
  1593. ));
  1594.  
  1595. vc_add_param("vc_toggle", $tooltip);
  1596. vc_add_param("vc_toggle", $tooltip_position);
  1597. vc_add_param("vc_toggle", $tooltip_title);
  1598. vc_add_param("vc_toggle", $tooltip_text);
  1599. vc_add_param("vc_toggle", $tooltip_action);
  1600.  
  1601.  
  1602. vc_add_param("vc_toggle", $animation);
  1603. vc_add_param("vc_toggle", $css_animation);
  1604. vc_add_param("vc_toggle", $el_class); //add the class field
  1605.  
  1606.  
  1607. /* Single Image */
  1608.  
  1609. vc_remove_param( 'vc_single_image', 'css_animation' );
  1610. vc_remove_param('vc_single_image','el_class');
  1611.  
  1612. vc_add_param('vc_single_image', array(
  1613. "type" => "dropdown",
  1614. "holder" => 'div',
  1615. 'class' => 'hide hidden',
  1616. "heading" => __("Full width image"),
  1617. "param_name" => "full_width",
  1618. "value" => array(
  1619. 'No' => '',
  1620. 'Yes' => 'yes'
  1621. ),
  1622. 'description' => 'If enabled then the image will stretch to the width of the container'
  1623. ));
  1624.  
  1625. vc_add_param('vc_single_image', array(
  1626. 'param_name' => 'box_shadow',
  1627. 'heading' => __( 'Image effects', 'k-elements' ),
  1628. 'description' => 'Apply nice effects to the image element',
  1629. 'type' => 'dropdown',
  1630. 'class' => 'hide hidden',
  1631. 'holder' => 'div',
  1632. 'value' => array(
  1633. 'No effect' => '',
  1634. 'Box Shadow' => 'yes',
  1635. 'Hover Zoom and shadow' => 'zoom',
  1636. )
  1637. ));
  1638.  
  1639.  
  1640. vc_add_param("vc_single_image", $animation);
  1641. vc_add_param("vc_single_image", $css_animation);
  1642. vc_add_param("vc_single_image", $el_class); //add the class field
  1643. vc_add_param( "vc_single_image", $visibility );
  1644.  
  1645.  
  1646. /* Gallery */
  1647. vc_map_update('vc_gallery',array('description' => ''));
  1648. vc_remove_param( 'vc_gallery', 'interval' );
  1649. vc_remove_param( 'vc_gallery', 'css_animation' );
  1650. vc_remove_param( 'vc_gallery', 'el_class' );
  1651. vc_add_param('vc_gallery', array(
  1652. "type" => "dropdown",
  1653. "holder" => 'div',
  1654. 'class' => 'hide hidden',
  1655. "heading" => __("Type"),
  1656. "param_name" => "type",
  1657. "value" => array(
  1658. 'Big image + thumbs' => 'thumbs',
  1659. 'Grid' => 'grid'
  1660. )
  1661. ));
  1662. vc_add_param('vc_gallery', array(
  1663. 'param_name' => 'enable_animation',
  1664. 'heading' => __( 'Enable Fading animation', 'k-elements' ),
  1665. 'description' => 'When enabled you will have a nice fading animation',
  1666. 'type' => 'checkbox',
  1667. 'class' => 'hide hidden',
  1668. 'holder' => 'div',
  1669. 'value' => array(
  1670. 'Yes' => 'yes',
  1671. ),
  1672. 'std' => 'yes'
  1673. ));
  1674. vc_add_param('vc_gallery', array(
  1675. 'param_name' => 'thumbs_over_img',
  1676. 'heading' => __( 'Thumbnail over image', 'k-elements' ),
  1677. 'description' => 'Thumbnails will show on hover over the main image',
  1678. 'type' => 'checkbox',
  1679. 'class' => 'hide hidden',
  1680. 'holder' => 'div',
  1681. 'value' => array(
  1682. 'Yes' => 'yes',
  1683. ),
  1684. "dependency" => array(
  1685. "element" => "type",
  1686. "value" => "thumbs"
  1687. )
  1688. ));
  1689. vc_add_param('vc_gallery', array(
  1690. "type" => "dropdown",
  1691. "holder" => 'div',
  1692. 'class' => 'hide hidden',
  1693. "heading" => __("Number of items per row"),
  1694. "param_name" => "grid_number",
  1695. "value" => array(
  1696. '6' => '6',
  1697. '5' => '5',
  1698. '4' => '4',
  1699. '3' => '3',
  1700. '2' => '2'
  1701. ),
  1702. "std" => "6",
  1703. "dependency" => array(
  1704. "element" => "type",
  1705. "value" => "grid"
  1706. )
  1707. ));
  1708. vc_add_param('vc_gallery', array(
  1709. "type" => "checkbox",
  1710. "holder" => 'div',
  1711. 'class' => 'hide hidden',
  1712. "heading" => __("Show Caption ?"),
  1713. "param_name" => "show_caption",
  1714. "value" => array(
  1715. 'Show Caption under image in prettyphoto pop-up' => 'yes'
  1716. )
  1717. ));
  1718. vc_add_param('vc_gallery', array(
  1719. "type" => "dropdown",
  1720. "holder" => 'div',
  1721. 'class' => 'hide hidden',
  1722. "heading" => __("Gap"),
  1723. "param_name" => "gap",
  1724. "value" => array(
  1725. 'None' => '',
  1726. 'Small' => 'small',
  1727. 'Large' => 'large'
  1728. ),
  1729. "dependency" => array(
  1730. "element" => "type",
  1731. "value" => "grid"
  1732. )
  1733. ));
  1734.  
  1735.  
  1736. vc_add_param( 'vc_gallery', $el_class );
  1737.  
  1738. /* Block Grid */
  1739. if (isset($k_elements['kleo_grid'])) {
  1740. vc_map(
  1741. array(
  1742. 'base' => 'kleo_grid',
  1743. 'name' => __( 'Feature Items Grid', 'k-elements' ),
  1744. 'weight' => 6,
  1745. 'class' => '',
  1746. 'icon' => 'block-grid',
  1747. 'category' => "Content",
  1748. 'description' => __( 'Easily include elements into a Grid container', 'k-elements' ),
  1749. 'as_parent' => array( 'only' => 'kleo_feature_item' ),
  1750. 'content_element' => true,
  1751. 'js_view' => 'VcColumnView',
  1752. 'params' => array(
  1753. array(
  1754. 'param_name' => 'type',
  1755. 'heading' => __( 'Type', 'k-elements' ),
  1756. 'description' => __( 'Select how many items you want per row.', 'k-elements' ),
  1757. 'type' => 'dropdown',
  1758. 'holder' => "div",
  1759. 'class' => 'hide hidden',
  1760. 'value' => array(
  1761. 'One' => '1',
  1762. 'Two' => '2',
  1763. 'Three' => '3',
  1764. 'Four' => '4'
  1765. )
  1766. ),
  1767. array(
  1768. 'param_name' => 'animation',
  1769. 'heading' => __( 'Animation', 'k-elements' ),
  1770. 'description' => __( 'Animate elements inside the grid one by one', 'k-elements' ),
  1771. 'type' => 'dropdown',
  1772. 'holder' => "div",
  1773. 'class' => 'hide hidden',
  1774. 'value' => array(
  1775. 'No' => '',
  1776. 'Yes' => 'yes',
  1777. )
  1778. ),
  1779. array(
  1780. 'param_name' => 'colored_icons',
  1781. 'heading' => __( 'Colored icons', 'k-elements' ),
  1782. 'description' => __( 'Show colored icons. Color will be taken from the Highlight color from Theme options', 'k-elements' ),
  1783. 'type' => 'dropdown',
  1784. 'holder' => "div",
  1785. 'class' => 'hide hidden',
  1786. 'value' => array(
  1787. 'No' => '',
  1788. 'Yes' => 'yes',
  1789. )
  1790. ),
  1791. array(
  1792. 'param_name' => 'bordered_icons',
  1793. 'heading' => __( 'Bordered icons', 'k-elements' ),
  1794. 'description' => __( 'Show bordered icons', 'k-elements' ),
  1795. 'type' => 'dropdown',
  1796. 'holder' => "div",
  1797. 'class' => 'hide hidden',
  1798. 'value' => array(
  1799. 'No' => '',
  1800. 'Yes' => 'yes',
  1801. )
  1802. ),
  1803. array(
  1804. 'param_name' => 'style',
  1805. 'heading' => __( 'Style', 'k-elements' ),
  1806. 'description' => __( 'Choose a different style', 'k-elements' ),
  1807. 'type' => 'dropdown',
  1808. 'holder' => "div",
  1809. 'class' => 'hide hidden',
  1810. 'value' => array(
  1811. 'Default' => '',
  1812. 'Box' => 'box',
  1813. )
  1814. ),
  1815. array(
  1816. 'param_name' => 'divided',
  1817. 'heading' => __( 'Divided Items', 'k-elements' ),
  1818. 'description' => __( 'Apply border between items', 'k-elements' ),
  1819. 'type' => 'dropdown',
  1820. 'holder' => "div",
  1821. 'class' => 'hide hidden',
  1822. 'value' => array(
  1823. 'No' => '',
  1824. 'Yes' => 'yes',
  1825. )
  1826. ),
  1827. array(
  1828. 'param_name' => 'title_only',
  1829. 'heading' => __( 'Title only', 'k-elements' ),
  1830. 'description' => __( 'Just the Title visible by default. Content is visible on item hover', 'k-elements' ),
  1831. 'type' => 'dropdown',
  1832. 'holder' => "div",
  1833. 'class' => 'hide hidden',
  1834. 'value' => array(
  1835. 'No' => '',
  1836. 'Yes' => 'yes',
  1837. )
  1838. ),
  1839. array(
  1840. 'param_name' => 'title_size',
  1841. 'heading' => 'Title Font Size',
  1842. 'description' => "Custom title font size. Use px|em|pt|cm",
  1843. 'type' => 'textfield',
  1844. 'class' => 'hide hidden',
  1845. 'holder' => "div",
  1846. 'value' => ""
  1847. ),
  1848. array(
  1849. 'param_name' => 'box_shadow',
  1850. 'heading' => __( 'Enable box shadow.', 'k-elements' ),
  1851. 'description' => 'Will add a nice shadow to the container',
  1852. 'type' => 'checkbox',
  1853. 'class' => 'hide hidden',
  1854. 'holder' => 'div',
  1855. 'value' => array(
  1856. 'Yes' => 'yes',
  1857. )
  1858. ),
  1859. $el_class,
  1860.  
  1861. )
  1862. )
  1863. );
  1864. }
  1865.  
  1866. /* Feature item */
  1867. if (isset($k_elements['kleo_feature_item'])) {
  1868. vc_map(
  1869. array(
  1870. 'base' => 'kleo_feature_item',
  1871. 'name' => __( 'Feature Item', 'k-elements' ),
  1872. 'weight' => 880,
  1873. 'class' => '',
  1874. 'icon' => '',
  1875. 'category' => "Content",
  1876. 'description' => __( 'Include a feature item in your block grid', 'k-elements' ),
  1877. 'as_child' => array( 'only' => 'kleo_grid' ),
  1878. 'content_element' => true,
  1879. 'params' => array(
  1880.  
  1881. array(
  1882. 'param_name' => 'title',
  1883. 'heading' => 'Title',
  1884. 'description' => "Enter your title here",
  1885. 'type' => 'textfield',
  1886. 'holder' => "div",
  1887. 'value' => ""
  1888. ),
  1889. array(
  1890. 'param_name' => 'content',
  1891. 'heading' => 'Text',
  1892. 'description' => "Enter your text here",
  1893. 'type' => 'textarea_html',
  1894. 'holder' => "div",
  1895. 'value' => ""
  1896. ),
  1897. array(
  1898. 'param_name' => 'href',
  1899. 'heading' => 'Link',
  1900. 'description' => "Enter your link here",
  1901. 'type' => 'textfield',
  1902. 'holder' => "div",
  1903. 'value' => ""
  1904. ),
  1905. $icon, //Icons select
  1906. array(
  1907. "type" => "colorpicker",
  1908. "holder" => "div",
  1909. "class" => "hide hidden",
  1910. "heading" => __( "Custom icon color" ),
  1911. "param_name" => "icon_color",
  1912. "value" => '',
  1913. "description" => ''
  1914. ),
  1915. array(
  1916. "type" => "dropdown",
  1917. "holder" => "div",
  1918. "class" => "hide hidden",
  1919. "heading" => __( "Icon size" ),
  1920. "param_name" => "icon_size",
  1921. "value" => array(
  1922. 'Default' => 'default',
  1923. 'Big' => 'big'
  1924. ),
  1925. "description" => ""
  1926. ),
  1927. array(
  1928. "type" => "dropdown",
  1929. "holder" => "div",
  1930. "class" => "hide hidden",
  1931. "heading" => __( "Icon position" ),
  1932. "param_name" => "icon_position",
  1933. "value" => array(
  1934. 'Left' => '',
  1935. 'Center' => 'center'
  1936. ),
  1937. "description" => ""
  1938. )
  1939. )
  1940. )
  1941. );
  1942. }
  1943.  
  1944.  
  1945. /* List */
  1946. vc_map(
  1947. array(
  1948. 'base' => 'kleo_list',
  1949. 'name' => __( 'Fancy List', 'k-elements' ),
  1950. 'weight' => 6,
  1951. 'class' => '',
  1952. 'icon' => 'block-list',
  1953. 'category' => "Content",
  1954. 'description' => '',
  1955. 'as_parent' => array( 'only' => 'kleo_list_item' ),
  1956. 'content_element' => true,
  1957. 'js_view' => 'VcColumnView',
  1958. 'params' => array(
  1959. array(
  1960. 'param_name' => 'type',
  1961. 'heading' => __( 'Type', 'k-elements' ),
  1962. 'description' => __( 'Select the list type.', 'k-elements' ),
  1963. 'type' => 'dropdown',
  1964. 'holder' => "div",
  1965. 'class' => 'hide hidden',
  1966. 'value' => array(
  1967. 'Standard' => 'standard',
  1968. 'With Icons' => 'icons',
  1969. 'Ordered' => 'ordered',
  1970. 'Ordered Roman' => 'ordered-roman',
  1971. 'Unstyled' => 'unstyled'
  1972. )
  1973. ),
  1974. array(
  1975. 'param_name' => 'icon_color',
  1976. 'heading' => __( 'Icon color', 'k-elements' ),
  1977. 'description' => "",
  1978. 'type' => 'dropdown',
  1979. 'holder' => "div",
  1980. 'class' => 'hide hidden',
  1981. 'value' => array(
  1982. 'Normal' => '',
  1983. 'Colored' => 'yes'
  1984. ),
  1985. "dependency" => array(
  1986. "element" => "type",
  1987. "value" => array("standard", "icons","ordered","ordered-roman")
  1988. )
  1989. ),
  1990. array(
  1991. 'param_name' => 'icon_shadow',
  1992. 'heading' => __( 'Icon shadow', 'k-elements' ),
  1993. 'description' => "",
  1994. 'type' => 'dropdown',
  1995. 'holder' => "div",
  1996. 'class' => 'hide hidden',
  1997. 'value' => array(
  1998. 'Normal' => '',
  1999. 'Shadow' => 'yes'
  2000. ),
  2001. "dependency" => array(
  2002. "element" => "type",
  2003. "value" => "icons"
  2004. )
  2005. ),
  2006. array(
  2007. 'param_name' => 'icon_large',
  2008. 'heading' => __( 'Large icon', 'k-elements' ),
  2009. 'description' => "",
  2010. 'type' => 'dropdown',
  2011. 'holder' => "div",
  2012. 'class' => 'hide hidden',
  2013. 'value' => array(
  2014. 'Normal' => '',
  2015. 'Large' => 'yes'
  2016. ),
  2017. "dependency" => array(
  2018. "element" => "type",
  2019. "value" => "icons"
  2020. )
  2021. ),
  2022. array(
  2023. 'param_name' => 'inline',
  2024. 'heading' => __( 'Inline', 'k-elements' ),
  2025. 'description' => "",
  2026. 'type' => 'dropdown',
  2027. 'holder' => "div",
  2028. 'class' => 'hide hidden',
  2029. 'value' => array(
  2030. 'No' => '',
  2031. 'Yes' => 'yes'
  2032. ),
  2033. "dependency" => array(
  2034. "element" => "type",
  2035. "value" => "icons"
  2036. )
  2037. ),
  2038.  
  2039. array(
  2040. 'param_name' => 'divider',
  2041. 'heading' => __( 'Divider', 'k-elements' ),
  2042. 'description' => "",
  2043. 'type' => 'dropdown',
  2044. 'holder' => "div",
  2045. 'class' => 'hide hidden',
  2046. 'value' => array(
  2047. 'No' => '',
  2048. 'Solid' => 'yes',
  2049. 'Dashed' => 'dashed'
  2050. ),
  2051. ),
  2052. array(
  2053. 'param_name' => 'align',
  2054. 'heading' => __( 'Align', 'k-elements' ),
  2055. 'description' => __( 'Align the list', 'k-elements' ),
  2056. 'type' => 'dropdown',
  2057. 'holder' => "div",
  2058. 'class' => 'hide hidden',
  2059. 'value' => array(
  2060. 'None' => '',
  2061. 'Left' => 'left',
  2062. 'Right' => 'right',
  2063. 'Center' => 'center'
  2064. )
  2065. ),
  2066.  
  2067.  
  2068. $el_class,
  2069.  
  2070. )
  2071. )
  2072. );
  2073.  
  2074. /* List item */
  2075.  
  2076. vc_map(
  2077. array(
  2078. 'base' => 'kleo_list_item',
  2079. 'name' => __( 'List Item', 'k-elements' ),
  2080. 'weight' => 880,
  2081. 'category' => "Content",
  2082. 'description' => '',
  2083. 'as_child' => array( 'only' => 'kleo_list' ),
  2084. 'content_element' => true,
  2085. 'params' => array(
  2086. $icon,
  2087. array(
  2088. 'param_name' => 'content',
  2089. 'heading' => 'Text',
  2090. 'description' => "Enter your text here",
  2091. 'type' => 'textarea_html',
  2092. 'holder' => "div",
  2093. 'value' => ""
  2094. ),
  2095. )
  2096. )
  2097. );
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103. /* TABS */
  2104. vc_map_update("vc_tabs",
  2105. array(
  2106. "name" => "Kleo Tabs",
  2107. 'category' => __( "Content", 'k-elements' ),
  2108. "deprecated" => null,
  2109. "content_element" => true
  2110. )
  2111. );
  2112. vc_remove_param( 'vc_tabs', 'interval' );
  2113. vc_remove_param( 'vc_tabs', 'title' );
  2114. vc_remove_param( 'vc_tabs', 'el_class' );
  2115. vc_map_update("vc_tabs",array('weight' => 6));
  2116. vc_add_param('vc_tabs',array(
  2117. "type" => "dropdown",
  2118. "holder" => "div",
  2119. "class" => "hide hidden",
  2120. "heading" => __("Type", "k-elements"),
  2121. "param_name" => "type",
  2122. "value" => array(
  2123. 'Tabs' => 'tabs',
  2124. 'Pills' => 'pills'
  2125. ),
  2126. "description" => "Choose how you want them to appear"
  2127. ));
  2128. vc_add_param('vc_tabs',array(
  2129. "type" => "dropdown",
  2130. "holder" => "div",
  2131. "class" => "hide hidden",
  2132. "heading" => __("Style", "k-elements"),
  2133. "param_name" => "style",
  2134. "value" => array(
  2135. 'Default' => 'default',
  2136. 'Square' => 'square',
  2137. 'Line' => 'line',
  2138. 'Text' => 'text'
  2139. ),
  2140. "dependency" => array(
  2141. "element" => "type",
  2142. "value" => "tabs"
  2143. ),
  2144. "description" => ""
  2145. ));
  2146. vc_add_param('vc_tabs',array(
  2147. "type" => "dropdown",
  2148. "holder" => "div",
  2149. "class" => "hide hidden",
  2150. "heading" => __("Style", "k-elements"),
  2151. "param_name" => "style_pills",
  2152. "value" => array(
  2153. 'Square' => 'square',
  2154. 'Ghost' => 'ghost'
  2155. ),
  2156. "dependency" => array(
  2157. "element" => "type",
  2158. "value" => "pills"
  2159. ),
  2160. "description" => ""
  2161. ));
  2162. vc_add_param('vc_tabs',array(
  2163. 'param_name' => 'active_tab',
  2164. 'heading' => 'Active tab',
  2165. 'description' => "Enter tab number to be active on load(Example: 1)",
  2166. 'type' => 'textfield',
  2167. 'holder' => "div",
  2168. 'class' => "hide hidden",
  2169. 'value' => ""
  2170. ));
  2171.  
  2172. vc_add_param('vc_tabs',array(
  2173. "type" => "dropdown",
  2174. "holder" => "div",
  2175. "class" => "hide hidden",
  2176. "heading" => __("Align", "k-elements"),
  2177. "param_name" => "align",
  2178. "value" => array(
  2179. 'Left' => '',
  2180. 'Centered' => 'centered',
  2181. ),
  2182. "description" => ""
  2183. ));
  2184. vc_add_param('vc_tabs',array(
  2185. 'param_name' => 'margin_top',
  2186. 'heading' => 'Top Margin',
  2187. 'description' => "Enter the value in pixels. Eq. 50. Field accepts negative values.",
  2188. 'type' => 'textfield',
  2189. 'holder' => "div",
  2190. 'class' => "hide hidden",
  2191. 'value' => ""
  2192. ));
  2193.  
  2194. vc_add_param('vc_tabs', $el_class);
  2195.  
  2196. vc_map_update(
  2197. "vc_tab",
  2198. array(
  2199. "allowed_container_element" => true,
  2200. "deprecated" => null
  2201. )
  2202. );
  2203.  
  2204. vc_remove_param( 'vc_tab', 'tab_id' );
  2205. vc_add_param('vc_tab',array(
  2206. 'param_name' => 'tab_id',
  2207. 'heading' => 'Tab ID',
  2208. 'type' => 'textfield',
  2209. 'holder' => "div",
  2210. 'class' => "hide hidden",
  2211. 'value' => ""
  2212. ));
  2213.  
  2214. kleo_vc_add_icon('vc_tab');
  2215. //vc_add_param('vc_tab', $icon);
  2216.  
  2217.  
  2218. /* Tours */
  2219. vc_map_update("vc_tour",
  2220. array(
  2221. "name" => "Kleo Tour",
  2222. 'category' => __( "Content", 'k-elements' ),
  2223. "deprecated" => null,
  2224. "content_element" => true
  2225. )
  2226. );
  2227. vc_remove_param( 'vc_tour', 'el_class' );
  2228. vc_add_param('vc_tour',array(
  2229. "type" => "dropdown",
  2230. "holder" => "div",
  2231. "class" => "hide hidden",
  2232. "heading" => __("Tabs Position", "k-elements"),
  2233. "param_name" => "position",
  2234. "value" => array(
  2235. 'Left' => '',
  2236. 'Right' => 'right'
  2237. ),
  2238. "description" => "Choose how you want them to appear"
  2239. ));
  2240. vc_add_param( 'vc_tour', $el_class );
  2241.  
  2242. /* Accordion */
  2243. vc_map_update("vc_accordion",
  2244. array(
  2245. "name" => "Kleo Accordion",
  2246. 'category' => __( "Content", 'k-elements' ),
  2247. "deprecated" => null,
  2248. "content_element" => true
  2249. )
  2250. );
  2251. vc_remove_param( 'vc_accordion', 'interval' );
  2252. vc_remove_param( 'vc_accordion', 'title' );
  2253. vc_remove_param( 'vc_accordion', 'el_class' );
  2254. vc_map_update("vc_accordion", array('weight' => 6, 'description' => ''));
  2255.  
  2256. vc_add_param("vc_accordion", array(
  2257. "type" => "dropdown",
  2258. "class" => "hide hidden",
  2259. "holder" => 'div',
  2260. "heading" => __("Icons position"),
  2261. "admin_label" => true,
  2262. "param_name" => "icons_position",
  2263. "value" => array(
  2264. "Left" => "to-left",
  2265. "Right" => "to-right"
  2266. ),
  2267. "description" => ""
  2268. ));
  2269. vc_add_param('vc_accordion', $el_class);
  2270.  
  2271.  
  2272. vc_map_update("vc_accordion_tab",
  2273. array(
  2274. "deprecated" => null,
  2275. )
  2276. );
  2277.  
  2278. vc_map_update("vc_accordion_tab", array("allowed_container_element" => true));
  2279. vc_add_param("vc_accordion_tab", array(
  2280. 'type' => 'iconpicker',
  2281. 'heading' => __( 'Icon when accordion item is opened' , 'k-elements'),
  2282. 'param_name' => 'icon',
  2283. 'value' => '', // default value to backend editor admin_label
  2284. 'settings' => array(
  2285. 'emptyIcon' => false,
  2286. 'type' => 'fontello',
  2287. 'iconsPerPage' => 4000,
  2288. ),
  2289. 'description' => __( 'Select icon from library.', 'k-elements' ),
  2290. ));
  2291. vc_add_param("vc_accordion_tab", array(
  2292. 'type' => 'iconpicker',
  2293. 'heading' => __( 'Icon when accordion item is closed', 'k-elements' ),
  2294. 'param_name' => 'icon_closed',
  2295. 'value' => '', // default value to backend editor admin_label
  2296. 'settings' => array(
  2297. 'emptyIcon' => false,
  2298. 'type' => 'fontello',
  2299. 'iconsPerPage' => 4000,
  2300. ),
  2301. 'description' => __( 'Select icon from library.', 'k-elements' ),
  2302. ));
  2303.  
  2304. vc_add_param("vc_accordion_tab", $tooltip);
  2305. vc_add_param("vc_accordion_tab", $tooltip_position);
  2306. vc_add_param("vc_accordion_tab", $tooltip_title);
  2307. vc_add_param("vc_accordion_tab", $tooltip_text);
  2308. vc_add_param("vc_accordion_tab", $tooltip_action);
  2309.  
  2310.  
  2311. /* Icon */
  2312. vc_map(
  2313. array(
  2314. 'base' => 'kleo_icon',
  2315. 'name' => 'Kleo Icon',
  2316. 'weight' => 5,
  2317. 'class' => '',
  2318. 'icon' => 'icon-wpb-vc_icon',
  2319. 'category' => __("Content",'k-elements'),
  2320. 'description' => __('Insert an icon into your content','k-elements'),
  2321. 'params' => array(
  2322. $icon,
  2323. $icon_size,
  2324. array(
  2325. 'param_name' => 'icon_color',
  2326. 'type' => 'colorpicker',
  2327. 'heading' => __( 'Icon color', 'k-elements' ),
  2328. 'class' => 'hide hidden',
  2329. 'description' => __( 'Select custom icon color.', 'k-elements' ),
  2330. ),
  2331. $tooltip,
  2332. $tooltip_position,
  2333. $tooltip_title,
  2334. $tooltip_text,
  2335. $tooltip_action,
  2336. array(
  2337. "param_name" => "position",
  2338. "type" => "dropdown",
  2339. "holder" => "div",
  2340. "class" => "hide hidden",
  2341. "heading" => __( "Position" ),
  2342. "value" => array(
  2343. 'Inline' => 'inline',
  2344. 'Left' => 'left',
  2345. 'Right' => 'right',
  2346. 'Center' => 'center',
  2347. ),
  2348. "description" => "Choose how to position the icon"
  2349. ),
  2350. array(
  2351. 'param_name' => 'text',
  2352. 'heading' => __( 'Add a text to the icon', 'k-elements' ),
  2353. 'type' => 'textfield',
  2354. 'class' => 'hide hidden',
  2355. 'holder' => 'div',
  2356. 'value' => ''
  2357. ),
  2358. array(
  2359. 'param_name' => 'text_position',
  2360. 'heading' => __( 'Text position', 'k-elements' ),
  2361. 'description' => '',
  2362. 'type' => 'dropdown',
  2363. 'class' => 'hide hidden',
  2364. 'holder' => 'div',
  2365. "dependency" => array(
  2366. "element" => "text",
  2367. "not_empty" => true
  2368. ),
  2369. 'value' => array(
  2370. 'Left' => 'left',
  2371. 'Right' => 'right'
  2372. )
  2373. ),
  2374. array(
  2375. 'param_name' => 'font_size',
  2376. 'heading' => __( 'Font size', 'k-elements' ),
  2377. 'description' => 'Use px|em|pt|cm',
  2378. 'type' => 'textfield',
  2379. 'class' => 'hide hidden',
  2380. 'holder' => 'div',
  2381. "dependency" => array(
  2382. "element" => "text",
  2383. "not_empty" => true
  2384. ),
  2385. 'value' => ''
  2386. ),
  2387. array(
  2388. 'param_name' => 'href',
  2389. 'heading' => __( 'Add a link', 'k-elements' ),
  2390. 'description' => __( 'Type a http:// address', 'k-elements' ),
  2391. 'type' => 'textfield',
  2392. 'class' => 'hide hidden',
  2393. 'holder' => 'div',
  2394. 'value' => ''
  2395. ),
  2396. array(
  2397. 'param_name' => 'target',
  2398. 'heading' => __( 'Target window', 'k-elements' ),
  2399. 'description' => '',
  2400. 'type' => 'dropdown',
  2401. 'class' => 'hide hidden',
  2402. 'holder' => 'div',
  2403. "dependency" => array(
  2404. "element" => "href",
  2405. "not_empty" => true
  2406. ),
  2407. 'value' => array(
  2408. 'Same window' => '_self',
  2409. 'New window' => '_blank'
  2410. )
  2411. ),
  2412. array(
  2413. 'param_name' => 'scroll_to',
  2414. 'heading' => __( 'Enable smooth scroll to page section.', 'k-elements' ),
  2415. 'description' => 'Works only when you have links to sections in the current page, like #section',
  2416. 'type' => 'checkbox',
  2417. 'class' => 'hide hidden',
  2418. 'holder' => 'div',
  2419. "dependency" => array(
  2420. "element" => "href",
  2421. "not_empty" => true
  2422. ),
  2423. 'value' => array(
  2424. 'Yes' => 'yes',
  2425. )
  2426. ),
  2427. array(
  2428. 'param_name' => 'padding',
  2429. 'heading' => 'Left/right padding',
  2430. 'description' => "Adds padding to the left and right sides of the icon",
  2431. 'type' => 'textfield',
  2432. 'class' => 'hide hidden',
  2433. 'holder' => "div",
  2434. 'value' => ""
  2435. ),
  2436. $el_class
  2437. )
  2438.  
  2439. )
  2440. );
  2441.  
  2442. /* vc_progress_bar */
  2443. vc_remove_param( 'vc_progress_bar', 'el_class' );
  2444. vc_add_param("vc_progress_bar", array(
  2445. 'param_name' => 'style',
  2446. 'heading' => __( 'Style', 'k-elements' ),
  2447. 'description' => __( 'Choose the bar appearance', 'k-elements' ),
  2448. 'type' => 'dropdown',
  2449. 'class' => 'hide hidden',
  2450. 'holder' => 'div',
  2451. 'value' => array(
  2452. 'Regular' => '',
  2453. 'Slim' => 'slim'
  2454. )
  2455. ));
  2456. vc_add_param( 'vc_progress_bar', $el_class );
  2457.  
  2458. /* Clients */
  2459.  
  2460. if (isset($k_elements['kleo_clients'])) {
  2461. $client_tags = array();
  2462.  
  2463. $defined_tags = get_terms( 'clients-tag' );
  2464. if ( is_array( $defined_tags ) && ! empty( $defined_tags ) ) {
  2465. //var_dump($defined_tags);
  2466. foreach ( $defined_tags as $tag ) {
  2467. $client_tags[ $tag->name ] = $tag->term_id;
  2468. }
  2469.  
  2470. }
  2471.  
  2472. vc_map(
  2473. array(
  2474. 'base' => 'kleo_clients',
  2475. 'name' => 'Clients',
  2476. 'weight' => 5,
  2477. 'class' => '',
  2478. 'icon' => 'kleo_clients',
  2479. 'category' => __( "Content", 'k-elements' ),
  2480. 'description' => __( 'Showcase clients logos', 'k-elements' ),
  2481. 'params' => array(
  2482. array(
  2483. 'param_name' => 'animated',
  2484. 'heading' => __( 'Animated', 'k-elements' ),
  2485. 'description' => __( 'Animate the icons when you first view them', 'k-elements' ),
  2486. 'type' => 'dropdown',
  2487. 'class' => 'hide hidden',
  2488. 'holder' => 'div',
  2489. 'value' => array(
  2490. 'Yes' => 'yes',
  2491. 'No' => ''
  2492. )
  2493. ),
  2494. array(
  2495. 'param_name' => 'animation',
  2496. 'heading' => __( 'Animation', 'k-elements' ),
  2497. 'description' => "",
  2498. 'type' => 'dropdown',
  2499. 'class' => 'hide hidden',
  2500. 'holder' => 'div',
  2501. 'value' => array(
  2502. 'Fade' => 'fade',
  2503. 'Appear' => 'appear'
  2504. ),
  2505. "dependency" => array(
  2506. "element" => "animated",
  2507. "value" => "yes"
  2508. ),
  2509. ),
  2510. array(
  2511. 'param_name' => 'number',
  2512. 'heading' => __('Number of logos','k-elements'),
  2513. 'description' => "How many images to show",
  2514. 'type' => 'textfield',
  2515. 'class' => 'hide hidden',
  2516. 'holder' => "div",
  2517. 'value' => "5"
  2518. ),
  2519. array(
  2520. 'param_name' => 'target',
  2521. 'heading' => __( 'Open links in new window', 'k-elements' ),
  2522. 'description' => "",
  2523. 'type' => 'dropdown',
  2524. 'class' => 'hide hidden',
  2525. 'holder' => 'div',
  2526. 'value' => array(
  2527. 'No' => '',
  2528. 'Yes' => '_blank'
  2529. )
  2530. ),
  2531. array(
  2532. 'param_name' => 'tags',
  2533. 'heading' => __( 'Filter by Tags', 'k-elements' ),
  2534. 'description' => "",
  2535. 'type' => 'checkbox',
  2536. 'class' => 'hide hidden',
  2537. 'holder' => 'div',
  2538. 'value' => $client_tags
  2539. ),
  2540. $el_class
  2541. )
  2542.  
  2543. ) );
  2544. }
  2545.  
  2546. /* Testimonials */
  2547.  
  2548. if (isset($k_elements['kleo_testimonials'])) {
  2549. $testimonial_tags = array();
  2550.  
  2551. $defined_tags = get_terms( 'testimonials-tag' );
  2552. if ( is_array( $defined_tags ) && ! empty( $defined_tags ) ) {
  2553. //var_dump($defined_tags);
  2554. foreach ( $defined_tags as $tag ) {
  2555. $testimonial_tags[ $tag->name ] = $tag->term_id;
  2556. }
  2557.  
  2558. }
  2559.  
  2560. vc_map(
  2561. array(
  2562. 'base' => 'kleo_testimonials',
  2563. 'name' => 'Testimonials',
  2564. 'weight' => 5,
  2565. 'class' => '',
  2566. 'icon' => 'kleo_testimonials',
  2567. 'category' => __( "Content", 'k-elements' ),
  2568. 'description' => __( 'Showcase client testimonials', 'k-elements' ),
  2569. 'params' => array(
  2570.  
  2571. array(
  2572. 'param_name' => 'type',
  2573. 'heading' => __( 'Type', 'k-elements' ),
  2574. 'description' => "",
  2575. 'type' => 'dropdown',
  2576. 'class' => 'hide hidden',
  2577. 'holder' => 'div',
  2578. 'value' => array(
  2579. 'Simple' => 'simple',
  2580. 'Carousel' => 'carousel',
  2581. 'Boxed with 5 star ratings' => 'boxed'
  2582. )
  2583. ),
  2584. array(
  2585. 'param_name' => 'specific_id',
  2586. 'heading' => __( 'By IDs', 'k-elements' ),
  2587. 'description' => "",
  2588. 'type' => 'dropdown',
  2589. 'class' => 'hide hidden',
  2590. 'holder' => 'div',
  2591. 'value' => array(
  2592. 'No' => 'no',
  2593. 'Yes' => 'yes'
  2594. )
  2595. ),
  2596. array(
  2597. 'param_name' => 'ids',
  2598. 'heading' => __('Testimonials IDs to show.','k-elements'),
  2599. 'description' => __("Comma separated list of ids to display. ", "k-elements"),
  2600. "dependency" => array(
  2601. "element" => "specific_id",
  2602. "value" => "yes"
  2603. ),
  2604. 'type' => 'textfield',
  2605. 'class' => 'hide hidden',
  2606. 'holder' => "div",
  2607. 'value' => ""
  2608. ),
  2609. array(
  2610. 'param_name' => 'number',
  2611. 'heading' => __('Number of testimonials', 'k-elements'),
  2612. 'description' => "How many testimonials to show. Default is 3",
  2613. "dependency" => array(
  2614. "element" => "specific_id",
  2615. "value" => "no"
  2616. ),
  2617. 'type' => 'textfield',
  2618. 'class' => 'hide hidden',
  2619. 'holder' => "div",
  2620. 'value' => ""
  2621. ),
  2622. array(
  2623. 'param_name' => 'offset',
  2624. 'heading' => __( 'Testimonials offset', 'k-elements'),
  2625. 'description' => "Display testimonials starting from the number you enter. Eq: if you enter 3, it will show testimonials from the 4th one ",
  2626. "dependency" => array(
  2627. "element" => "specific_id",
  2628. "value" => "no"
  2629. ),
  2630. 'type' => 'textfield',
  2631. 'class' => 'hide hidden',
  2632. 'holder' => "div",
  2633. 'value' => ""
  2634. ),
  2635.  
  2636. array(
  2637. 'param_name' => 'tags',
  2638. 'heading' => __( 'Filter by Tags', 'k-elements' ),
  2639. 'description' => "",
  2640. "dependency" => array(
  2641. "element" => "specific_id",
  2642. "value" => "no"
  2643. ),
  2644. 'type' => 'checkbox',
  2645. 'class' => 'hide hidden',
  2646. 'holder' => 'div',
  2647. 'value' => $testimonial_tags
  2648. ),
  2649. array(
  2650. "type" => "textfield",
  2651. "holder" => 'div',
  2652. 'class' => 'hide hidden',
  2653. "heading" => __( "Minimum items to show", "k-elements" ),
  2654. "param_name" => "min_items",
  2655. "value" => "",
  2656. "description" => "Default 1",
  2657. "dependency" => array(
  2658. "element" => "type",
  2659. "value" => "carousel"
  2660. ),
  2661. ),
  2662. array(
  2663. "type" => "textfield",
  2664. "holder" => 'div',
  2665. 'class' => 'hide hidden',
  2666. "heading" => __( "Maximum items to show" ,"k-elements"),
  2667. "param_name" => "max_items",
  2668. "value" => "",
  2669. "description" => "Default 1",
  2670. "dependency" => array(
  2671. "element" => "type",
  2672. "value" => "carousel"
  2673. ),
  2674. ),
  2675. array(
  2676. "type" => "textfield",
  2677. "holder" => 'div',
  2678. 'class' => 'hide hidden',
  2679. "heading" => __( "Speed between slides", "k-elements"),
  2680. "param_name" => "speed",
  2681. "value" => "",
  2682. "description" => "In miliseconds. Default is 5000 miliseconds, meaning 5 seconds",
  2683. "dependency" => array(
  2684. "element" => "type",
  2685. "value" => "carousel"
  2686. ),
  2687. ),
  2688. array(
  2689. "type" => "textfield",
  2690. "holder" => 'div',
  2691. 'class' => 'hide hidden',
  2692. "heading" => __( "Elements height" , "k-elements" ),
  2693. "param_name" => "height",
  2694. "value" => "",
  2695. "description" => "Force a height on all elements. Expressed in pixels, eq: 300 will represent 300px",
  2696. ),
  2697. $el_class
  2698. )
  2699.  
  2700. ) );
  2701. }
  2702.  
  2703. /* PIN */
  2704. if (isset($k_elements['kleo_pin'])) {
  2705. vc_map(
  2706. array(
  2707. 'base' => 'kleo_pin',
  2708. 'name' => 'Pin',
  2709. 'weight' => 5,
  2710. 'class' => '',
  2711. 'icon' => 'icon-wpb-ui-icon',
  2712. 'category' => __( "Content", 'k-elements' ),
  2713. 'description' => __( 'Add pins with info', 'k-elements' ),
  2714. 'params' => array(
  2715. array(
  2716. 'param_name' => 'type',
  2717. 'heading' => __( 'Type', 'k-elements' ),
  2718. 'description' => __( 'Type of pin', 'k-elements' ),
  2719. 'type' => 'dropdown',
  2720. 'holder' => 'div',
  2721. 'value' => array(
  2722. 'Icon' => 'icon',
  2723. 'Circle' => 'circle',
  2724. 'POI' => 'poi'
  2725. )
  2726. ),
  2727. array(
  2728. 'type' => 'iconpicker',
  2729. 'heading' => __( 'Icon' ,'k-elements' ),
  2730. 'param_name' => 'icon',
  2731. "class" => "hide hidden",
  2732. 'value' => '', // default value to backend editor admin_label
  2733. 'settings' => array(
  2734. 'emptyIcon' => false,
  2735. 'type' => 'fontello',
  2736. 'iconsPerPage' => 4000,
  2737. ),
  2738. 'description' => __( 'Choose the icon to display', 'k-elements' ),
  2739. "dependency" => array(
  2740. "element" => "type",
  2741. "value" => "icon"
  2742. )
  2743. ),
  2744. array(
  2745. 'param_name' => 'top',
  2746. 'heading' => __('Top position','k-elements'),
  2747. 'description' => "Please enter only pixels and percentage, eq. 50px or 15%",
  2748. 'type' => 'textfield',
  2749. 'holder' => "div",
  2750. 'value' => ""
  2751. ),
  2752. array(
  2753. 'param_name' => 'left',
  2754. 'heading' => __('Left position','k-elements'),
  2755. 'description' => "Please enter only pixels and percentage, eq. 50px or 15%",
  2756. 'type' => 'textfield',
  2757. 'holder' => "div",
  2758. 'value' => ""
  2759. ),
  2760. array(
  2761. 'param_name' => 'right',
  2762. 'heading' => __('Right position', 'k-elements'),
  2763. 'description' => "Please enter only pixels and percentage, eq. 50px or 15%",
  2764. 'type' => 'textfield',
  2765. 'holder' => "div",
  2766. 'value' => ""
  2767. ),
  2768. array(
  2769. 'param_name' => 'bottom',
  2770. 'heading' => __('Bottom position','k-elements'),
  2771. 'description' => "Please enter only pixels and percentage, eq. 50px or 15%",
  2772. 'type' => 'textfield',
  2773. 'holder' => "div",
  2774. 'value' => ""
  2775. ),
  2776. $tooltip,
  2777. $tooltip_position,
  2778. $tooltip_title,
  2779. $tooltip_text,
  2780. $tooltip_action,
  2781. $animation,
  2782. $css_animation,
  2783. $el_class
  2784. )
  2785.  
  2786. ) );
  2787. }
  2788.  
  2789. /* Button */
  2790. vc_map(
  2791. array(
  2792. 'base' => 'kleo_button',
  2793. 'name' => 'Kleo Button',
  2794. 'weight' => 970,
  2795. 'class' => '',
  2796. 'icon' => 'icon-wpb-ui-button',
  2797. 'category' => __("Content",'k-elements'),
  2798. 'description' => __('Insert a button in your content','k-elements'),
  2799. 'params' => $button_args
  2800. )
  2801. );
  2802.  
  2803. vc_add_param( 'kleo_button', $letter_spacing );
  2804. vc_add_params( 'kleo_button', $box_shadow );
  2805. vc_add_param( 'kleo_button', $el_class );
  2806.  
  2807.  
  2808.  
  2809. /* Animated numbers */
  2810. vc_map(
  2811. array(
  2812. 'base' => 'kleo_animate_numbers',
  2813. 'name' => 'Animated numbers',
  2814. 'weight' => 970,
  2815. 'content_element' => true,
  2816. 'class' => '',
  2817. 'icon' => 'animated-numbers',
  2818. 'category' => __("Content",'k-elements'),
  2819. 'description' => __('Insert an animated number','k-elements'),
  2820. 'params' => array(
  2821. $animation,
  2822. array(
  2823. 'param_name' => 'content',
  2824. 'heading' => __('Number','k-elements'),
  2825. 'description' => "Enter the number to animate",
  2826. 'type' => 'textfield',
  2827. 'holder' => "div",
  2828. 'value' => ""
  2829. ),
  2830. array(
  2831. 'param_name' => 'timer',
  2832. 'heading' => __('Timer','k-elements'),
  2833. 'description' => "The time in miliseconds to complete the animation, eq 3000 for 3 seconds of animation",
  2834. 'type' => 'textfield',
  2835. 'holder' => "div",
  2836. 'class' => "hide hidden",
  2837. 'value' => ""
  2838. ),
  2839. array(
  2840. 'param_name' => 'element',
  2841. 'heading' => __( 'HTML Element', 'k-elements' ),
  2842. 'description' => __( 'What type of HTML tag to render. Default if span', 'k-elements' ),
  2843. 'type' => 'dropdown',
  2844. 'holder' => 'div',
  2845. 'value' => array(
  2846. 'span' => 'span',
  2847. 'p' => 'p',
  2848. 'H1' => 'h1',
  2849. 'H2' => 'h2',
  2850. 'H3' => 'h3',
  2851. 'H4' => 'h4',
  2852. 'H5' => 'h5',
  2853. 'H6' => 'h6'
  2854. )
  2855. ),
  2856. array(
  2857. "param_name" => "font_size",
  2858. "type" => "textfield",
  2859. "holder" => "div",
  2860. "class" => "hide hidden",
  2861. "heading" => __( "Font size. Use px|em|pt" ),
  2862. "value" => '',
  2863. "description" => "",
  2864. ),
  2865. array(
  2866. 'param_name' => 'font_weight',
  2867. 'heading' => __( 'Font Weight', 'k-elements' ),
  2868. 'description' => '',
  2869. 'type' => 'dropdown',
  2870. 'holder' => 'div',
  2871. 'value' => array(
  2872. 'Regular' => '',
  2873. 'Bold' => 'bold'
  2874. )
  2875. ),
  2876. $el_class
  2877. )
  2878. )
  2879. );
  2880. vc_add_param('kleo_animate_numbers', $el_class);
  2881.  
  2882.  
  2883. /* Responsive visibility */
  2884.  
  2885.  
  2886. vc_map(
  2887. array(
  2888. 'base' => 'kleo_visibility',
  2889. 'name' => __( 'Visibility', 'k-elements' ),
  2890. 'weight' => 6,
  2891. 'class' => '',
  2892. 'icon' => 'visibility',
  2893. 'category' => "Content",
  2894. 'description' => __( 'Alter content based on screen size', 'k-elements' ),
  2895. 'as_parent' => array( 'except' => 'vc_row, vc_column' ),
  2896. 'content_element' => true,
  2897. 'js_view' => 'VcColumnView',
  2898. 'params' => array(
  2899. array(
  2900. 'param_name' => 'type',
  2901. 'heading' => __( 'Visibility Type', 'k-elements' ),
  2902. 'description' => __( 'Hide/Show content by screen size.', 'k-elements' ),
  2903. 'type' => 'checkbox',
  2904. 'holder' => 'div',
  2905. 'value' => array(
  2906. 'Hidden Phones (max 768px)' => 'hidden-xs',
  2907. 'Hidden Tablets (768px - 991px)' => 'hidden-sm',
  2908. 'Hidden Desktops (992px - 1199px)' => 'hidden-md',
  2909. 'Hidden Large Desktops (min 1200px)' => 'hidden-lg',
  2910. 'Hidden XLarge Desktops (min 1440px)' => 'hidden-xlg',
  2911. 'Visible Phones (max 767px)' => 'visible-xs',
  2912. 'Visible Tablets (768px - 991px)' => 'visible-sm',
  2913. 'Visible Desktops (992px - 1199px)' => 'visible-md',
  2914. 'Visible Large Desktops (min 1200px)' => 'visible-lg',
  2915. 'Visible XLarge Desktops (min 1440px)' => 'visible-xlg'
  2916. )
  2917. ),
  2918. $el_class
  2919. )
  2920. )
  2921. );
  2922.  
  2923. /* Content restrict by user type */
  2924.  
  2925.  
  2926. vc_map(
  2927. array(
  2928. 'base' => 'kleo_restrict',
  2929. 'name' => __( 'Content by user type', 'k-elements' ),
  2930. 'weight' => 6,
  2931. 'class' => '',
  2932. 'icon' => 'kleo_restrict',
  2933. 'category' => "Content",
  2934. 'description' => __( 'Restrict content based on user type', 'k-elements' ),
  2935. 'as_parent' => array( 'except' => 'vc_row, vc_column' ),
  2936. 'content_element' => true,
  2937. "admin_label" => true,
  2938. 'js_view' => 'VcColumnView',
  2939. 'params' => array(
  2940. array(
  2941. 'param_name' => 'type',
  2942. 'heading' => __( 'User Type', 'k-elements' ),
  2943. 'description' => __( 'Show content for user type.', 'k-elements' ),
  2944. 'type' => 'dropdown',
  2945. 'holder' => 'div',
  2946. 'class' => 'hide hidden',
  2947. "admin_label" => true,
  2948. 'value' => array(
  2949. 'Logged in user' => 'user',
  2950. 'Guest user' => 'guest'
  2951. )
  2952. ),
  2953. $el_class
  2954. )
  2955. )
  2956. );
  2957.  
  2958.  
  2959. /* GAP */
  2960.  
  2961. vc_map(
  2962. array(
  2963. 'base' => 'kleo_gap',
  2964. 'name' => 'Gap',
  2965. 'weight' => 6,
  2966. 'class' => 'kleo-icon',
  2967. 'icon' => 'gap',
  2968. 'category' => __("Content",'k-elements'),
  2969. 'description' => __('Insert a vertical gap in your content','k-elements'),
  2970. 'params' => array(
  2971. array(
  2972. 'param_name' => 'size',
  2973. 'heading' => __( 'Size', 'k-elements' ),
  2974. 'description' => __( 'Enter in the size of your gap. Pixels, ems, and percentages are all valid units of measurement.', 'k-elements' ),
  2975. 'type' => 'textfield',
  2976. 'holder' => "div",
  2977. 'value' => '10px'
  2978. ),
  2979. array(
  2980. "param_name" => "class",
  2981. "type" => "textfield",
  2982. "holder" => "div",
  2983. "class" => "",
  2984. "heading" => __("Class", "k-elements"),
  2985. "value" => '',
  2986. "description" => __("A class to add to the element for CSS referrences.","k-elements")
  2987. ),
  2988. array(
  2989. 'param_name' => "id",
  2990. 'heading' => __("Id","k-elements"),
  2991. 'description' => __( 'Unique id to add to the element for CSS referrences', 'k-elements' ),
  2992. 'type' => "textfield",
  2993. 'holder' => "div"
  2994. ),
  2995. array(
  2996. "param_name" => "style",
  2997. "type" => "textfield",
  2998. "class" => "",
  2999. "holder" => 'div',
  3000. "heading" => __("Custom inline style", "k-elements"),
  3001. "value" => ""
  3002. ),
  3003. $visibility
  3004. )
  3005. )
  3006. );
  3007.  
  3008.  
  3009.  
  3010. /* Divider */
  3011.  
  3012. vc_map(
  3013. array(
  3014. 'base' => 'kleo_divider',
  3015. 'name' => 'Divider with icon',
  3016. 'weight' => 6,
  3017. 'class' => 'kleo-icon',
  3018. 'icon' => 'icon-wpb-ui-separator-label',
  3019. 'category' => __("Content",'k-elements'),
  3020. 'description' => __('Insert a vertical divider in your content','k-elements'),
  3021. 'params' => array(
  3022. array(
  3023. "type" => "dropdown",
  3024. "holder" => "div",
  3025. "class" => "",
  3026. "heading" => __("Type", "k-elements"),
  3027. "param_name" => "type",
  3028. "value" => array(
  3029. 'Full' => 'full',
  3030. 'Long' => 'long',
  3031. 'Short' => 'short',
  3032. 'Double' => 'double'
  3033. ),
  3034. "description" => __("The type of the divider.", "k-elements")
  3035. ),
  3036. array(
  3037. "type" => "dropdown",
  3038. "holder" => "div",
  3039. "class" => "",
  3040. "heading" => __("Double border", "k-elements"),
  3041. "param_name" => "double",
  3042. "value" => array(
  3043. 'No' => '',
  3044. 'Yes' => 'Yes'
  3045. ),
  3046. "description" => __("Have the divider double lined.", "k-elements")
  3047. ),
  3048. array(
  3049. "type" => "dropdown",
  3050. "holder" => "div",
  3051. "class" => "hide hidden",
  3052. "heading" => __("Position", "k-elements"),
  3053. "param_name" => "position",
  3054. "value" => array(
  3055. 'Center' => 'center',
  3056. 'Left' => 'left',
  3057. 'Right' => 'right'
  3058. ),
  3059. "description" => ""
  3060. )
  3061. ) ) );
  3062.  
  3063. kleo_vc_add_icon( 'kleo_divider' );
  3064.  
  3065. vc_add_params( 'kleo_divider', array(
  3066.  
  3067. array(
  3068. "type" => "dropdown",
  3069. "holder" => "div",
  3070. "class" => "hide hidden",
  3071. "heading" => __( "Icon size" , "k-elements"),
  3072. "param_name" => "icon_size",
  3073. "value" => array(
  3074. 'Normal' => '',
  3075. 'Large' => 'large'
  3076. ),
  3077. "description" => ""
  3078. ),
  3079. array(
  3080. "param_name" => "text",
  3081. "type" => "textfield",
  3082. "holder" => "div",
  3083. "class" => "",
  3084. "heading" => __( "Text", "k-elements" ),
  3085. "value" => '',
  3086. "description" => __( "This text wil show inside the divider" )
  3087. ),
  3088.  
  3089. array(
  3090. 'param_name' => "id",
  3091. 'heading' => __("Id", "k-elements"),
  3092. 'description' => __( 'Unique id to add to the element for CSS referrences', 'k-elements' ),
  3093. 'type' => "textfield",
  3094. 'holder' => "div"
  3095. ),
  3096. array(
  3097. "param_name" => "class",
  3098. "type" => "textfield",
  3099. "holder" => "div",
  3100. "class" => "",
  3101. "heading" => __( "Class" , "k-elements"),
  3102. "value" => '',
  3103. "description" => __( "A class to add to the element for CSS referrences.", "k-elements" )
  3104. ),
  3105. array(
  3106. "param_name" => "style",
  3107. "type" => "textfield",
  3108. "class" => "",
  3109. "holder" => 'div',
  3110. "heading" => __( "Custom inline style" , "k-elements"),
  3111. "value" => ""
  3112. ),
  3113. ) );
  3114.  
  3115.  
  3116.  
  3117. /* Posts grid */
  3118.  
  3119. vc_map_update("vc_posts_grid",
  3120. array(
  3121. "name" => "Kleo Posts",
  3122. 'category' => __( "Content", 'k-elements' ),
  3123. "deprecated" => null,
  3124. "content_element" => true
  3125. )
  3126. );
  3127.  
  3128. vc_remove_param('vc_posts_grid','title');
  3129. vc_remove_param('vc_posts_grid','grid_columns_count');
  3130. vc_remove_param('vc_posts_grid','grid_layout');
  3131. vc_remove_param('vc_posts_grid','grid_link_target');
  3132. vc_remove_param('vc_posts_grid','filter');
  3133. vc_remove_param('vc_posts_grid','grid_layout_mode');
  3134. vc_remove_param('vc_posts_grid','grid_thumb_size');
  3135. vc_remove_param('vc_posts_grid','el_class');
  3136.  
  3137. vc_add_param( "vc_posts_grid", $query_offset);
  3138.  
  3139. vc_add_param("vc_posts_grid", array(
  3140. "type" => "dropdown",
  3141. "holder" => "div",
  3142. "class" => "hide hidden",
  3143. "heading" => __("Layout", "k-elements"),
  3144. "param_name" => "post_layout",
  3145. "value" => array(
  3146. 'Grid' => 'grid',
  3147. 'Small Left Thumb' => 'small',
  3148. 'Standard' => 'standard'
  3149. ),
  3150. "description" => ""
  3151. ));
  3152. vc_add_param("vc_posts_grid", array(
  3153. "param_name" => "columns",
  3154. "type" => "textfield",
  3155. "holder" => "div",
  3156. "class" => "hide hidden",
  3157. "heading" => __('Number of items per row', 'k-elements'),
  3158. "value" => '4',
  3159. "description" => __('A number between 2 and 6', 'k-elements'),
  3160. "dependency" => array(
  3161. "element" => "post_layout",
  3162. "value" => "grid"
  3163. )
  3164. ));
  3165.  
  3166. if ( isset( $kleo_config['blog_layouts'] ) ) {
  3167.  
  3168. vc_add_param("vc_posts_grid", array(
  3169. "type" => "dropdown",
  3170. "holder" => "div",
  3171. "class" => "hide hidden",
  3172. "heading" => __("Show Layout Switcher", "k-elements"),
  3173. "param_name" => "show_switcher",
  3174. "value" => array(
  3175. 'No' => 'no',
  3176. 'Yes' => 'yes'
  3177. ),
  3178. "description" => __("This allows the visitor to change posts layout.", "k-elements"),
  3179. ));
  3180.  
  3181. vc_add_param("vc_posts_grid", array(
  3182. "type" => "checkbox",
  3183. "holder" => "div",
  3184. "class" => "hide hidden",
  3185. "heading" => __("Switcher Layouts", "k-elements"),
  3186. "param_name" => "switcher_layouts",
  3187. "value" => array_flip($kleo_config['blog_layouts']),
  3188. 'std' => join(",", array_values(array_flip($kleo_config['blog_layouts']))),
  3189. "description" => __("What layouts are available for the user to switch.", "k-elements"),
  3190. "dependency" => array(
  3191. "element" => "show_switcher",
  3192. "value" => "yes"
  3193. )
  3194. ));
  3195. }
  3196.  
  3197. vc_add_param("vc_posts_grid", array(
  3198. "type" => "dropdown",
  3199. "holder" => "div",
  3200. "class" => "hide hidden",
  3201. "heading" => __("Show Thumbnail image", "k-elements"),
  3202. "param_name" => "show_thumb",
  3203. "value" => array(
  3204. 'Yes' => 'yes',
  3205. 'Just for the first post' => 'just_1',
  3206. 'Just for first two posts' => 'just_2',
  3207. 'Just for first three posts' => 'just_3',
  3208. 'No' => 'no'
  3209. ),
  3210. "description" => "",
  3211. "dependency" => array(
  3212. "element" => "post_layout",
  3213. "value" => "standard"
  3214. )
  3215. ));
  3216.  
  3217. vc_add_param("vc_posts_grid", array(
  3218. "type" => "dropdown",
  3219. "holder" => "div",
  3220. "class" => "hide hidden",
  3221. "heading" => __("Show post meta", "k-elements"),
  3222. "param_name" => "show_meta",
  3223. "value" => array(
  3224. 'Yes' => 'yes',
  3225. 'No' => 'no'
  3226. ),
  3227. "description" => ""
  3228. ));
  3229.  
  3230. vc_add_param("vc_posts_grid", array(
  3231. "type" => "dropdown",
  3232. "holder" => "div",
  3233. "class" => "hide hidden",
  3234. "heading" => __("Inline post meta", "k-elements"),
  3235. "param_name" => "inline_meta",
  3236. "value" => array(
  3237. 'No' => 'no',
  3238. 'Yes' => 'yes'
  3239. ),
  3240. "description" => "Applies to Standard Layout only. Shows the post meta elements in one line if enabled.",
  3241. "dependency" => array(
  3242. "element" => "show_meta",
  3243. "value" => "yes"
  3244. )
  3245. ));
  3246.  
  3247. vc_add_param("vc_posts_grid", array(
  3248. "type" => "dropdown",
  3249. "holder" => "div",
  3250. "class" => "hide hidden",
  3251. "heading" => __("Show post excerpt", "k-elements"),
  3252. "param_name" => "show_excerpt",
  3253. "value" => array(
  3254. 'Yes' => 'yes',
  3255. 'No' => 'no'
  3256. ),
  3257. "description" => ""
  3258. ));
  3259.  
  3260. vc_add_param("vc_posts_grid", array(
  3261. "type" => "dropdown",
  3262. "holder" => "div",
  3263. "class" => "hide hidden",
  3264. "heading" => __("Show post footer", "k-elements"),
  3265. "param_name" => "show_footer",
  3266. "value" => array(
  3267. 'Yes' => 'yes',
  3268. 'No' => 'no'
  3269. ),
  3270. "description" => "Show read more button and post likes"
  3271. ));
  3272.  
  3273. vc_add_param( "vc_posts_grid", array(
  3274. 'param_name' => 'load_more',
  3275. 'heading' => __( 'Enable Load More', 'k-elements' ),
  3276. 'description' => __('Enable Load more posts via AJAX.','k-elements'),
  3277. 'type' => 'checkbox',
  3278. 'class' => 'hide hidden',
  3279. 'holder' => 'div',
  3280. 'value' => array(
  3281. 'Yes' => 'yes',
  3282. ),
  3283. ));
  3284.  
  3285. vc_add_param( "vc_posts_grid", array(
  3286. 'param_name' => 'ajax_post',
  3287. 'heading' => '',
  3288. 'description' => '',
  3289. 'type' => 'sq_hidden',
  3290. 'class' => 'hide hidden',
  3291. 'holder' => 'div',
  3292. 'value' => '',
  3293. ));
  3294. vc_add_param( "vc_posts_grid", array(
  3295. 'param_name' => 'ajax_paged',
  3296. 'heading' => '',
  3297. 'description' => '',
  3298. 'type' => 'sq_hidden',
  3299. 'class' => 'hide hidden',
  3300. 'holder' => 'div',
  3301. 'value' => '',
  3302. ));
  3303.  
  3304. vc_add_param ('vc_posts_grid', $el_class );
  3305.  
  3306.  
  3307. /* Posts carousel */
  3308.  
  3309. vc_map_update("vc_carousel",
  3310. array(
  3311. "name" => "Kleo Posts Carousel",
  3312. "deprecated" => null,
  3313. "content_element" => true
  3314. )
  3315. );
  3316. vc_remove_param('vc_carousel','title');
  3317. vc_remove_param('vc_carousel','layout');
  3318. vc_remove_param('vc_carousel','link_target');
  3319. vc_remove_param('vc_carousel','thumb_size');
  3320. vc_remove_param('vc_carousel','mode');
  3321. vc_remove_param('vc_carousel','slides_per_view');
  3322. vc_remove_param('vc_carousel','partial_view');
  3323. vc_remove_param('vc_carousel','wrap');
  3324. vc_remove_param('vc_carousel','el_class');
  3325. vc_remove_param('vc_carousel','hide_pagination_control');
  3326. vc_remove_param('vc_carousel','hide_prev_next_buttons');
  3327.  
  3328. vc_add_param( "vc_carousel", $query_offset );
  3329.  
  3330. vc_add_param("vc_carousel", array(
  3331. "type" => "dropdown",
  3332. "holder" => "div",
  3333. "class" => "hide hidden",
  3334. "heading" => __("Layout", "k-elements"),
  3335. "param_name" => "layout",
  3336. "value" => array(
  3337. 'Default' => 'default',
  3338. 'Overlay' => 'overlay'
  3339. ),
  3340. "description" => "Select the carousel layout. Overlay works when you have featured images attached to the post"
  3341. ));
  3342. vc_add_param("vc_carousel", array(
  3343. "type" => "textfield",
  3344. "holder" => 'div',
  3345. 'class' => 'hide hidden',
  3346. "heading" => __("Minimum items to show", "k-elements"),
  3347. "param_name" => "min_items",
  3348. "value" => "",
  3349. "description" => "Defaults to 3",
  3350. ));
  3351. vc_add_param("vc_carousel", array(
  3352. "type" => "textfield",
  3353. "holder" => 'div',
  3354. 'class' => 'hide hidden',
  3355. "heading" => __("Maximum items to show", "k-elements"),
  3356. "param_name" => "max_items",
  3357. "value" => "",
  3358. "description" => "Defaults to 6",
  3359. ));
  3360. vc_add_param("vc_carousel", array(
  3361. "type" => "textfield",
  3362. "holder" => 'div',
  3363. 'class' => 'hide hidden',
  3364. "heading" => __("Elements height", "k-elements"),
  3365. "param_name" => "height",
  3366. "value" => "",
  3367. "description" => __("Force a height on all elements. Expressed in pixels, eq: 300 will represent 300px", "k-elements")
  3368. ));
  3369.  
  3370. vc_add_param('vc_carousel', $el_class);
  3371.  
  3372.  
  3373. /* Image carousel */
  3374. vc_remove_param('vc_images_carousel','title');
  3375. vc_remove_param('vc_images_carousel','mode');
  3376. vc_remove_param('vc_images_carousel','slides_per_view');
  3377. vc_remove_param('vc_images_carousel','partial_view');
  3378. vc_remove_param('vc_images_carousel','wrap');
  3379. vc_remove_param('vc_images_carousel','el_class');
  3380. //vc_remove_param('vc_images_carousel','hide_prev_next_buttons');
  3381.  
  3382. vc_add_param("vc_images_carousel",array(
  3383. "type" => "dropdown",
  3384. "holder" => "div",
  3385. "class" => "hide hidden",
  3386. "heading" => __("Scroll effect", "k-elements"),
  3387. "param_name" => "scroll_fx",
  3388. "value" => array(
  3389. 'Scroll' => 'scroll',
  3390. 'CrossFade' => 'crossfade'
  3391. ),
  3392. "description" => ""
  3393. ));
  3394.  
  3395.  
  3396. vc_add_param("vc_images_carousel", $animation);
  3397. vc_add_param("vc_images_carousel", array(
  3398. 'param_name' => 'css_animation',
  3399. 'heading' => __( 'Animation type', 'k-elements' ),
  3400. 'description' => "",
  3401. 'type' => 'dropdown',
  3402. 'class' => 'hide hidden',
  3403. 'holder' => 'div',
  3404. 'value' => array(
  3405. 'Fade' => 'fade',
  3406. 'Appear' => 'appear'
  3407. ),
  3408. "dependency" => array(
  3409. "element" => "animation",
  3410. "not_empty" => true
  3411. ),
  3412. ));
  3413.  
  3414. vc_add_param("vc_images_carousel", array(
  3415. "type" => "textfield",
  3416. "holder" => 'div',
  3417. 'class' => 'hide hidden',
  3418. "heading" => __("Minimum items to show", "k-elements"),
  3419. "param_name" => "min_items",
  3420. "value" => "",
  3421. "description" => __("Default value: 1","k-elements")
  3422. ));
  3423. vc_add_param("vc_images_carousel", array(
  3424. "type" => "textfield",
  3425. "holder" => 'div',
  3426. 'class' => 'hide hidden',
  3427. "heading" => __("Maximum items to show", "k-elements"),
  3428. "param_name" => "max_items",
  3429. "value" => "",
  3430. "description" => __("Default value: 1.","k-elements")
  3431. ));
  3432. vc_add_param("vc_images_carousel", array(
  3433. "type" => "textfield",
  3434. "holder" => 'div',
  3435. 'class' => 'hide hidden',
  3436. "heading" => __("Custom width for the carousel items", "k-elements"),
  3437. "param_name" => "items_width",
  3438. "value" => "",
  3439. "description" => __("Set a custom width for the items. It is optional since they are automatically calculated. Expressed in pixels. Example: If you want to have one item per row on mobile you need to set a 360 value.","k-elements")
  3440. ));
  3441.  
  3442.  
  3443. vc_add_param('vc_images_carousel', $el_class);
  3444.  
  3445.  
  3446. /* Tagcloud */
  3447. vc_map_update(
  3448. 'vc_wp_tagcloud',
  3449. array('description' => 'Your most used tags or single post tags in cloud format')
  3450. );
  3451. vc_add_param('vc_wp_tagcloud', array(
  3452. "type" => "dropdown",
  3453. "heading" => __("Context", "k-elements"),
  3454. "param_name" => "context",
  3455. "value" => array(
  3456. 'All Posts' => 'all_posts',
  3457. 'Current Post' => 'single_post'
  3458. ),
  3459. "dependency" => array(
  3460. "element" => "taxonomy",
  3461. "value" => "post_tag"
  3462. ),
  3463. ));
  3464. vc_remove_param('vc_wp_tagcloud','el_class');
  3465. vc_add_param('vc_wp_tagcloud', $el_class);
  3466.  
  3467.  
  3468. /* Portfolio */
  3469. if (isset($k_elements['kleo_portfolio'])) {
  3470. if ( defined( 'KLEO_THEME_VERSION' ) && version_compare( KLEO_THEME_VERSION, '2.0' ) >= 0 ) {
  3471. $exclude_cats = kleo_get_category_list_key_array( apply_filters( 'kleo_portfolio_cat_slug', 'portfolio-category' ), 'term_id' );
  3472. unset( $exclude_cats['all'] );
  3473. $exclude_cats = array_flip( $exclude_cats );
  3474. vc_map(
  3475. array(
  3476. 'base' => 'kleo_portfolio',
  3477. 'name' => 'Portfolio',
  3478. 'weight' => 6,
  3479. 'class' => 'kleo-icon',
  3480. 'icon' => 'portfolio',
  3481. 'category' => __( "Content", 'k-elements' ),
  3482. 'description' => __( 'Insert portfolio items', 'k-elements' ),
  3483. 'params' => array(
  3484. array(
  3485. "type" => "dropdown",
  3486. "holder" => "div",
  3487. "class" => "hide hidden",
  3488. "heading" => __( "Display type" , "k-elements"),
  3489. "param_name" => "display_type",
  3490. "value" => array(
  3491. 'Default' => 'default',
  3492. 'Overlay' => 'overlay'
  3493. ),
  3494. "description" => ''
  3495. ),
  3496. array(
  3497. "type" => "dropdown",
  3498. "holder" => "div",
  3499. "class" => "hide hidden",
  3500. "heading" => __( "Title style", "k-elements" ),
  3501. "param_name" => "title_style",
  3502. "dependency" => array(
  3503. "element" => "display_type",
  3504. "value" => "overlay"
  3505. ),
  3506. "value" => array(
  3507. 'Normal' => 'normal',
  3508. 'Shown only on item hover' => 'hover'
  3509. ),
  3510. "description" => ''
  3511. ),
  3512. array(
  3513. "param_name" => "columns",
  3514. "type" => "textfield",
  3515. "holder" => "div",
  3516. "class" => "hide hidden",
  3517. "heading" => __( 'Number of items per row', 'k-elements' ),
  3518. "value" => '4',
  3519. "description" => __('A number between 2 and 6','k-elements')
  3520. ),
  3521. array(
  3522. "param_name" => "item_count",
  3523. "type" => "textfield",
  3524. "holder" => "div",
  3525. "class" => "hide hidden",
  3526. "heading" => __( 'Items to show', 'k-elements' ),
  3527. "value" => '',
  3528. "description" => __('Leave blank for default value as in Settings - Reading','k-elements')
  3529. ),
  3530. array(
  3531. "param_name" => "pagination",
  3532. "type" => "dropdown",
  3533. "holder" => "div",
  3534. "class" => "hide hidden",
  3535. "heading" => __( "Display pagination. Only if is the case it will be shown", "k-elements" ),
  3536. "value" => array(
  3537. 'No' => 'no',
  3538. 'Yes' => 'yes'
  3539. ),
  3540. "description" => ''
  3541. ),
  3542. array(
  3543. "param_name" => "filter",
  3544. "type" => "dropdown",
  3545. "holder" => "div",
  3546. "class" => "hide hidden",
  3547. "heading" => __( "Show filter on top with categories" , "k-elements"),
  3548. "value" => array(
  3549. 'Yes' => 'yes',
  3550. 'No' => 'no'
  3551. ),
  3552. "description" => ''
  3553. ),
  3554. array(
  3555. 'param_name' => 'ajax',
  3556. 'heading' => __( 'Enable AJAX on filter or pagination.', 'k-elements' ),
  3557. 'description' => __('When clicking filters will send an AJAX request to get specific category items.Same goes for pagination','k-elements'),
  3558. 'type' => 'checkbox',
  3559. 'class' => 'hide hidden',
  3560. 'holder' => 'div',
  3561. 'value' => array(
  3562. 'Yes' => 'yes',
  3563. ),
  3564. ),
  3565. array(
  3566. "param_name" => "excerpt",
  3567. "type" => "dropdown",
  3568. "holder" => "div",
  3569. "class" => "hide hidden",
  3570. "heading" => __( "Display Subtitle for each item" , "k-elements"),
  3571. "value" => array(
  3572. 'Yes' => 'yes',
  3573. 'No' => 'no'
  3574. ),
  3575. "description" => ''
  3576. ),
  3577. array(
  3578. "param_name" => "image_size",
  3579. "type" => "textfield",
  3580. "holder" => "div",
  3581. "class" => "hide hidden",
  3582. "heading" => __( 'Images size', 'k-elements' ),
  3583. "value" => '',
  3584. "description" => __('Leave blank to use default value 480x270. Expressed in pixels. Insert like: 400x400','k-elements')
  3585. ),
  3586. array(
  3587. "param_name" => "category",
  3588. "type" => "dropdown",
  3589. "holder" => "div",
  3590. "class" => "hide hidden",
  3591. "heading" => __( "Show from Category", "k-elements" ),
  3592. "value" => kleo_get_category_list( apply_filters( 'kleo_portfolio_cat_slug', 'portfolio-category' ), 1 ),
  3593. "description" => __('It will get also any subcategories', 'k-elements')
  3594. ),
  3595. array(
  3596. "param_name" => "exclude_categories",
  3597. "type" => "checkbox",
  3598. "holder" => "div",
  3599. "class" => "hide hidden",
  3600. "heading" => __( "Exclude categories" , "k-elements"),
  3601. "value" => $exclude_cats,
  3602. "description" => ''
  3603. ),
  3604. $el_class
  3605.  
  3606.  
  3607. )
  3608. )
  3609. );
  3610. }
  3611. }
  3612.  
  3613.  
  3614. /* Search form */
  3615. $kleo_post_types = array();
  3616.  
  3617. if ( function_exists( 'bp_is_active' ) ) {
  3618. $kleo_post_types['Members'] = 'members';
  3619. $kleo_post_types['Groups'] = 'groups';
  3620. }
  3621. $kleo_post_types['Posts'] = 'post';
  3622. $kleo_post_types['Pages'] = 'page';
  3623.  
  3624. $args = array(
  3625. 'public' => true,
  3626. '_builtin' => false
  3627. );
  3628.  
  3629. $types_return = 'objects'; // names or objects, note names is the default
  3630. $post_types = get_post_types( $args, $types_return );
  3631.  
  3632. $except_post_types = array('kleo_clients', 'kleo-testimonials', 'topic', 'reply');
  3633.  
  3634. foreach ( $post_types as $post_type ) {
  3635. if ( in_array( $post_type->name, $except_post_types ) ) {
  3636. continue;
  3637. }
  3638. $kleo_post_types[$post_type->labels->name] = $post_type->name;
  3639. }
  3640.  
  3641. vc_map(
  3642. array(
  3643. 'base' => 'kleo_search_form',
  3644. 'name' => 'Search Form',
  3645. 'weight' => 6,
  3646. 'class' => 'kleo-search',
  3647. 'icon' => 'kleo-search',
  3648. 'category' => __("Content",'k-elements'),
  3649. 'description' => __('Insert search form','k-elements'),
  3650. 'params' => array(
  3651. array(
  3652. "param_name" => "form_style",
  3653. "type" => "dropdown",
  3654. "holder" => "div",
  3655. "class" => "hide hidden",
  3656. "heading" => __("Form Style", "k-elements"),
  3657. "value" => array(
  3658. 'Default' => 'default',
  3659. 'Transparent' => 'transparent'
  3660. ),
  3661. "description" => __('This affects the look of the form. Default has a border and works for white backgrounds.','k-elements')
  3662. ),
  3663. array(
  3664. "param_name" => "type",
  3665. "type" => "dropdown",
  3666. "holder" => "div",
  3667. "class" => "hide hidden",
  3668. "heading" => __("Form Type", "k-elements"),
  3669. "value" => array(
  3670. 'Form submit + AJAX results' => 'both',
  3671. 'Just Form Submit' => 'form_submit',
  3672. 'Just AJAX results' => 'ajax'
  3673. ),
  3674. "description" => __('Here you can disable Form Submit or AJAX results.','k-elements')
  3675. ),
  3676. array(
  3677. "param_name" => "context",
  3678. "type" => "checkbox",
  3679. "holder" => "div",
  3680. "class" => "hide hidden",
  3681. "heading" => __("Search context", "k-elements"),
  3682. "value" => $kleo_post_types,
  3683. "std" => "",
  3684. "description" => __('Leave unchecked to search in all content. What content do you want to search for. For example if you select just Members then the form submit will go to members directory. Same applies for Forums and Products.','k-elements')
  3685. ),
  3686. array(
  3687. "type" => "textfield",
  3688. "holder" => "div",
  3689. "class" => "",
  3690. "heading" => __("Placeholder", "k-elements"),
  3691. "param_name" => "placeholder",
  3692. "value" => '',
  3693. "description" => __("Placeholder to show when the input is empty", "k-elements")
  3694. ),
  3695. $el_class
  3696.  
  3697.  
  3698. )
  3699. )
  3700. );
  3701.  
  3702. /* bbPress Search form */
  3703.  
  3704. vc_map(
  3705. array(
  3706. "name" => __("bbPress Header Search"),
  3707. "base" => "kleo_bbp_header_search",
  3708. "class" => "",
  3709. "category" => __('bbPress'),
  3710. "icon" => "kleo-bpp-icon",
  3711. "params" => array(
  3712. array(
  3713. "type" => "textfield",
  3714. "holder" => "div",
  3715. "class" => "hide hidden",
  3716. "heading" => __("Forum ID", "k-elements"),
  3717. "param_name" => "forum_id",
  3718. "value" => '',
  3719. "description" => __("Enter a Forum ID to search just in that forum. Leave blank to search in all forums", "k-elements")
  3720. ),
  3721. array(
  3722. "type" => "textfield",
  3723. "holder" => "div",
  3724. "class" => "",
  3725. "heading" => __("Placeholder", "k-elements"),
  3726. "param_name" => "placeholder",
  3727. "value" => '',
  3728. "description" => __("Placeholder to show when the input is empty", "k-elements")
  3729. ),
  3730. array(
  3731. "type" => "colorpicker",
  3732. "holder" => "div",
  3733. "class" => "hide hidden",
  3734. "heading" => __("Button text color", "k-elements"),
  3735. "param_name" => "text_color",
  3736. "value" => '#ffffff',
  3737. "description" => ''
  3738. ),
  3739. array(
  3740. "type" => "colorpicker",
  3741. "holder" => "div",
  3742. "class" => "hide hidden",
  3743. "heading" => __("Button background color", "k-elements"),
  3744. "param_name" => "bg_color",
  3745. "value" => '#e74c3c',
  3746. "description" => ''
  3747. ),
  3748. $el_class
  3749. )
  3750. )
  3751. );
  3752.  
  3753.  
  3754. /* Posts count */
  3755. vc_map(
  3756. array(
  3757. "name" => __("Count Posts", "k-elements"),
  3758. "base" => "kleo_post_count",
  3759. "class" => "",
  3760. "category" => __('Content', 'k-elements'),
  3761. "icon" => "kleo-post-icon",
  3762. "params" => array(
  3763. array(
  3764. "type" => "textfield",
  3765. "holder" => "div",
  3766. "class" => "hide hidden",
  3767. "heading" => __("Post type", "k-elements"),
  3768. "param_name" => "type",
  3769. "value" => '',
  3770. "description" => __("Enter a post type to count for. This should be something like: post, page or portfolio ", "k-elements")
  3771. )
  3772. )
  3773. )
  3774. );
  3775.  
  3776.  
  3777. /* Let it Snow */
  3778. vc_map(
  3779. array(
  3780. "name" => __("Let it Snow", "k-elements"),
  3781. "base" => "kleo_snow",
  3782. "class" => "",
  3783. "category" => __('Content', 'k-elements'),
  3784. "icon" => "kleo-snow-icon",
  3785. "params" => array(
  3786. array(
  3787. "type" => "dropdown",
  3788. "holder" => "div",
  3789. "class" => "hide hidden",
  3790. "heading" => __("Where the snowing effect should happen", "k-elements"),
  3791. "param_name" => "scope",
  3792. "value" => array(
  3793. 'Parent Column' => 'column',
  3794. 'Whole window' => 'window'
  3795. ),
  3796. "description" => __("Add beautiful snow effect. Let it snow only in the container column element or activate it for the whole site. ", "k-elements")
  3797. )
  3798. )
  3799. )
  3800. );
  3801.  
  3802. /* Pricing table */
  3803. if(isset($k_elements['kleo_pricing_table'])) {
  3804. vc_map(
  3805. array(
  3806. 'base' => 'kleo_pricing_table',
  3807. 'name' => __( 'Pricing Table', 'k-elements' ),
  3808. 'weight' => 6,
  3809. 'class' => '',
  3810. 'icon' => 'kleo-pricing-table',
  3811. 'category' => "Content",
  3812. 'description' => __( 'Easy to add pricing tables', 'k-elements' ),
  3813. 'as_parent' => array( 'only' => 'kleo_pricing_table_item' ),
  3814. 'content_element' => true,
  3815. 'js_view' => 'VcColumnView',
  3816. 'params' => array(
  3817. array(
  3818. "type" => "dropdown",
  3819. "holder" => "div",
  3820. 'class' => 'hide hidden',
  3821. "admin_label" => true,
  3822. "heading" => __( "Columns" ),
  3823. "param_name" => "columns",
  3824. "value" => array(
  3825. '2' => '2',
  3826. '3' => '3',
  3827. '4' => '4',
  3828. '6' => '6'
  3829. ),
  3830. "description" => __( "Number of pricing table columns." , "k-elements")
  3831. ),
  3832. array(
  3833. "type" => "dropdown",
  3834. "holder" => "div",
  3835. "class" => "hide hidden",
  3836. "heading" => __( "Style" ),
  3837. "param_name" => "style",
  3838. "value" => array(
  3839. 'Default' => '',
  3840. 'Condensed' => '2'
  3841. ),
  3842. "description" => __( "Choose a different style.", "k-elements" )
  3843. ),
  3844. array(
  3845. "type" => "colorpicker",
  3846. "class" => "hide hidden",
  3847. "holder" => 'div',
  3848. 'class' => 'hide hidden',
  3849. "heading" => __( "Custom Heading background", "k-elements" ),
  3850. "param_name" => "heading_bg",
  3851. "value" => "",
  3852. ),
  3853. array(
  3854. "type" => "colorpicker",
  3855. "class" => "hide hidden",
  3856. "holder" => 'div',
  3857. 'class' => 'hide hidden',
  3858. "heading" => __( "Custom Price background", "k-elements" ),
  3859. "param_name" => "price_bg",
  3860. "value" => "",
  3861. ),
  3862. array(
  3863. "type" => "colorpicker",
  3864. "class" => "hide hidden",
  3865. "holder" => 'div',
  3866. 'class' => 'hide hidden',
  3867. "heading" => __( "Custom Text color" , "k-elements"),
  3868. "param_name" => "text_color",
  3869. "value" => "",
  3870. ),
  3871. $el_class
  3872. )
  3873. )
  3874. );
  3875. }
  3876.  
  3877. /* Pricing table item */
  3878. if(isset($k_elements['kleo_pricing_table_item'])) {
  3879. vc_map(
  3880. array(
  3881. "name" => __( "Pricing table item" ),
  3882. "base" => "kleo_pricing_table_item",
  3883. "class" => "kleo-pricing-table-item",
  3884. "category" => __( 'Content' ),
  3885. 'as_child' => array( 'only' => 'kleo_pricing_table' ),
  3886. 'content_element' => true,
  3887. "icon" => "kleo-pricing-table-item",
  3888. "params" => array(
  3889. array(
  3890. "type" => "textfield",
  3891. "holder" => "div",
  3892. "class" => "hide hidden",
  3893. "admin_label" => true,
  3894. "heading" => __( "Title" , "k-elements"),
  3895. "param_name" => "title",
  3896. "value" => "Column title",
  3897. ),
  3898. array(
  3899. "type" => "textfield",
  3900. "holder" => "div",
  3901. "admin_label" => true,
  3902. "class" => "hide hidden",
  3903. "heading" => __( "Price" , "k-elements"),
  3904. "param_name" => "price",
  3905. "value" => "$10",
  3906. ),
  3907. array(
  3908. "type" => "dropdown",
  3909. "holder" => "div",
  3910. "class" => "hide hidden",
  3911. "admin_label" => true,
  3912. "heading" => __( "Popular column?", "k-elements" ),
  3913. "param_name" => "popular",
  3914. "value" => array(
  3915. 'No' => '',
  3916. 'Yes' => 'yes'
  3917. ),
  3918. "description" => __( "Shows this column with a different style", "k-elements" )
  3919. ),
  3920. array(
  3921. 'param_name' => 'content',
  3922. 'heading' => 'Description',
  3923. 'description' => "Enter description column here",
  3924. 'type' => 'textarea_html',
  3925. 'holder' => "div",
  3926. "class" => "hide hidden",
  3927. 'value' => ""
  3928. ),
  3929. array(
  3930. "type" => "exploded_textarea",
  3931. "holder" => "div",
  3932. "class" => "hide hidden",
  3933. "heading" => __( "Features list", "k-elements" ),
  3934. "param_name" => "features",
  3935. "description" => __( "" )
  3936. ),
  3937. array(
  3938. "type" => "textfield",
  3939. "holder" => "div",
  3940. "class" => "hide hidden",
  3941. "heading" => __( "Button label", "k-elements" ),
  3942. "param_name" => "button_label",
  3943. "value" => "Select",
  3944. ),
  3945. array(
  3946. 'type' => 'vc_link',
  3947. 'heading' => __( 'URL (Link)', 'k-elements' ),
  3948. 'param_name' => 'link',
  3949. 'description' => __( 'Add link to button', 'k-elements' )
  3950. ),
  3951.  
  3952. )
  3953. )
  3954. );
  3955. }
  3956.  
  3957. /* Kleo Particles */
  3958. vc_map(
  3959. array(
  3960. "name" => __("Galaxy Particles"),
  3961. "base" => "kleo_particles",
  3962. "class" => "",
  3963. "category" => __('Content'),
  3964. "icon" => "kleo-particles",
  3965. "description" => __("Add nice background connected particles"),
  3966. "params" => array(
  3967. array(
  3968. "type" => "textfield",
  3969. "holder" => "div",
  3970. "class" => "hide hidden",
  3971. "admin_label" => true,
  3972. "heading" => __("Particles number", "k-elements"),
  3973. "param_name" => "number",
  3974. "value" => "80",
  3975. ),
  3976. array(
  3977. "type" => "textfield",
  3978. "holder" => "div",
  3979. "class" => "hide hidden",
  3980. "admin_label" => true,
  3981. "heading" => __("Particles size", "k-elements"),
  3982. "param_name" => "size",
  3983. "value" => "4",
  3984. ),
  3985. array(
  3986. "type" => "colorpicker",
  3987. "holder" => "div",
  3988. "class" => "hide hidden",
  3989. "admin_label" => true,
  3990. "heading" => __("Particles color", "k-elements"),
  3991. "param_name" => "color",
  3992. "value" => "#ffffff",
  3993. )
  3994. )
  3995. )
  3996. );
  3997.  
  3998. /* Kleo Login */
  3999. vc_map(
  4000. array(
  4001. "name" => __("Kleo Login"),
  4002. "base" => "kleo_login",
  4003. "class" => "",
  4004. "category" => __('Content'),
  4005. "icon" => "kleo-login",
  4006. "description" => __("Login / Lost Password Forms (Hidden from logged in users.)", "k-elements"),
  4007. "params" => array(
  4008. array(
  4009. "type" => "dropdown",
  4010. "holder" => "div",
  4011. "class" => "",
  4012. "heading" => __("Show", "k-elements"),
  4013. "param_name" => "show",
  4014. "value" => array(
  4015. 'Login' => 'login',
  4016. 'Lost Password' => 'lostpass',
  4017. ),
  4018. "description" => __("Initial form to show.", "k-elements")
  4019. ),
  4020. array(
  4021. "type" => "textfield",
  4022. "holder" => "div",
  4023. "class" => "hide hidden",
  4024. "heading" => __("Login Title", "k-elements"),
  4025. "param_name" => "login_title",
  4026. "value" => "Log in with your credentials",
  4027. "description" => __("Enter the login title.", "k-elements")
  4028. ),
  4029. array(
  4030. "type" => "textfield",
  4031. "holder" => "div",
  4032. "class" => "hide hidden",
  4033. "heading" => __("Lost Password Title", "k-elements"),
  4034. "param_name" => "lostpass_title",
  4035. "value" => "Forgot your details?",
  4036. "description" => __("Enter the login title.", "k-elements")
  4037. ),
  4038. array(
  4039. "type" => "textfield",
  4040. "holder" => "div",
  4041. "class" => "hide hidden",
  4042. "heading" => __("Login Link", "k-elements"),
  4043. "param_name" => "login_link",
  4044. "value" => "#",
  4045. "description" => __("Use # or custom url. Using # will allow inline switching between login and lost password boxes.", "k-elements")
  4046. ),
  4047. array(
  4048. "type" => "textfield",
  4049. "holder" => "div",
  4050. "class" => "hide hidden",
  4051. "heading" => __("Lost Password Link", "k-elements"),
  4052. "param_name" => "lostpass_link",
  4053. "value" => "#",
  4054. "description" => __("Use # or custom url. Using # will allow inline switching between login and lost password boxes.", "k-elements")
  4055. ),
  4056. array(
  4057. "type" => "textfield",
  4058. "holder" => "div",
  4059. "class" => "hide hidden",
  4060. "heading" => __("Register Link", "k-elements"),
  4061. "param_name" => "register_link",
  4062. "value" => "",
  4063. "description" => __("Leave empty for WordPress or BuddyPress default url. Use 'hide' or custom url. Using 'hide will allow you to hide any registration information.", "k-elements")
  4064. ),
  4065. array(
  4066. "type" => "dropdown",
  4067. "holder" => "div",
  4068. "class" => "hide hidden",
  4069. "admin_label" => true,
  4070. "heading" => __("Style", "k-elements"),
  4071. "param_name" => "style",
  4072. "value" => array(
  4073. 'Transparent White' => 'white',
  4074. 'Transparent Black' => 'black',
  4075. 'Theme Default' => 'default',
  4076. ),
  4077. "description" => __("Form style. If you don't use this form with a background behind then you should set the form style to 'Theme Default'", "k-elements")
  4078. ),
  4079. array(
  4080. "type" => "dropdown",
  4081. "holder" => "div",
  4082. "class" => "hide hidden",
  4083. "heading" => __("Input Size", "k-elements"),
  4084. "param_name" => "input_size",
  4085. "value" => array(
  4086. 'Normal' => 'normal',
  4087. 'Large' => 'large',
  4088. ),
  4089. "description" => __("Form input sizes.")
  4090. ),
  4091. array(
  4092. "type" => "dropdown",
  4093. "holder" => "div",
  4094. "class" => "hide hidden",
  4095. "admin_label" => true,
  4096. "heading" => __("Show for logged in users too", "k-elements"),
  4097. "param_name" => "show_for_users",
  4098. "value" => array(
  4099. 'No' => '',
  4100. 'Yes' => 'yes',
  4101. ),
  4102. "description" => __("The form will be displayed for registered users too if enabled. <br> " .
  4103. "Note: Use only on testing environment.")
  4104. ),
  4105. array(
  4106. "type" => "dropdown",
  4107. "holder" => "div",
  4108. "class" => "hide hidden",
  4109. "admin_label" => true,
  4110. "heading" => __("Autofocus to the input field", "k-elements"),
  4111. "param_name" => "autofocus_login_field",
  4112. "value" => array(
  4113. 'Yes' => '',
  4114. 'No' => 'no',
  4115. ),
  4116. "description" => __("Will focus to the input to type directly and if the form isn't on page view will scroll direcly where the form it's placed. ", "k-elements")
  4117. ),
  4118. $el_class
  4119. )
  4120. )
  4121. );
  4122.  
  4123. /* Kleo Login */
  4124. vc_map(
  4125. array(
  4126. "name" => __("Kleo Social Sharing", "k-elements"),
  4127. "base" => "kleo_social_share",
  4128. "class" => "",
  4129. "category" => __('Content'),
  4130. "icon" => "kleo-social-share",
  4131. "description" => __("Adds Kleo Likes and social sharing.)", "k-elements"),
  4132. "params" => array(
  4133. $el_class
  4134. )
  4135. )
  4136. );
  4137.  
  4138. /* Kleo Magic container */
  4139. vc_map(
  4140. array(
  4141. "name" => __("Kleo Magic Container", "k-elements"),
  4142. "base" => "kleo_magic_container",
  4143. "class" => "",
  4144. "category" => __('Content'),
  4145. "icon" => "kleo-magic-container",
  4146. "description" => __("Very customizable container element", "k-elements"),
  4147. 'as_parent' => array( 'except' => '' ),
  4148. 'content_element' => true,
  4149. 'js_view' => 'VcColumnView',
  4150. "params" => array(
  4151. array(
  4152. "type" => "dropdown",
  4153. "holder" => "div",
  4154. "class" => "hide hidden",
  4155. "heading" => __("CSS Position", "k-elements"),
  4156. "param_name" => "position",
  4157. "value" => array(
  4158. 'Static' => '',
  4159. 'Relative' => 'relative',
  4160. 'Absolute' => 'absolute',
  4161. 'Fixed' => 'fixed',
  4162. ),
  4163. "description" => __("Set the content position.", "k-elements"),
  4164. //'edit_field_class' => 'vc_col-sm-6 vc_column',
  4165. ),
  4166. array(
  4167. "type" => "dropdown",
  4168. "holder" => "div",
  4169. "class" => "hide hidden",
  4170. "heading" => __("CSS Float", "k-elements"),
  4171. "param_name" => "float",
  4172. "value" => array(
  4173. 'None' => '',
  4174. 'Left' => 'left',
  4175. 'Right' => 'right'
  4176. ),
  4177. "description" => __("Set the content position.", "k-elements"),
  4178. //'edit_field_class' => 'vc_col-sm-6 vc_column',
  4179. ),
  4180. array(
  4181. "type" => "textfield",
  4182. "holder" => "div",
  4183. "class" => "hide hidden",
  4184. "heading" => __("CSS Top", "k-elements"),
  4185. "param_name" => "top",
  4186. "value" => "",
  4187. "description" => __("Css Top value. Use px|em|%|pt|cm", "k-elements"),
  4188. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  4189. ),
  4190. array(
  4191. "type" => "textfield",
  4192. "holder" => "div",
  4193. "class" => "hide hidden",
  4194. "heading" => __("CSS Right"),
  4195. "param_name" => "right",
  4196. "value" => "",
  4197. "description" => __("Css RIGHT value. Use px|em|%|pt|cm", "k-elements"),
  4198. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  4199. ),
  4200. array(
  4201. "type" => "textfield",
  4202. "holder" => "div",
  4203. "class" => "hide hidden",
  4204. "heading" => __("CSS Bottom", "k-elements"),
  4205. "param_name" => "bottom",
  4206. "value" => "",
  4207. "description" => __("Css BOTTOM value. Use px|em|%|pt|cm", "k-elements"),
  4208. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  4209. ),
  4210. array(
  4211. "type" => "textfield",
  4212. "holder" => "div",
  4213. "class" => "hide hidden",
  4214. "heading" => __("CSS Left", "k-elements"),
  4215. "param_name" => "left",
  4216. "value" => "",
  4217. "description" => __("Css LEFT value. Use px|em|%|pt|cm"),
  4218. 'edit_field_class' => 'vc_col-sm-3 vc_column',
  4219. ),
  4220. array(
  4221. "type" => "textfield",
  4222. "holder" => "div",
  4223. "class" => "hide hidden",
  4224. "heading" => __("Min. width", "k-elements"),
  4225. "param_name" => "min_width",
  4226. "value" => "",
  4227. "description" => __("Force a minimum width. Use px|em|%|pt|cm", "k-elements"),
  4228. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4229. ),
  4230. array(
  4231. "type" => "textfield",
  4232. "holder" => "div",
  4233. "class" => "hide hidden",
  4234. "heading" => __("Min. height", "k-elements"),
  4235. "param_name" => "min_height",
  4236. "value" => "",
  4237. "description" => __("Force a minimum height. Use px|em|%|pt|cm", "k-elements"),
  4238. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4239. ),
  4240. array(
  4241. "type" => "textfield",
  4242. "holder" => "div",
  4243. "class" => "hide hidden",
  4244. "heading" => __("Fixed width", "k-elements"),
  4245. "param_name" => "width",
  4246. "value" => "",
  4247. "description" => __("Force a fixed width. Use px|em|%|pt|cm", "k-elements"),
  4248. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4249. ),
  4250. array(
  4251. "type" => "textfield",
  4252. "holder" => "div",
  4253. "class" => "hide hidden",
  4254. "heading" => __("Fixed height"),
  4255. "param_name" => "height",
  4256. "value" => "",
  4257. "description" => __("Force a fixed height. Use px|em|%|pt|cm", "k-elements"),
  4258. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4259. ),
  4260. array(
  4261. "type" => "dropdown",
  4262. "holder" => "div",
  4263. "class" => "hide hidden",
  4264. "heading" => __("Content vertical position in container", "k-elements"),
  4265. "param_name" => "content_position",
  4266. "value" => array(
  4267. 'Default top' => '',
  4268. 'Center' => 'center',
  4269. 'Bottom' => 'bottom'
  4270. ),
  4271. "description" => __("Set the content position related to the container. Works when you set a custom container height.", "k-elements"),
  4272. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4273. ),
  4274. array(
  4275. "type" => "checkbox",
  4276. "holder" => "div",
  4277. "class" => "hide hidden",
  4278. "heading" => __("Center text horizontally", "k-elements"),
  4279. "param_name" => "text_center",
  4280. "value" => array(
  4281. "Yes" => "yes"
  4282. ),
  4283. "description" => __("Enabling this option will center any text inside the container", "k-elements"),
  4284. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4285. ),
  4286. array(
  4287. "type" => "checkbox",
  4288. "holder" => "div",
  4289. "class" => "hide hidden",
  4290. "heading" => __("Center the container box horizontally", "k-elements"),
  4291. "param_name" => "div_center",
  4292. "value" => array(
  4293. "Yes" => "yes"
  4294. ),
  4295. "description" => __("Works when you set a custom container width.", "k-elements"),
  4296. ),
  4297. array(
  4298. "type" => "checkbox",
  4299. "holder" => "div",
  4300. "class" => "hide hidden",
  4301. "heading" => __("Full height content", "k-elements"),
  4302. "param_name" => "full_height",
  4303. "value" => array(
  4304. "Yes" => "yes"
  4305. ),
  4306. "description" => __("Stretch the content to the container height. Works when you set a custom container height.", "k-elements")
  4307. ),
  4308. array(
  4309. "type" => "textfield",
  4310. "holder" => "div",
  4311. "class" => "hide hidden",
  4312. "heading" => __("Border Radius", "k-elements"),
  4313. "param_name" => "border_radius",
  4314. "value" => "",
  4315. "description" => __("Set container border radius. Use px|em|%|pt|cm", "k-elements"),
  4316. ),
  4317. array(
  4318. "type" => "textfield",
  4319. "holder" => 'div',
  4320. 'class' => 'hide hidden',
  4321. "heading" => __("Z-index", "k-elements"),
  4322. "param_name" => "z_index",
  4323. "value" => '',
  4324. "description" => __("Stack order for overlapping elements. Use integer value.", "k-elements"),
  4325. ),
  4326. array(
  4327. 'type' => 'css_editor',
  4328. 'heading' => __( 'Css', 'k-elements' ),
  4329. 'param_name' => 'css',
  4330. 'group' => __( 'Design Options', 'k-elements' ),
  4331. ),
  4332. array(
  4333. "type" => "dropdown",
  4334. "holder" => 'div',
  4335. 'class' => 'hide hidden',
  4336. "heading" => __("Background horizontal position", "k-elements"),
  4337. "param_name" => "bg_pos_h",
  4338. "value" => array(
  4339. "Default" => "",
  4340. "Left" => "left",
  4341. "Center" => "center",
  4342. "Right" => "right"
  4343. ),
  4344. "description" => __(""),
  4345. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4346. 'group' => __( 'Design Options', 'k-elements' ),
  4347. ),
  4348.  
  4349. array(
  4350. "type" => "dropdown",
  4351. "holder" => 'div',
  4352. 'class' => 'hide hidden',
  4353. "heading" => __("Background vertical position", "k-elements"),
  4354. "param_name" => "bg_pos_v",
  4355. "value" => array(
  4356. "Default" => "",
  4357. "Top" => "top",
  4358. "Center" => "center",
  4359. "Bottom" => "bottom"
  4360. ),
  4361. "description" => __(""),
  4362. 'edit_field_class' => 'vc_col-sm-6 vc_column',
  4363. 'group' => __( 'Design Options', 'k-elements' ),
  4364. ),
  4365. $visibility,
  4366. $el_class,
  4367. )
  4368. )
  4369. );
  4370. vc_add_params( 'kleo_magic_container', $box_shadow );
  4371. vc_add_param( "kleo_magic_container", $vertical_separator );
  4372.  
  4373. /* Kleo Register */
  4374. if (isset($k_elements['kleo_register'])) {
  4375. vc_map(
  4376. array(
  4377. "name" => __( "Kleo Register" ),
  4378. "base" => "kleo_register",
  4379. "class" => "",
  4380. "category" => __( 'Content' ),
  4381. "icon" => "kleo-register",
  4382. "description" => __( "Register Form (Hidden from logged in users.)" ),
  4383. "params" => array(
  4384. array(
  4385. "type" => "textfield",
  4386. "holder" => "div",
  4387. "class" => "hide hidden",
  4388. "admin_label" => true,
  4389. "heading" => __( "Register Title" , "k-elements"),
  4390. "param_name" => "register_title",
  4391. "value" => "Create Account",
  4392. "description" => __( "Enter the register title." , "k-elements")
  4393. ),
  4394. array(
  4395. "type" => "dropdown",
  4396. "holder" => "div",
  4397. "class" => "hide hidden",
  4398. "admin_label" => true,
  4399. "heading" => __( "Style" , "k-elements"),
  4400. "param_name" => "style",
  4401. "value" => array(
  4402. 'Transparent White' => 'white',
  4403. 'Transparent Black' => 'black',
  4404. 'Theme Default' => 'default',
  4405. ),
  4406. "description" => __( "Form style. If you don't use this form with a background behind then you should set the form style to 'Theme Default'" , "k-elements")
  4407. ),
  4408. array(
  4409. "type" => "dropdown",
  4410. "holder" => "div",
  4411. "class" => "hide hidden",
  4412. "heading" => __( "Input Size" , "k-elements"),
  4413. "param_name" => "input_size",
  4414. "value" => array(
  4415. 'Normal' => 'normal',
  4416. 'Large' => 'large',
  4417. ),
  4418. "description" => __( "Form input sizes." )
  4419. ),
  4420. array(
  4421. "type" => "dropdown",
  4422. "holder" => "div",
  4423. "class" => "hide hidden",
  4424. "admin_label" => true,
  4425. "heading" => __( "Show for logged in users too" , "k-elements"),
  4426. "param_name" => "show_for_users",
  4427. "value" => array(
  4428. 'No' => '',
  4429. 'Yes' => 'yes',
  4430. ),
  4431. "description" => __( "The form will be displayed for registered users too if enabled. <br> " .
  4432. "Note: Use only on testing environment." )
  4433. ),
  4434. array(
  4435. "type" => "dropdown",
  4436. "holder" => "div",
  4437. "class" => "hide hidden",
  4438. "admin_label" => true,
  4439. "heading" => __( "Allow BuddyPress plugin hook before submit", "k-elements" ),
  4440. "param_name" => "bp_plugins_hook",
  4441. "value" => array(
  4442. 'Yes' => '',
  4443. 'No' => 'no',
  4444. ),
  4445. "description" => __( "Allow plugins to hook into the form using bp_before_registration_submit_buttons", "k-elements" )
  4446. ),
  4447.  
  4448. $el_class
  4449. )
  4450. )
  4451. );
  4452. }
  4453.  
  4454. /* Kleo News Focus */
  4455. if (isset($k_elements['kleo_news_focus'])) {
  4456. vc_map(
  4457. array(
  4458. "name" => __( "NEWS Focus" , "k-elements"),
  4459. "base" => "kleo_news_focus",
  4460. "class" => "",
  4461. "category" => __( 'Content' ),
  4462. "icon" => "kleo-news-focus",
  4463. "description" => __( "News Posts with big left image", "k-elements" ),
  4464. "params" => array(
  4465. array(
  4466. "type" => "textfield",
  4467. "holder" => "div",
  4468. "class" => "",
  4469. "heading" => __( "Section name" , "k-elements"),
  4470. "param_name" => "name",
  4471. "value" => "",
  4472. "description" => __( "Enter a section name.", "k-elements" )
  4473. ),
  4474. array(
  4475. "type" => "textfield",
  4476. "holder" => "div",
  4477. "class" => "hide hidden",
  4478. "heading" => __( "Featured posts on left side", "k-elements" ),
  4479. "param_name" => "featured",
  4480. "value" => "1",
  4481. "description" => __( "Enter the number of post to highlight and show big on the left column.", "k-elements" )
  4482. ),
  4483. array(
  4484. 'type' => 'loop',
  4485. 'heading' => __( 'Build your query', 'k-elements' ),
  4486. 'param_name' => 'posts_query',
  4487. 'settings' => array(
  4488. 'size' => array( 'hidden' => false, 'value' => 10 ),
  4489. 'order_by' => array( 'value' => 'date' )
  4490. ),
  4491. 'description' => __( 'If you refine your posts by category then they will show as tabbed content in the shortcode', 'k-elements' )
  4492. ),
  4493. $query_offset,
  4494. $el_class
  4495. )
  4496. )
  4497. );
  4498. }
  4499.  
  4500. /* Kleo News Highlight */
  4501. if (isset($k_elements['kleo_news_highlight'])) {
  4502. vc_map(
  4503. array(
  4504. "name" => __( "NEWS Highlight" ),
  4505. "base" => "kleo_news_highlight",
  4506. "class" => "",
  4507. "category" => __( 'Content' ),
  4508. "icon" => "kleo-news-highlight",
  4509. "description" => __( "News Posts with first post big image", "k-elements" ),
  4510. "params" => array(
  4511. array(
  4512. "type" => "textfield",
  4513. "holder" => "div",
  4514. "class" => "hide hidden",
  4515. "heading" => __( "Featured posts to show big", "k-elements" ),
  4516. "param_name" => "featured",
  4517. "value" => "1",
  4518. "description" => __( "Enter the number of post to highlight and show with bigger thumb.", "k-elements" )
  4519. ),
  4520. array(
  4521. 'type' => 'loop',
  4522. 'heading' => __( 'Build your query', 'k-elements' ),
  4523. 'param_name' => 'posts_query',
  4524. 'settings' => array(
  4525. 'size' => array( 'hidden' => false, 'value' => 10 ),
  4526. 'order_by' => array( 'value' => 'date' )
  4527. ),
  4528. 'description' => __( 'If you refine your posts by category then the first category will show as a label on first post image', 'k-elements' )
  4529. ),
  4530. $query_offset,
  4531. $el_class
  4532. )
  4533. )
  4534. );
  4535. }
  4536.  
  4537. /* Kleo News Ticker */
  4538. if (isset($k_elements['kleo_news_ticker'])) {
  4539. vc_map(
  4540. array(
  4541. "name" => __( "NEWS Ticker", "k-elements" ),
  4542. "base" => "kleo_news_ticker",
  4543. "class" => "",
  4544. "category" => __( 'Content' ),
  4545. "icon" => "kleo-news-ticker",
  4546. "description" => __( "Auto Scrolling posts" ),
  4547. "params" => array(
  4548. array(
  4549. 'type' => 'loop',
  4550. 'heading' => __( 'Build your query', 'k-elements' ),
  4551. 'param_name' => 'posts_query',
  4552. 'settings' => array(
  4553. 'size' => array( 'hidden' => false, 'value' => 10 ),
  4554. 'order_by' => array( 'value' => 'date' )
  4555. ),
  4556. 'description' => __( 'Refine your posts by specific filters', 'k-elements' )
  4557. ),
  4558. $query_offset,
  4559. $el_class
  4560. )
  4561.  
  4562. )
  4563. );
  4564. }
  4565.  
  4566. /* Kleo News Ticker */
  4567. if (isset($k_elements['kleo_news_puzzle'])) {
  4568. vc_map(
  4569. array(
  4570. "name" => __( "News Puzzle" ),
  4571. "base" => "kleo_news_puzzle",
  4572. "class" => "",
  4573. "category" => __( 'Content' ),
  4574. "icon" => "kleo-news-puzzle",
  4575. "description" => __( "Posts in puzzle design" ),
  4576. "params" => array(
  4577. array(
  4578. 'type' => 'loop',
  4579. 'heading' => __( 'Build your query', 'k-elements' ),
  4580. 'param_name' => 'posts_query',
  4581. 'settings' => array(
  4582. 'size' => array( 'hidden' => false, 'value' => 10 ),
  4583. 'order_by' => array( 'value' => 'date' )
  4584. ),
  4585. 'description' => __( 'Refine your posts by specific filters. This will get only image and gallery post formats', 'k-elements' )
  4586. ),
  4587. $query_offset,
  4588. array(
  4589. "type" => "dropdown",
  4590. "holder" => "div",
  4591. "class" => "hide hidden",
  4592. "heading" => __( "Posts per Row" , "k-elements" ),
  4593. "param_name" => "per_row",
  4594. "value" => array(
  4595. '2' => '2',
  4596. '3' => '3',
  4597. '4' => '4',
  4598. ),
  4599. 'std' => '3',
  4600. "description" => __( "How many posts to show on one line.", "k-elements" )
  4601. ),
  4602. $el_class
  4603. )
  4604.  
  4605. )
  4606. );
  4607. }
  4608.  
  4609. /* Buddypress members count */
  4610. vc_map(
  4611. array(
  4612. "name" => __("Members Count", "k-elements" ),
  4613. "base" => "kleo_total_members",
  4614. "class" => "",
  4615. "category" => __('BuddyPress'),
  4616. "icon" => "kleo-bp-icon",
  4617. "description" => __("Show the total member count.", "k-elements" ),
  4618. "show_settings_on_create" => false,
  4619. "params" => array(
  4620.  
  4621. )
  4622. )
  4623. );
  4624.  
  4625. /* Buddypress members statistics */
  4626. vc_map(
  4627. array(
  4628. "name" => __("Members Statistics", "k-elements" ),
  4629. "base" => "kleo_bp_member_stats",
  4630. "class" => "",
  4631. "category" => __('BuddyPress', 'k-elements' ),
  4632. "icon" => "kleo-bp-icon",
  4633. "params" => array(
  4634. array(
  4635. "type" => "textfield",
  4636. "holder" => "div",
  4637. "class" => "",
  4638. "heading" => __("Field Name", "k-elements" ),
  4639. "param_name" => "field",
  4640. "value" => "",
  4641. "description" => __("Profile field name.", "k-elements" )
  4642. ),
  4643. array(
  4644. "type" => "textfield",
  4645. "holder" => "div",
  4646. "class" => "",
  4647. "heading" => __("Field Value"),
  4648. "param_name" => "value",
  4649. "value" => "",
  4650. "description" => __("Profile field value.", "k-elements" )
  4651. ),
  4652. array(
  4653. "type" => "checkbox",
  4654. "holder" => "div",
  4655. "class" => "",
  4656. "heading" => __("Online?", "k-elements" ),
  4657. "param_name" => "online",
  4658. "value" => array(
  4659. "" => "false"
  4660. ),
  4661. "description" => __("Only include online members.", "k-elements" )
  4662. )
  4663. ),
  4664. "description" => __("Show the member count by profile field value.", "k-elements" )
  4665. )
  4666. );
  4667.  
  4668.  
  4669.  
  4670. // Buddypress Groups Carousel
  4671.  
  4672. vc_map(
  4673. array(
  4674. "name" => __("Groups Carousel"),
  4675. "base" => "kleo_bp_groups_carousel",
  4676. "class" => "",
  4677. "category" => __('BuddyPress'),
  4678. "icon" => "bp-icon",
  4679. "params" => array(
  4680. array(
  4681. "type" => "dropdown",
  4682. "holder" => "div",
  4683. "class" => "",
  4684. "heading" => __("Type", "k-elements" ),
  4685. "param_name" => "type",
  4686. "value" => array(
  4687. 'Active' => 'active',
  4688. 'Newest' => 'newest',
  4689. 'Popular' => 'popular',
  4690. 'Alphabetical' => 'alphabetical',
  4691. 'Most Forum Topics' => 'most-forum-topics',
  4692. 'Most Forum Posts' => 'most-forum-posts',
  4693. 'Random' => 'random'
  4694. ),
  4695. "description" => __("The type of groups to display.", "k-elements" )
  4696. ),
  4697. array(
  4698. "type" => "textfield",
  4699. "holder" => "div",
  4700. "class" => "",
  4701. "heading" => __("Number of groups", "k-elements" ),
  4702. "param_name" => "number",
  4703. "value" => 12,
  4704. "description" => __("How many groups to get.", "k-elements" )
  4705. ),
  4706. array(
  4707. "type" => "textfield",
  4708. "holder" => "div",
  4709. "class" => "",
  4710. "heading" => __("Minimum Items", "k-elements" ),
  4711. "param_name" => "min_items",
  4712. "value" => 1,
  4713. "description" => __("Minimum number of items to show on the screen", "k-elements" )
  4714. ),
  4715. array(
  4716. "type" => "textfield",
  4717. "holder" => "div",
  4718. "class" => "",
  4719. "heading" => __("Maximum Items", "k-elements" ),
  4720. "param_name" => "max_items",
  4721. "value" => 6,
  4722. "description" => __("Maximum number of items to show on the screen", "k-elements" )
  4723. ),
  4724. array(
  4725. "type" => "dropdown",
  4726. "holder" => "div",
  4727. "class" => "",
  4728. "heading" => __("Image Type", "k-elements" ),
  4729. "param_name" => "image_size",
  4730. "value" => array(
  4731. 'Full' => 'full',
  4732. 'Thumbnail' => 'thumb'
  4733. ),
  4734. "description" => __("The size to get from buddypress", "k-elements" )
  4735. ),
  4736. array(
  4737. "type" => "dropdown",
  4738. "holder" => "div",
  4739. "class" => "",
  4740. "heading" => __("Auto play", "k-elements" ),
  4741. "param_name" => "autoplay",
  4742. "value" => array(
  4743. 'No' => '',
  4744. 'Yes' => 'yes'
  4745. ),
  4746. "description" => __("If the carousel should play automatically", "k-elements" )
  4747. ),
  4748. array(
  4749. "type" => "dropdown",
  4750. "holder" => "div",
  4751. "class" => "",
  4752. "heading" => __("Avatar type", "k-elements" ),
  4753. "param_name" => "rounded",
  4754. "value" => array(
  4755. 'Rounded' => 'rounded',
  4756. 'Square' => 'square'
  4757. ),
  4758. "description" => __("Rounded or square avatar", "k-elements" )
  4759. ),
  4760. array(
  4761. "type" => "textfield",
  4762. "holder" => "div",
  4763. "class" => "",
  4764. "heading" => __("Image Width", "k-elements" ),
  4765. "param_name" => "item_width",
  4766. "value" => 150,
  4767. "description" => __("The size of the group image", "k-elements" )
  4768. ),
  4769. array(
  4770. "type" => "textfield",
  4771. "holder" => "div",
  4772. "class" => "",
  4773. "heading" => __("Class", "k-elements" ),
  4774. "param_name" => "class",
  4775. "value" => '',
  4776. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  4777. ),
  4778.  
  4779. )
  4780. )
  4781. );
  4782.  
  4783.  
  4784. // Buddypress Groups Masonry
  4785.  
  4786. vc_map(
  4787. array(
  4788. "name" => __("Groups Masonry"),
  4789. "base" => "kleo_bp_groups_masonry",
  4790. "class" => "",
  4791. "category" => __('BuddyPress'),
  4792. "icon" => "bp-icon",
  4793. "params" => array(
  4794. array(
  4795. "type" => "dropdown",
  4796. "holder" => "div",
  4797. "class" => "",
  4798. "heading" => __("Type", "k-elements" ),
  4799. "param_name" => "type",
  4800. "value" => array(
  4801. 'Active' => 'active',
  4802. 'Newest' => 'newest',
  4803. 'Popular' => 'popular',
  4804. 'Alphabetical' => 'alphabetical',
  4805. 'Most Forum Topics' => 'most-forum-topics',
  4806. 'Most Forum Posts' => 'most-forum-posts',
  4807. 'Random' => 'random'
  4808. ),
  4809. "description" => __("The type of groups to display.", "k-elements" )
  4810. ),
  4811. array(
  4812. "type" => "textfield",
  4813. "holder" => "div",
  4814. "class" => "",
  4815. "heading" => __("Number of groups", "k-elements" ),
  4816. "param_name" => "number",
  4817. "value" => 12,
  4818. "description" => __("How many groups to get.", "k-elements" )
  4819. ),
  4820. array(
  4821. "type" => "dropdown",
  4822. "holder" => "div",
  4823. "class" => "",
  4824. "heading" => __("Avatar type", "k-elements" ),
  4825. "param_name" => "rounded",
  4826. "value" => array(
  4827. 'Rounded' => 'rounded',
  4828. 'Square' => 'square'
  4829. ),
  4830. "description" => __("Rounded or square avatar", "k-elements" )
  4831. ),
  4832. array(
  4833. "type" => "textfield",
  4834. "holder" => "div",
  4835. "class" => "",
  4836. "heading" => __("Class"),
  4837. "param_name" => "class",
  4838. "value" => '',
  4839. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  4840. ),
  4841.  
  4842. )
  4843. )
  4844. );
  4845.  
  4846.  
  4847.  
  4848.  
  4849. /* Groups grid */
  4850.  
  4851. vc_map(
  4852. array(
  4853. "name" => __("Groups Grid", "k-elements" ),
  4854. "base" => "kleo_bp_groups_grid",
  4855. "class" => "",
  4856. "category" => __('BuddyPress'),
  4857. "icon" => "bp-icon",
  4858. "params" => array(
  4859. array(
  4860. "type" => "dropdown",
  4861. "holder" => "div",
  4862. "class" => "",
  4863. "heading" => __("Type", "k-elements" ),
  4864. "param_name" => "type",
  4865. "value" => array(
  4866. 'Active' => 'active',
  4867. 'Newest' => 'newest',
  4868. 'Popular' => 'popular',
  4869. 'Alphabetical' => 'alphabetical',
  4870. 'Most Forum Topics' => 'most-forum-topics',
  4871. 'Most Forum Posts' => 'most-forum-posts',
  4872. 'Random' => 'random'
  4873. ),
  4874. "description" => __("The type of groups to display.")
  4875. ),
  4876. array(
  4877. "type" => "textfield",
  4878. "holder" => "div",
  4879. "class" => "",
  4880. "heading" => __("Maximum members", "k-elements" ),
  4881. "param_name" => "number",
  4882. "value" => 12,
  4883. "description" => __("How many groups you want to display.", "k-elements" )
  4884. ),
  4885. array(
  4886. "type" => "dropdown",
  4887. "holder" => "div",
  4888. "class" => "",
  4889. "heading" => __("Groups per line", "k-elements" ),
  4890. "param_name" => "perline",
  4891. "value" => array(
  4892. '1' => 'one',
  4893. '2' => 'two',
  4894. '3' => 'three',
  4895. '4' => 'four',
  4896. '5' => 'five',
  4897. '6' => 'six',
  4898. '7' => 'seven',
  4899. '8' => 'eight',
  4900. '9' => 'nine',
  4901. '10' => 'ten',
  4902. '11' => 'eleven',
  4903. '12' => 'twelve'
  4904. ),
  4905. "description" => __("How many groups to show per line", "k-elements" )
  4906. ),
  4907. array(
  4908. "type" => "dropdown",
  4909. "holder" => "div",
  4910. "class" => "",
  4911. "heading" => __("Avatar type", "k-elements" ),
  4912. "param_name" => "rounded",
  4913. "value" => array(
  4914. 'Square' => 'square',
  4915. 'Rounded' => 'rounded'
  4916. ),
  4917. "description" => __("Rounded or square avatar", "k-elements" )
  4918. ),
  4919. array(
  4920. "type" => "dropdown",
  4921. "holder" => "div",
  4922. "class" => "",
  4923. "heading" => __("Animatione", "k-elements" ),
  4924. "param_name" => "animation",
  4925. "value" => array(
  4926. 'None' => '',
  4927. 'Fade' => 'fade',
  4928. 'Appear' => 'appear'
  4929. ),
  4930. "description" => __("Elements will appear animated", "k-elements" )
  4931. ),
  4932. array(
  4933. "type" => "textfield",
  4934. "holder" => "div",
  4935. "class" => "",
  4936. "heading" => __("Class", "k-elements" ),
  4937. "param_name" => "class",
  4938. "value" => '',
  4939. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  4940. ),
  4941. )
  4942. )
  4943. );
  4944.  
  4945. //Activity Stream
  4946. vc_map(
  4947. array(
  4948. "name" => __("Activity Stream", "k-elements" ),
  4949. "base" => "kleo_bp_activity_stream",
  4950. "class" => "",
  4951. "category" => __('BuddyPress'),
  4952. "icon" => "kleo-bp-icon",
  4953. "params" => array(
  4954. array(
  4955. "type" => "dropdown",
  4956. "holder" => "div",
  4957. "class" => "",
  4958. "heading" => __("Display", "k-elements" ),
  4959. "param_name" => "show",
  4960. "value" => array(
  4961. 'All' => false,
  4962. 'Blogs' => 'blogs',
  4963. 'Groups' => 'groups',
  4964. 'Friends' => 'friends',
  4965. 'Profile' => 'profile',
  4966. 'Status' => 'status'
  4967. ),
  4968. "description" => __("The type of activity to show. It adds the 'object' parameter as in https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/", "k-elements" )
  4969. ),
  4970. array(
  4971. "type" => "textfield",
  4972. "holder" => "div",
  4973. "class" => "",
  4974. "heading" => __("Filter action", "k-elements" ),
  4975. "param_name" => "filter_action",
  4976. "value" => '',
  4977. "description" => __("Example: activity_update<br> See action parameter from the filters section from https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/", "k-elements" )
  4978. ),
  4979. array(
  4980. "type" => "textfield",
  4981. "holder" => "div",
  4982. "class" => "",
  4983. "heading" => __("Number", "k-elements" ),
  4984. "param_name" => "number",
  4985. "value" => '6',
  4986. "description" => __("How many activity streams to show", "k-elements" )
  4987. ),
  4988. array(
  4989. "type" => "dropdown",
  4990. "holder" => "div",
  4991. "class" => "",
  4992. "heading" => __("Show post update form", "k-elements" ),
  4993. "param_name" => "post_form",
  4994. "value" => array(
  4995. 'No' => 'no',
  4996. 'Yes' => 'yes'
  4997. ),
  4998. "description" => __("Shows the form to post a new update", "k-elements" )
  4999. ),
  5000. array(
  5001. "type" => "dropdown",
  5002. "holder" => "div",
  5003. "class" => "",
  5004. "heading" => __("Bottom button", "k-elements" ),
  5005. "param_name" => "show_button",
  5006. "value" => array(
  5007. 'Yes' => 'yes',
  5008. 'No' => 'no'
  5009. ),
  5010. "description" => __("Show a button with link to the activity page", "k-elements" )
  5011. ),
  5012. array(
  5013. "type" => "textfield",
  5014. "holder" => "div",
  5015. "class" => "",
  5016. "heading" => __("Activity Button Label", "k-elements" ),
  5017. "param_name" => "button_label",
  5018. "value" => 'View All Activity',
  5019. "dependency" => array(
  5020. "element" => "show_button",
  5021. "value" => "yes"
  5022. ),
  5023. "description" => __("Button text")
  5024. ),
  5025. array(
  5026. "type" => "textfield",
  5027. "holder" => "div",
  5028. "class" => "",
  5029. "heading" => __("Activity Button Link", "k-elements" ),
  5030. "param_name" => "button_link",
  5031. "value" => '/activity',
  5032. "dependency" => array(
  5033. "element" => "show_button",
  5034. "value" => "yes"
  5035. ),
  5036. "description" => __("Put here the link to your activity page", "k-elements" )
  5037. )
  5038. )
  5039. )
  5040. );
  5041.  
  5042. //Activity Page
  5043. vc_map(
  5044. array(
  5045. "name" => __("Activity Page", "k-elements" ),
  5046. "base" => "kleo_bp_activity_page",
  5047. "class" => "",
  5048. "category" => __('BuddyPress'),
  5049. "icon" => "kleo-bp-icon",
  5050. "show_settings_on_create" => false
  5051. )
  5052. );
  5053.  
  5054.  
  5055. }
  5056.  
  5057. add_action('vc_before_init', 'kleo_vc_manipulate_shortcodes');
  5058.  
  5059.  
  5060. function kleo_vc_manipulate_shortcodes_after() {
  5061.  
  5062. if (version_compare( WPB_VC_VERSION, '4.10' ) >= 0) {
  5063.  
  5064. //Get current values stored in the width param in "Column" element
  5065. $param = WPBMap::getParam( 'vc_row', 'video_bg' );
  5066. $param['group'] = __( 'Text & Background', 'k-elements' );
  5067. //Finally "mutate" param with new values
  5068. vc_update_shortcode_param( 'vc_row', $param );
  5069.  
  5070. //Get current values stored in the width param in "Column" element
  5071. $param = WPBMap::getParam( 'vc_row', 'video_bg_url' );
  5072. $param['group'] = __( 'Text & Background', 'k-elements' );
  5073. //Finally "mutate" param with new values
  5074. vc_update_shortcode_param( 'vc_row', $param );
  5075.  
  5076. //Get current values stored in the width param in "Column" element
  5077. $param = WPBMap::getParam( 'vc_row', 'video_bg_parallax' );
  5078. $param['group'] = __( 'Text & Background', 'k-elements' );
  5079. //Finally "mutate" param with new values
  5080. vc_update_shortcode_param( 'vc_row', $param );
  5081.  
  5082. //Get current values stored in the width param in "Column" element
  5083. $param = WPBMap::getParam( 'vc_row', 'parallax_speed_video' );
  5084. $param['group'] = __( 'Text & Background', 'k-elements' );
  5085. //Finally "mutate" param with new values
  5086. vc_update_shortcode_param( 'vc_row', $param );
  5087. }
  5088.  
  5089.  
  5090. vc_add_shortcode_param( 'sq_hidden', 'sq_vc_hidden_param' );
  5091. function sq_vc_hidden_param( $settings, $value ) {
  5092. return '<div class="sq-param-block" style="display: none;">'
  5093. .'<input name="' . esc_attr( $settings['param_name'] ) . '" class="wpb_vc_param_value' .
  5094. esc_attr( $settings['param_name'] ) . ' ' .
  5095. esc_attr( $settings['type'] ) . '_field" type="hidden" value="' . esc_attr( $value ) . '" />'
  5096. .'</div>';
  5097. }
  5098. }
  5099. add_action( 'vc_after_init', 'kleo_vc_manipulate_shortcodes_after' );
  5100.  
  5101.  
  5102. /* Load theme Fontello icons */
  5103. add_filter( 'vc_iconpicker-type-fontello', 'kleo_vc_iconpicker_fontello' );
  5104.  
  5105. function kleo_vc_iconpicker_fontello( $icons ) {
  5106.  
  5107. $fontello_icons = kleo_icons_array( '' );
  5108.  
  5109. $arranged_icons = array();
  5110.  
  5111. if ( $fontello_icons ) {
  5112. foreach( $fontello_icons as $k => $icon ) {
  5113. $arranged_icons[][$k] = $icon;
  5114. }
  5115. }
  5116.  
  5117. $f_icons = array( $arranged_icons );
  5118.  
  5119. return array_merge( $icons, $f_icons );
  5120. }
  5121.  
  5122. add_action('vc_backend_editor_enqueue_js_css', 'kleo_enqueue_admin_font');
  5123.  
  5124. function kleo_enqueue_admin_font() {
  5125. wp_enqueue_style( 'kleo-fonts' );
  5126. }
  5127.  
  5128.  
  5129.  
  5130. class WPBakeryShortCode_Kleo_Grid extends WPBakeryShortCodesContainer { }
  5131. class WPBakeryShortCode_Kleo_Visibility extends WPBakeryShortCodesContainer { }
  5132. class WPBakeryShortCode_Kleo_Restrict extends WPBakeryShortCodesContainer { }
  5133. class WPBakeryShortCode_Kleo_List extends WPBakeryShortCodesContainer { }
  5134. class WPBakeryShortCode_Kleo_Feature_item extends WPBakeryShortCode { }
  5135. class WPBakeryShortCode_Kleo_List_item extends WPBakeryShortCode { }
  5136. class WPBakeryShortCode_Kleo_Pricing_Table extends WPBakeryShortCodesContainer { }
  5137. class WPBakeryShortCode_Kleo_Magic_Container extends WPBakeryShortCodesContainer { }
  5138.  
  5139.  
  5140.  
  5141.  
  5142. /* Default templates */
  5143. add_action('vc_load_default_templates_action','kleo_custom_template_for_vc');
  5144. function kleo_custom_template_for_vc() {
  5145.  
  5146. $data = array();
  5147. $data['name'] = 'Portfolio With Grid Images V1';
  5148. $data['content'] = <<<CONTENT
  5149. [vc_row inner_container="no" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30px" min_height="0" border="none" css_animation="right-to-left" type="image" bg_image="2755" text_align="center"][vc_column width="1/1"][vc_row_inner][vc_column_inner width="1/1"][vc_column_text css_animation="right-to-left"]
  5150. <h1>Portfolio With Grid Images V1</h1>
  5151. [/vc_column_text][vc_column_text lead="yes" css_animation="right-to-left"]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.[/vc_column_text][/vc_column_inner][/vc_row_inner][kleo_gap size="20px"][vc_gallery type="grid" images="723,721,722,731,732,733,734,744,778,749,743,742" onclick="link_image" custom_links_target="_self" img_size="500x400" grid_number="6"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5152. <h3>Project Description</h3>
  5153. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5154. <div class="wpb_text_column wpb_content_element ">
  5155. <div class="wpb_wrapper">
  5156.  
  5157. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5158.  
  5159. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5160.  
  5161. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5162.  
  5163. </div>
  5164. </div>
  5165. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="alternate" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5166. <h3>Related Projects</h3>
  5167. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" pagination="no" filter="no" excerpt="yes" category="All" columns="4" item_count="4"][/vc_column][/vc_row]
  5168. CONTENT;
  5169.  
  5170. $data2 = array();
  5171. $data2['name'] = 'Portfolio With Grid Images V2';
  5172. $data2['content'] = <<<CONTENT
  5173. [vc_row inner_container="no" text_align="center" section_type="main" bg_position="center" bg_position_horizontal="center" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="50" min_height="0" border="none" css_animation="right-to-left" front_status="draft"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5174. <h1>Portfolio With Grid Images V2</h1>
  5175. [/vc_column_text][/vc_column][/vc_row][vc_row inner_container="no" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="0" min_height="0" border="none" css_animation="right-to-left" text_align="center" padding_bottom="40px" bg_color="#000000" column_gap="no"][vc_column width="1/1"][vc_gallery type="grid" onclick="link_image" custom_links_target="_self" grid_number="4" img_size="full" images="3202,3174,3175,3172,3170,3169,3168,3167,3166,3171"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5176. <h3>Project Description</h3>
  5177. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5178. <div class="wpb_text_column wpb_content_element ">
  5179. <div class="wpb_wrapper">
  5180.  
  5181. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5182.  
  5183. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5184.  
  5185. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5186.  
  5187. </div>
  5188. </div>
  5189. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="alternate" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5190. <h3>Related Projects</h3>
  5191. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" pagination="no" filter="no" excerpt="yes" category="All" columns="4" item_count="4"][/vc_column][/vc_row]
  5192. CONTENT;
  5193.  
  5194. $data3 = array();
  5195. $data3['name'] = 'Portfolio With Carousel Images';
  5196. $data3['content'] = <<<CONTENT
  5197. [vc_row inner_container="no" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30px" padding_bottom="40" min_height="0" border="none" css_animation="right-to-left" type="image" bg_image="2755" text_align="center"][vc_column width="1/1"][vc_row_inner][vc_column_inner width="1/1"][vc_column_text css_animation="right-to-left"]
  5198. <h1>Portfolio With Carousel Images</h1>
  5199. [/vc_column_text][vc_column_text lead="yes" css_animation="right-to-left"]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.[/vc_column_text][/vc_column_inner][/vc_row_inner][kleo_gap size="20px"][vc_images_carousel images="734,740,733,737,741,728,722,721,723" onclick="link_image" custom_links_target="_self" speed="3000" scroll_fx="scroll" animation="animate-when-almost-visible" css_animation="fade" min_items="1" max_items="3" img_size="400px" autoplay="yes"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5200. <h3>Project Description</h3>
  5201. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5202. <div class="wpb_text_column wpb_content_element ">
  5203. <div class="wpb_wrapper">
  5204.  
  5205. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5206.  
  5207. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5208.  
  5209. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5210.  
  5211. </div>
  5212. </div>
  5213. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="alternate" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5214. <h3>Related Projects</h3>
  5215. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" columns="4" item_count="4" pagination="no" filter="no" excerpt="yes" category="All"][/vc_column][/vc_row]
  5216. CONTENT;
  5217.  
  5218. $data4 = array();
  5219. $data4['name'] = 'Single Image Lightbox';
  5220. $data4['content'] = <<<CONTENT
  5221. [vc_row inner_container="yes" text_align="center" section_type="main" bg_position="top" bg_position_horizontal="center" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30" padding_bottom="20" min_height="0" border="bottom" css_animation="right-to-left" type="image" bg_image="2926"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5222. <h1>Single Image Lightbox</h1>
  5223. [/vc_column_text][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30px" min_height="0" border="none" css_animation="right-to-left" text_align="center" padding_bottom="40"][vc_column width="1/1"][kleo_gap size="20px"][vc_images_carousel images="2906" onclick="link_image" custom_links_target="_self" speed="5000" scroll_fx="scroll" css_animation="appear" min_items="1" max_items="1" img_size="full"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5224. <h3>Project Description</h3>
  5225. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5226. <div class="wpb_text_column wpb_content_element ">
  5227. <div class="wpb_wrapper">
  5228.  
  5229. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5230.  
  5231. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5232.  
  5233. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5234.  
  5235. </div>
  5236. </div>
  5237. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="alternate" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5238. <h3>Related Projects</h3>
  5239. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" pagination="no" filter="no" excerpt="yes" category="All" columns="4" item_count="4"][/vc_column][/vc_row]
  5240. CONTENT;
  5241.  
  5242. $data5 = array();
  5243. $data5['name'] = 'Video Background Header';
  5244. $data5['content'] = <<<CONTENT
  5245. [vc_row inner_container="yes" section_type="main" type="video" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" min_height="0" border="none" css_animation="right-to-left" bg_video_src_webm="http://seventhqueen.com/themes/kleo/wp-content/uploads/2014/09/video_street.webm" padding_top="0" padding_bottom="0" text_color="#ffffff" bg_video_src_mp4="http://seventhqueen.com/themes/kleo/wp-content/uploads/2014/09/video_street.mp4" bg_image="3214" bg_video_src_ogv="http://seventhqueen.com/themes/kleo/wp-content/uploads/2014/09/video_street.ogg" bg_video_cover="3203"][vc_column width="1/1"][kleo_gap size="200px"][kleo_gap size="30px"][vc_column_text css_animation="right-to-left"]
  5246. <h1>Video Background Header</h1>
  5247. [/vc_column_text][vc_column_text lead="yes" css_animation="right-to-left"]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.[/vc_column_text][kleo_gap size="30px"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="2/3"][vc_single_image image="2914" border_color="grey" img_link_target="_self" animation="animate-when-almost-visible" css_animation="el-fade" img_size="large"][kleo_gap size="10px"][/vc_column][vc_column width="1/3"][vc_column_text css_animation="right-to-left"]
  5248. <h3>Project Description</h3>
  5249. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5250. <div class="wpb_text_column wpb_content_element ">
  5251. <div class="wpb_wrapper">
  5252.  
  5253. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5254.  
  5255. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5256.  
  5257. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5258.  
  5259. </div>
  5260. </div>
  5261. [/vc_column_text][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][kleo_gap size="30px"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5262. <h3>Related Projects</h3>
  5263. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" columns="4" item_count="4" pagination="no" filter="no" excerpt="yes" category="All"][/vc_column][/vc_row]
  5264. CONTENT;
  5265.  
  5266. $data6 = array();
  5267. $data6['name'] = 'Embed Vimeo Full Width';
  5268. $data6['content'] = <<<CONTENT
  5269. [vc_row inner_container="no" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30px" min_height="0" border="none" css_animation="right-to-left" type="image" bg_image="2755" text_align="center"][vc_column width="1/1"][vc_row_inner][vc_column_inner width="1/1"][vc_column_text css_animation="right-to-left"]
  5270. <h1>Embed Vimeo Full Width</h1>
  5271. [/vc_column_text][vc_column_text lead="yes" css_animation="right-to-left"]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.[/vc_column_text][/vc_column_inner][/vc_row_inner][kleo_gap size="20px"][vc_video link="https://vimeo.com/16202331"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5272. <h3>Project Description</h3>
  5273. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5274. <div class="wpb_text_column wpb_content_element ">
  5275. <div class="wpb_wrapper">
  5276.  
  5277. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5278.  
  5279. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5280.  
  5281. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5282.  
  5283. </div>
  5284. </div>
  5285. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="alternate" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5286. <h3>Related Projects</h3>
  5287. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" pagination="no" filter="no" excerpt="yes" category="All" columns="4" item_count="4"][/vc_column][/vc_row]
  5288. CONTENT;
  5289.  
  5290. $data7 = array();
  5291. $data7['name'] = 'Portfolio With Slider';
  5292. $data7['content'] = <<<CONTENT
  5293. [vc_row inner_container="yes" text_align="center" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="30" padding_bottom="0" min_height="0" border="none" css_animation="right-to-left"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5294. <h1>Portfolio With Slider</h1>
  5295. [/vc_column_text][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="0" padding_bottom="40" min_height="0" border="none" css_animation="right-to-left"][vc_column width="1/1"][kleo_gap size="20px"][vc_images_carousel images="734,733,737,741" onclick="link_image" custom_links_target="_self" speed="5000" scroll_fx="scroll" animation="animate-when-almost-visible" css_animation="fade" min_items="1" max_items="1" img_size="large"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="0" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5296. <h3>Project Description</h3>
  5297. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5298. <div class="wpb_text_column wpb_content_element ">
  5299. <div class="wpb_wrapper">
  5300.  
  5301. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5302.  
  5303. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5304.  
  5305. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5306.  
  5307. </div>
  5308. </div>
  5309. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5310. <h3>Related Projects</h3>
  5311. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" columns="4" item_count="4" pagination="no" filter="no" excerpt="yes" category="All"][/vc_column][/vc_row]
  5312. CONTENT;
  5313.  
  5314. $data8 = array();
  5315. $data8['name'] = 'Gallery with thumbs';
  5316. $data8['content'] = <<<CONTENT
  5317. [vc_row inner_container="yes" text_align="center" section_type="main" bg_position="center" bg_position_horizontal="center" bg_repeat="no-repeat" bg_cover="true" bg_attachment="true" parallax_speed="0.05" padding_top="30" padding_bottom="20" min_height="0" border="none" css_animation="right-to-left" type="image" bg_image="3166" front_status="draft"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5318. <h1>Gallery with thumbs</h1>
  5319. [/vc_column_text][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="2/3"][vc_gallery type="thumbs" images="3168,3166,3190,3167,3169,3170,3171,3172,3173,3174,3175" onclick="link_no" custom_links_target="_self" img_size="180x120" grid_number="6"][kleo_gap size="10px"][/vc_column][vc_column width="1/3"][vc_column_text css_animation="right-to-left"]
  5320. <h3>Project Description</h3>
  5321. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5322. <div class="wpb_text_column wpb_content_element ">
  5323. <div class="wpb_wrapper">
  5324.  
  5325. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5326.  
  5327. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5328.  
  5329. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5330.  
  5331. </div>
  5332. </div>
  5333. [/vc_column_text][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][kleo_gap size="30px"][kleo_button title="Launch Project" target="_self" style="highlight" tooltip_position="left" tooltip_action="hover"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="60" padding_bottom="60" min_height="0" border="none" css_animation="right-to-left" text_align="center"][vc_column width="1/1"][vc_column_text css_animation="right-to-left"]
  5334. <h3>Related Projects</h3>
  5335. [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" columns="5" item_count="5" pagination="no" filter="no" excerpt="yes" category="All"][/vc_column][/vc_row]
  5336. CONTENT;
  5337.  
  5338. $data9 = array();
  5339. $data9['name'] = 'Image Full Width Header';
  5340. $data9['content'] = <<<CONTENT
  5341. [vc_row inner_container="yes" section_type="main" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="300px" padding_bottom="200px" min_height="0" border="none" css_animation="right-to-left" text_align="center" text_color="#ffffff" type="image" bg_image="749"][vc_column width="1/2"][/vc_column][vc_column width="1/2"][kleo_button title="Launch Project" target="_self" style="see-through" tooltip_position="left" tooltip_action="hover" size="lg"][/vc_column][/vc_row][vc_row inner_container="no" section_type="main" type="color" bg_color="#000000" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="0" padding_bottom="0" min_height="0" border="none" css_animation="right-to-left"][vc_column width="1/1"][vc_images_carousel images="741,740,739,737,736,734,733,735,728,731" onclick="link_image" custom_links_target="_self" speed="5000" hide_pagination_control="yes" scroll_fx="scroll" css_animation="fade" min_items="2" max_items="8" img_size="300x140"][/vc_column][/vc_row][vc_row inner_container="yes" section_type="footer" bg_position="top" bg_position_horizontal="left" bg_repeat="no-repeat" bg_cover="true" bg_attachment="false" parallax_speed="0.1" padding_top="40px" padding_bottom="40" min_height="0" border="bottom" css_animation="right-to-left"][vc_column width="1/2"][vc_column_text css_animation="right-to-left"]
  5342. <h3>Project Description</h3>
  5343. [/vc_column_text][kleo_gap size="10px"][vc_column_text css_animation="right-to-left"]
  5344.  
  5345. Maecenas nec ultrices massa. Quisque orci diam, malesuada id augue nec, faucibus interdum dolor. Curabitur sagittis, felis porttitor placerat rhoncus, mauris diam sollicitudin nisl, sed luctus nulla sem non velit. Fusce a libero ullamcorper, volutpat orci ut, suscipit erat. Morbi tempor tortor vel urna lobortis.
  5346.  
  5347. Hendrerit faucibus massa consequat. Vivamus feugiat sapien massa, non luctus purus scelerisque et. Donec sodales pellentesque diam, et adipiscing erat imperdiet ac. Integer a lacinia velit. Pellentesque eu adipiscing arcu, a eleifend nulla. Vivamus tempus sem erat, eget lobortis odio interdum at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Interdum et malesuada fames ac ante ipsum primis in faucibus.
  5348.  
  5349. Phasellus et feugiat risus. Ut a egestas libero. Morbi dictum quis felis vel congue. Sed eu arcu auctor, volutpat justo et, egestas libero. Phasellus sagittis sem in iaculis faucibus. Aenean vel lacus purus.
  5350.  
  5351. [/vc_column_text][/vc_column][vc_column width="1/2"][kleo_gap size="10px"][vc_accordion icons_position="to-left"][vc_accordion_tab title="Project Details" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Client" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][vc_column_text css_animation="right-to-left"]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.[/vc_column_text][/vc_accordion_tab][vc_accordion_tab title="Request a Quote" icon="minus-circle" icon_closed="plus-circled" tooltip_position="left" tooltip_action="hover"][contact-form-7 id="29"][/vc_accordion_tab][/vc_accordion][/vc_column][/vc_row]
  5352. CONTENT;
  5353.  
  5354. vc_add_default_templates( $data );
  5355. vc_add_default_templates( $data2 );
  5356. vc_add_default_templates( $data3 );
  5357. vc_add_default_templates( $data4 );
  5358. vc_add_default_templates( $data5 );
  5359. vc_add_default_templates( $data6 );
  5360. vc_add_default_templates( $data7 );
  5361. vc_add_default_templates( $data8 );
  5362. vc_add_default_templates( $data9 );
  5363. }
  5364.  
  5365.  
  5366. function kleo_add_icons_to_vc_message() {
  5367. //Get current values stored in the width param in "Column" element
  5368. $param = WPBMap::getParam( 'vc_message', 'icon_type' );
  5369. if (is_array($param)) {
  5370. $my_val = array(__( 'Fontello(theme default)', 'k-elements' ) => 'fontello');
  5371. $param['value'] = array_merge($my_val, $param['value']);
  5372. //Finally "mutate" param with new values
  5373. vc_update_shortcode_param( 'vc_message', $param );
  5374. }
  5375.  
  5376.  
  5377. //Get current values stored in the width param in "Column" element
  5378. $param = WPBMap::getParam( 'vc_message', 'color' );
  5379. if (is_array($param)) {
  5380. $param['weight'] = 2;
  5381. //Finally "mutate" param with new values
  5382. vc_update_shortcode_param( 'vc_message', $param );
  5383. }
  5384.  
  5385. //Get current values stored in the width param in "Column" element
  5386. $param = WPBMap::getParam( 'vc_message', 'message_box_style' );
  5387. if (is_array($param)) {
  5388. $param['weight'] = 2;
  5389. //Finally "mutate" param with new values
  5390. vc_update_shortcode_param( 'vc_message', $param );
  5391. }
  5392.  
  5393. //Get current values stored in the width param in "Column" element
  5394. $param = WPBMap::getParam( 'vc_message', 'style' );
  5395. if (is_array($param)) {
  5396. $param['weight'] = 2;
  5397. //Finally "mutate" param with new values
  5398. vc_update_shortcode_param( 'vc_message', $param );
  5399. }
  5400.  
  5401. //Get current values stored in the width param in "Column" element
  5402. $param = WPBMap::getParam( 'vc_message', 'message_box_color' );
  5403. if (is_array($param)) {
  5404. $param['weight'] = 2;
  5405. //Finally "mutate" param with new values
  5406. vc_update_shortcode_param( 'vc_message', $param );
  5407. }
  5408.  
  5409. //Get current values stored in the width param in "Column" element
  5410. $param = WPBMap::getParam( 'vc_message', 'icon_type' );
  5411. if (is_array($param)) {
  5412. $param['weight'] = 2;
  5413. //Finally "mutate" param with new values
  5414. vc_update_shortcode_param( 'vc_message', $param );
  5415. }
  5416.  
  5417. }
  5418.  
  5419.  
  5420. function kleo_vc_add_icon( $shortcode = null ) {
  5421. if (! $shortcode) {
  5422. return;
  5423. }
  5424.  
  5425. $pixel_icons = array(
  5426. array( 'vc_pixel_icon vc_pixel_icon-alert' => __( 'Alert', 'k-elements' ) ),
  5427. array( 'vc_pixel_icon vc_pixel_icon-info' => __( 'Info', 'k-elements' ) ),
  5428. array( 'vc_pixel_icon vc_pixel_icon-tick' => __( 'Tick', 'k-elements' ) ),
  5429. array( 'vc_pixel_icon vc_pixel_icon-explanation' => __( 'Explanation', 'k-elements' ) ),
  5430. array( 'vc_pixel_icon vc_pixel_icon-address_book' => __( 'Address book', 'k-elements' ) ),
  5431. array( 'vc_pixel_icon vc_pixel_icon-alarm_clock' => __( 'Alarm clock', 'k-elements' ) ),
  5432. array( 'vc_pixel_icon vc_pixel_icon-anchor' => __( 'Anchor', 'k-elements' ) ),
  5433. array( 'vc_pixel_icon vc_pixel_icon-application_image' => __( 'Application Image', 'k-elements' ) ),
  5434. array( 'vc_pixel_icon vc_pixel_icon-arrow' => __( 'Arrow', 'k-elements' ) ),
  5435. array( 'vc_pixel_icon vc_pixel_icon-asterisk' => __( 'Asterisk', 'k-elements' ) ),
  5436. array( 'vc_pixel_icon vc_pixel_icon-hammer' => __( 'Hammer', 'k-elements' ) ),
  5437. array( 'vc_pixel_icon vc_pixel_icon-balloon' => __( 'Balloon', 'k-elements' ) ),
  5438. array( 'vc_pixel_icon vc_pixel_icon-balloon_buzz' => __( 'Balloon Buzz', 'k-elements' ) ),
  5439. array( 'vc_pixel_icon vc_pixel_icon-balloon_facebook' => __( 'Balloon Facebook', 'k-elements' ) ),
  5440. array( 'vc_pixel_icon vc_pixel_icon-balloon_twitter' => __( 'Balloon Twitter', 'k-elements' ) ),
  5441. array( 'vc_pixel_icon vc_pixel_icon-battery' => __( 'Battery', 'k-elements' ) ),
  5442. array( 'vc_pixel_icon vc_pixel_icon-binocular' => __( 'Binocular', 'k-elements' ) ),
  5443. array( 'vc_pixel_icon vc_pixel_icon-document_excel' => __( 'Document Excel', 'k-elements' ) ),
  5444. array( 'vc_pixel_icon vc_pixel_icon-document_image' => __( 'Document Image', 'k-elements' ) ),
  5445. array( 'vc_pixel_icon vc_pixel_icon-document_music' => __( 'Document Music', 'k-elements' ) ),
  5446. array( 'vc_pixel_icon vc_pixel_icon-document_office' => __( 'Document Office', 'k-elements' ) ),
  5447. array( 'vc_pixel_icon vc_pixel_icon-document_pdf' => __( 'Document PDF', 'k-elements' ) ),
  5448. array( 'vc_pixel_icon vc_pixel_icon-document_powerpoint' => __( 'Document Powerpoint', 'k-elements' ) ),
  5449. array( 'vc_pixel_icon vc_pixel_icon-document_word' => __( 'Document Word', 'k-elements' ) ),
  5450. array( 'vc_pixel_icon vc_pixel_icon-bookmark' => __( 'Bookmark', 'k-elements' ) ),
  5451. array( 'vc_pixel_icon vc_pixel_icon-camcorder' => __( 'Camcorder', 'k-elements' ) ),
  5452. array( 'vc_pixel_icon vc_pixel_icon-camera' => __( 'Camera', 'k-elements' ) ),
  5453. array( 'vc_pixel_icon vc_pixel_icon-chart' => __( 'Chart', 'k-elements' ) ),
  5454. array( 'vc_pixel_icon vc_pixel_icon-chart_pie' => __( 'Chart pie', 'k-elements' ) ),
  5455. array( 'vc_pixel_icon vc_pixel_icon-clock' => __( 'Clock', 'k-elements' ) ),
  5456. array( 'vc_pixel_icon vc_pixel_icon-fire' => __( 'Fire', 'k-elements' ) ),
  5457. array( 'vc_pixel_icon vc_pixel_icon-heart' => __( 'Heart', 'k-elements' ) ),
  5458. array( 'vc_pixel_icon vc_pixel_icon-mail' => __( 'Mail', 'k-elements' ) ),
  5459. array( 'vc_pixel_icon vc_pixel_icon-play' => __( 'Play', 'k-elements' ) ),
  5460. array( 'vc_pixel_icon vc_pixel_icon-shield' => __( 'Shield', 'k-elements' ) ),
  5461. array( 'vc_pixel_icon vc_pixel_icon-video' => __( 'Video', 'k-elements' ) ),
  5462. );
  5463.  
  5464. /*vc_remove_param( $shortcode, 'icon_type' );
  5465. vc_remove_param( $shortcode, 'icon_fontawesome' );
  5466. vc_remove_param( $shortcode, 'icon_openiconic' );
  5467. vc_remove_param( $shortcode, 'icon_typicons' );
  5468. vc_remove_param( $shortcode, 'icon_entypo' );
  5469. vc_remove_param( $shortcode, 'icon_linecons' );
  5470. vc_remove_param( $shortcode, 'icon_pixelicons' );*/
  5471.  
  5472. vc_add_param( $shortcode, array(
  5473. 'type' => 'dropdown',
  5474. 'heading' => __( 'Icon library', 'k-elements' ),
  5475. 'value' => array(
  5476. __( 'Fontello(theme default)', 'k-elements' ) => 'fontello',
  5477. __( 'Font Awesome', 'k-elements' ) => 'fontawesome',
  5478. __( 'Open Iconic', 'k-elements' ) => 'openiconic',
  5479. __( 'Typicons', 'k-elements' ) => 'typicons',
  5480. __( 'Entypo', 'k-elements' ) => 'entypo',
  5481. __( 'Linecons', 'k-elements' ) => 'linecons',
  5482. __( 'Pixel', 'k-elements' ) => 'pixelicons',
  5483. ),
  5484. 'param_name' => 'icon_type',
  5485. 'description' => __( 'Select icon library.', 'k-elements' ),
  5486. ) );
  5487. vc_add_param( $shortcode, array(
  5488. 'type' => 'iconpicker',
  5489. 'heading' => __( 'Icon', 'k-elements' ),
  5490. 'param_name' => 'icon',
  5491. 'value' => '', // default value to backend editor admin_label
  5492. 'settings' => array(
  5493. 'emptyIcon' => false,
  5494. 'type' => 'fontello',
  5495. 'iconsPerPage' => 4000,
  5496. ),
  5497. 'dependency' => array(
  5498. 'element' => 'icon_type',
  5499. 'value' => 'fontello',
  5500. ),
  5501. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5502. ) );
  5503. vc_add_param( $shortcode, array(
  5504. 'type' => 'iconpicker',
  5505. 'heading' => __( 'Icon', 'k-elements' ),
  5506. 'param_name' => 'icon_fontawesome',
  5507. 'value' => 'fa fa-info-circle',
  5508. 'settings' => array(
  5509. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5510. 'iconsPerPage' => 200, // default 100, how many icons per/page to display
  5511. ),
  5512. 'dependency' => array(
  5513. 'element' => 'icon_type',
  5514. 'value' => 'fontawesome',
  5515. ),
  5516. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5517. ) );
  5518. vc_add_param( $shortcode, array(
  5519. 'type' => 'iconpicker',
  5520. 'heading' => __( 'Icon', 'k-elements' ),
  5521. 'param_name' => 'icon_openiconic',
  5522. 'settings' => array(
  5523. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5524. 'type' => 'openiconic',
  5525. 'iconsPerPage' => 200, // default 100, how many icons per/page to display
  5526. ),
  5527. 'dependency' => array(
  5528. 'element' => 'icon_type',
  5529. 'value' => 'openiconic',
  5530. ),
  5531. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5532. ) );
  5533. vc_add_param( $shortcode, array(
  5534. 'type' => 'iconpicker',
  5535. 'heading' => __( 'Icon', 'k-elements' ),
  5536. 'param_name' => 'icon_typicons',
  5537. 'settings' => array(
  5538. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5539. 'type' => 'typicons',
  5540. 'iconsPerPage' => 200, // default 100, how many icons per/page to display
  5541. ),
  5542. 'dependency' => array(
  5543. 'element' => 'icon_type',
  5544. 'value' => 'typicons',
  5545. ),
  5546. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5547. ) );
  5548. vc_add_param( $shortcode, array(
  5549. 'type' => 'iconpicker',
  5550. 'heading' => __( 'Icon', 'k-elements' ),
  5551. 'param_name' => 'icon_entypo',
  5552. 'settings' => array(
  5553. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5554. 'type' => 'entypo',
  5555. 'iconsPerPage' => 300, // default 100, how many icons per/page to display
  5556. ),
  5557. 'dependency' => array(
  5558. 'element' => 'icon_type',
  5559. 'value' => 'entypo',
  5560. ),
  5561. ) );
  5562. vc_add_param( $shortcode, array(
  5563. 'type' => 'iconpicker',
  5564. 'heading' => __( 'Icon', 'k-elements' ),
  5565. 'param_name' => 'icon_linecons',
  5566. 'settings' => array(
  5567. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5568. 'type' => 'linecons',
  5569. 'iconsPerPage' => 200, // default 100, how many icons per/page to display
  5570. ),
  5571. 'dependency' => array(
  5572. 'element' => 'icon_type',
  5573. 'value' => 'linecons',
  5574. ),
  5575. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5576. ) );
  5577. vc_add_param( $shortcode, array(
  5578. 'type' => 'iconpicker',
  5579. 'heading' => __( 'Icon', 'k-elements' ),
  5580. 'param_name' => 'icon_pixelicons',
  5581. 'settings' => array(
  5582. 'emptyIcon' => false, // default true, display an "EMPTY" icon?
  5583. 'type' => 'pixelicons',
  5584. 'source' => $pixel_icons,
  5585. ),
  5586. 'dependency' => array(
  5587. 'element' => 'icon_type',
  5588. 'value' => 'pixelicons',
  5589. ),
  5590. 'description' => __( 'Select icon from library.', 'k-elements' ),
  5591. ) );
  5592. }
  5593.  
  5594. function sq_vc_bp_register_shortcodes() {
  5595. /* Get registered member types */
  5596. $kleo_member_types = array("All" => 'all');
  5597. if (function_exists('bp_get_member_types')) {
  5598. $kleo_member_types = $kleo_member_types + bp_get_member_types( array(), 'names' );
  5599. }
  5600.  
  5601. // Buddypress Members Carousel
  5602.  
  5603. vc_map(
  5604. array(
  5605. "name" => __("Members Carousel", "k-elements" ),
  5606. "base" => "kleo_bp_members_carousel",
  5607. "class" => "",
  5608. "category" => __('BuddyPress'),
  5609. "icon" => "kleo-bp-icon",
  5610. "params" => array(
  5611. array(
  5612. "type" => "dropdown",
  5613. "holder" => "div",
  5614. "class" => "",
  5615. "heading" => __("Member Type", "k-elements" ),
  5616. "param_name" => "member_type",
  5617. "value" => $kleo_member_types,
  5618. "description" => __("The type of members to display.")
  5619. ),
  5620. array(
  5621. "type" => "dropdown",
  5622. "holder" => "div",
  5623. "class" => "",
  5624. "heading" => __("Filter", "k-elements" ),
  5625. "param_name" => "type",
  5626. "value" => array(
  5627. 'Active' => 'active',
  5628. 'Newest' => 'newest',
  5629. 'Popular' => 'popular',
  5630. 'Online' => 'online',
  5631. 'Alphabetical' => 'alphabetical',
  5632. 'Random' => 'random'
  5633. ),
  5634. "description" => __("Filter the members by.", "k-elements" )
  5635. ),
  5636. array(
  5637. "type" => "textfield",
  5638. "holder" => "div",
  5639. "class" => "",
  5640. "heading" => __("Number of members", "k-elements" ),
  5641. "param_name" => "number",
  5642. "value" => 12,
  5643. "description" => __("How many members to get.", "k-elements" )
  5644. ),
  5645. array(
  5646. "type" => "textfield",
  5647. "holder" => "div",
  5648. "class" => "",
  5649. "heading" => __("Minimum Items", "k-elements" ),
  5650. "param_name" => "min_items",
  5651. "value" => 1,
  5652. "description" => __("Minimum number of items to show on the screen", "k-elements" )
  5653. ),
  5654. array(
  5655. "type" => "textfield",
  5656. "holder" => "div",
  5657. "class" => "",
  5658. "heading" => __("Maximum Items", "k-elements" ),
  5659. "param_name" => "max_items",
  5660. "value" => 6,
  5661. "description" => __("Maximum number of items to show on the screen", "k-elements" )
  5662. ),
  5663. array(
  5664. "type" => "dropdown",
  5665. "holder" => "div",
  5666. "class" => "",
  5667. "heading" => __("Image Type", "k-elements" ),
  5668. "param_name" => "image_size",
  5669. "value" => array(
  5670. 'Full' => 'full',
  5671. 'Thumbnail' => 'thumb'
  5672. ),
  5673. "description" => __("The size to get from buddypress", "k-elements" )
  5674. ),
  5675. array(
  5676. "type" => "dropdown",
  5677. "holder" => "div",
  5678. "class" => "",
  5679. "heading" => __("Avatar type", "k-elements" ),
  5680. "param_name" => "rounded",
  5681. "value" => array(
  5682. 'Rounded' => 'rounded',
  5683. 'Square' => 'square'
  5684. ),
  5685. "description" => __("Rounded or square avatar", "k-elements" )
  5686. ),
  5687. array(
  5688. "type" => "textfield",
  5689. "holder" => "div",
  5690. "class" => "",
  5691. "heading" => __("Image Width"),
  5692. "param_name" => "item_width",
  5693. "value" => 150,
  5694. "description" => __("The size of the member image", "k-elements" )
  5695. ),
  5696. array(
  5697. "type" => "dropdown",
  5698. "holder" => "div",
  5699. "class" => "",
  5700. "heading" => __("Auto play", "k-elements" ),
  5701. "param_name" => "autoplay",
  5702. "value" => array(
  5703. 'No' => '',
  5704. 'Yes' => 'yes'
  5705. ),
  5706. "description" => __("If the carousel should play automatically", "k-elements" )
  5707. ),
  5708. array(
  5709. "type" => "dropdown",
  5710. "holder" => "div",
  5711. "class" => "",
  5712. "heading" => __("Online status", "k-elements" ),
  5713. "param_name" => "online",
  5714. "value" => array(
  5715. 'Show' => 'show',
  5716. 'Hide' => 'noshow'
  5717. ),
  5718. "description" => __("Show online status", "k-elements" )
  5719. ),
  5720. array(
  5721. "type" => "textfield",
  5722. "holder" => "div",
  5723. "class" => "",
  5724. "heading" => __("Class", "k-elements" ),
  5725. "param_name" => "class",
  5726. "value" => '',
  5727. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  5728. ),
  5729.  
  5730. )
  5731. )
  5732. );
  5733.  
  5734.  
  5735.  
  5736. // Buddypress Members Masonry
  5737.  
  5738. vc_map(
  5739. array(
  5740. "name" => __("Members Masonry"),
  5741. "base" => "kleo_bp_members_masonry",
  5742. "class" => "",
  5743. "category" => __('BuddyPress'),
  5744. "icon" => "kleo-bp-icon",
  5745. "params" => array(
  5746. array(
  5747. "type" => "dropdown",
  5748. "holder" => "div",
  5749. "class" => "",
  5750. "heading" => __("Member Type", "k-elements" ),
  5751. "param_name" => "member_type",
  5752. "value" => $kleo_member_types,
  5753. "description" => __("The type of members to display.", "k-elements" )
  5754. ),
  5755. array(
  5756. "type" => "dropdown",
  5757. "holder" => "div",
  5758. "class" => "",
  5759. "heading" => __("Filter", "k-elements" ),
  5760. "param_name" => "type",
  5761. "value" => array(
  5762. 'Active' => 'active',
  5763. 'Newest' => 'newest',
  5764. 'Popular' => 'popular',
  5765. 'Online' => 'online',
  5766. 'Alphabetical' => 'alphabetical',
  5767. 'Random' => 'random'
  5768. ),
  5769. "description" => __("Filter the members by.", "k-elements" )
  5770. ),
  5771. array(
  5772. "type" => "textfield",
  5773. "holder" => "div",
  5774. "class" => "",
  5775. "heading" => __("Number of members", "k-elements" ),
  5776. "param_name" => "number",
  5777. "value" => 12,
  5778. "description" => __("How many members to get.", "k-elements" )
  5779. ),
  5780. array(
  5781. "type" => "dropdown",
  5782. "holder" => "div",
  5783. "class" => "",
  5784. "heading" => __("Avatar type", "k-elements" ),
  5785. "param_name" => "rounded",
  5786. "value" => array(
  5787. 'Rounded' => 'rounded',
  5788. 'Square' => 'square'
  5789. ),
  5790. "description" => __("Rounded or square avatar", "k-elements" )
  5791. ),
  5792. array(
  5793. "type" => "dropdown",
  5794. "holder" => "div",
  5795. "class" => "",
  5796. "heading" => __("Online status", "k-elements" ),
  5797. "param_name" => "online",
  5798. "value" => array(
  5799. 'Show' => 'show',
  5800. 'Hide' => 'noshow'
  5801. ),
  5802. "description" => __("Show online status", "k-elements" )
  5803. ),
  5804. array(
  5805. "type" => "textfield",
  5806. "holder" => "div",
  5807. "class" => "",
  5808. "heading" => __("Class", "k-elements" ),
  5809. "param_name" => "class",
  5810. "value" => '',
  5811. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  5812. ),
  5813.  
  5814. )
  5815. )
  5816. );
  5817.  
  5818.  
  5819.  
  5820. /* Members grid */
  5821.  
  5822. vc_map(
  5823. array(
  5824. "name" => __("Members Grid", "k-elements" ),
  5825. "base" => "kleo_bp_members_grid",
  5826. "class" => "",
  5827. "category" => __('BuddyPress'),
  5828. "icon" => "bp-icon",
  5829. "params" => array(
  5830. array(
  5831. "type" => "dropdown",
  5832. "holder" => "div",
  5833. "class" => "",
  5834. "heading" => __("Member Type", "k-elements" ),
  5835. "param_name" => "member_type",
  5836. "value" => $kleo_member_types,
  5837. "description" => __("The type of members to display.", "k-elements" )
  5838. ),
  5839. array(
  5840. "type" => "dropdown",
  5841. "holder" => "div",
  5842. "class" => "",
  5843. "heading" => __("Filter", "k-elements" ),
  5844. "param_name" => "type",
  5845. "value" => array(
  5846. 'Active' => 'active',
  5847. 'Newest' => 'newest',
  5848. 'Popular' => 'popular',
  5849. 'Online' => 'online',
  5850. 'Alphabetical' => 'alphabetical',
  5851. 'Random' => 'random'
  5852. ),
  5853. "description" => __("Filter the members by.", "k-elements" )
  5854. ),
  5855. array(
  5856. "type" => "textfield",
  5857. "holder" => "div",
  5858. "class" => "",
  5859. "heading" => __("Maximum members", "k-elements" ),
  5860. "param_name" => "number",
  5861. "value" => 12,
  5862. "description" => __("How many members you want to display.", "k-elements" )
  5863. ),
  5864. array(
  5865. "type" => "dropdown",
  5866. "holder" => "div",
  5867. "class" => "",
  5868. "heading" => __("Members per line", "k-elements" ),
  5869. "param_name" => "perline",
  5870. "value" => array(
  5871. '1' => 'one',
  5872. '2' => 'two',
  5873. '3' => 'three',
  5874. '4' => 'four',
  5875. '5' => 'five',
  5876. '6' => 'six',
  5877. '7' => 'seven',
  5878. '8' => 'eight',
  5879. '9' => 'nine',
  5880. '10' => 'ten',
  5881. '11' => 'eleven',
  5882. '12' => 'twelve'
  5883. ),
  5884. "description" => __("How many members to show per line", "k-elements" )
  5885. ),
  5886. array(
  5887. "type" => "dropdown",
  5888. "holder" => "div",
  5889. "class" => "",
  5890. "heading" => __("Avatar type", "k-elements" ),
  5891. "param_name" => "rounded",
  5892. "value" => array(
  5893. 'Square' => 'square',
  5894. 'Rounded' => 'rounded'
  5895. ),
  5896. "description" => __("Rounded or square avatar", "k-elements" )
  5897. ),
  5898. array(
  5899. "type" => "dropdown",
  5900. "holder" => "div",
  5901. "class" => "",
  5902. "heading" => __("Animation", "k-elements" ),
  5903. "param_name" => "animation",
  5904. "value" => array(
  5905. 'None' => '',
  5906. 'Fade' => 'fade',
  5907. 'Appear' => 'appear'
  5908. ),
  5909. "description" => __("Elements will appear animated", "k-elements" )
  5910. ),
  5911. array(
  5912. "type" => "textfield",
  5913. "holder" => "div",
  5914. "class" => "",
  5915. "heading" => __("Class", "k-elements" ),
  5916. "param_name" => "class",
  5917. "value" => '',
  5918. "description" => __("A class to add to the element for CSS referrences.", "k-elements" )
  5919. ),
  5920. )
  5921. )
  5922. );
  5923.  
  5924. }
  5925.  
  5926. add_action('init','sq_vc_bp_register_shortcodes');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement