| @@ -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 | } |