PluginProbe
Borderless – Addons and Templates for Elementor / 1.6.1
Borderless – Addons and Templates for Elementor v1.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 All 78 releases
← All changes | modules/wpbakery/custom-default-elements.php +70 -70 1.0.81.6.1 View file →
@@ -1,71 +1,71 @@
1 -<?php
2 -/**
3 - * Customize default elements in Visual Composer
4 - *
5 - * @package Borderless
6 - *
7 - */
8 -
9 -/*-----------------------------------------------------------------------------------*/
10 -/* Customize default elements in Visual Composer
11 -/*-----------------------------------------------------------------------------------*/
12 -
13 -add_action( 'vc_after_init', 'vc_after_init_actions' );
14 -
15 -function vc_after_init_actions() {
16 -
17 - // Ref: http://www.wpelixir.com/how-to-customize-default-elements-visual-composer/
18 - // Remove Params Example
19 -
20 - /*
21 - if( function_exists('vc_remove_param') ){
22 - vc_remove_param( 'vc_row', 'css_animation' );
23 - vc_remove_param( 'vc_row', 'el_class' );
24 - }
25 -
26 - // Add Params For Row Element
27 - $vc_row_new_params = array(
28 -
29 - array(
30 - 'type' => 'dropdown',
31 - 'heading' => __( 'Color Mode', 'borderless' ),
32 - 'description' => __( 'Select Color Mode For The Row.', 'borderless' ),
33 - 'param_name' => 'borderless_row_color_mode',
34 - 'group' => 'Borderless',
35 - 'value' => array(
36 - __( 'None', 'borderless' ) => '',
37 - __( 'Light Mode', 'borderless' ) => 'light',
38 - __( 'Dark Mode', 'borderless' ) => 'dark',
39 - __( 'Light to Dark Mode', 'borderless' ) => 'light-to-dark',
40 - __( 'Dark to Light Mode', 'borderless' ) => 'dark-to-light',
41 - ),
42 - ),
43 -
44 - );
45 -
46 - vc_add_params( 'vc_row', $vc_row_new_params );
47 -
48 -
49 - // Add Params For Column Element
50 - $vc_column_new_params = array(
51 -
52 - array(
53 - 'type' => 'dropdown',
54 - 'heading' => __( 'Color Mode', 'borderless' ),
55 - 'description' => __( 'Select Color Mode For The Row.', 'borderless' ),
56 - 'param_name' => 'borderless_column_color_mode',
57 - 'group' => 'Borderless',
58 - 'value' => array(
59 - __( 'None', 'borderless' ) => '',
60 - __( 'Light Mode', 'borderless' ) => 'light',
61 - __( 'Dark Mode', 'borderless' ) => 'dark',
62 - __( 'Light to Dark Mode', 'borderless' ) => 'light-to-dark',
63 - __( 'Dark to Light Mode', 'borderless' ) => 'dark-to-light',
64 - ),
65 - ),
66 -
67 - );
68 -
69 - vc_add_params( 'vc_column', $vc_column_new_params );
70 - */
1 +<?php
2 +/**
3 + * Customize default elements in Visual Composer
4 + *
5 + * @package Borderless
6 + *
7 + */
8 +
9 +/*-----------------------------------------------------------------------------------*/
10 +/* Customize default elements in Visual Composer
11 +/*-----------------------------------------------------------------------------------*/
12 +
13 +add_action( 'vc_after_init', 'vc_after_init_actions' );
14 +
15 +function vc_after_init_actions() {
16 +
17 + // Ref: http://www.wpelixir.com/how-to-customize-default-elements-visual-composer/
18 + // Remove Params Example
19 +
20 + /*
21 + if( function_exists('vc_remove_param') ){
22 + vc_remove_param( 'vc_row', 'css_animation' );
23 + vc_remove_param( 'vc_row', 'el_class' );
24 + }
25 +
26 + // Add Params For Row Element
27 + $vc_row_new_params = array(
28 +
29 + array(
30 + 'type' => 'dropdown',
31 + 'heading' => __( 'Color Mode', 'borderless' ),
32 + 'description' => __( 'Select Color Mode For The Row.', 'borderless' ),
33 + 'param_name' => 'borderless_row_color_mode',
34 + 'group' => 'Borderless',
35 + 'value' => array(
36 + __( 'None', 'borderless' ) => '',
37 + __( 'Light Mode', 'borderless' ) => 'light',
38 + __( 'Dark Mode', 'borderless' ) => 'dark',
39 + __( 'Light to Dark Mode', 'borderless' ) => 'light-to-dark',
40 + __( 'Dark to Light Mode', 'borderless' ) => 'dark-to-light',
41 + ),
42 + ),
43 +
44 + );
45 +
46 + vc_add_params( 'vc_row', $vc_row_new_params );
47 +
48 +
49 + // Add Params For Column Element
50 + $vc_column_new_params = array(
51 +
52 + array(
53 + 'type' => 'dropdown',
54 + 'heading' => __( 'Color Mode', 'borderless' ),
55 + 'description' => __( 'Select Color Mode For The Row.', 'borderless' ),
56 + 'param_name' => 'borderless_column_color_mode',
57 + 'group' => 'Borderless',
58 + 'value' => array(
59 + __( 'None', 'borderless' ) => '',
60 + __( 'Light Mode', 'borderless' ) => 'light',
61 + __( 'Dark Mode', 'borderless' ) => 'dark',
62 + __( 'Light to Dark Mode', 'borderless' ) => 'light-to-dark',
63 + __( 'Dark to Light Mode', 'borderless' ) => 'dark-to-light',
64 + ),
65 + ),
66 +
67 + );
68 +
69 + vc_add_params( 'vc_column', $vc_column_new_params );
70 + */
71 71 }