Changeset 1076243
- Timestamp:
- 01/26/2015 08:44:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
showcase-visual-composer-addon/trunk/includes/vc-showcase.php
r1076239 r1076243 3 3 add_action( 'vc_before_init', 'showcase_vc_addon_function' ); 4 4 5 add_shortcode_param( 'number', 'sc_number_field' ); 5 // Generate param type "number" 6 if ( function_exists('add_shortcode_param')) 7 { 8 add_shortcode_param( 'number', 'sc_number_field' ); 9 } 10 11 // Function generate param type "number" 6 12 function sc_number_field($settings, $value) 7 13 { … … 17 23 } 18 24 19 add_shortcode_param( 'sc_title_separator', 'sc_title_separator_field' ); 25 // Generate param type "sc_title_separator" 26 if ( function_exists('add_shortcode_param')) 27 { 28 add_shortcode_param( 'sc_title_separator', 'sc_title_separator_field' ); 29 } 30 20 31 function sc_title_separator_field( $settings, $value ) { 21 32 $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; … … 26 37 } 27 38 28 add_shortcode_param( 'custom_size', 'sc_custom_size' ); 39 // Generate param type "custom_size" 40 if ( function_exists('add_shortcode_param')) 41 { 42 add_shortcode_param( 'custom_size', 'sc_custom_size' ); 43 } 44 29 45 function sc_custom_size( $settings, $value ) { 30 46 $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; … … 45 61 } 46 62 63 47 64 function showcase_vc_addon_function() { 48 65
Note: See TracChangeset
for help on using the changeset viewer.