Changeset 1076237
- Timestamp:
- 01/26/2015 08:33:06 PM (11 years ago)
- Location:
- showcase-visual-composer-addon/trunk
- Files:
-
- 2 edited
-
Thumbs.db (modified) (previous)
-
includes/vc-showcase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
showcase-visual-composer-addon/trunk/includes/vc-showcase.php
r1076226 r1076237 3 3 add_action( 'vc_before_init', 'showcase_vc_addon_function' ); 4 4 5 // Generate param type "number" 6 if ( function_exists('add_shortcode_param')) 7 { 8 add_shortcode_param( 'number', 'sc_number_field' ); 9 } 10 5 6 7 add_shortcode_param( 'number', 'sc_number_field' ); 11 8 // Function generate param type "number" 12 9 function sc_number_field($settings, $value) … … 24 21 25 22 // 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 23 add_shortcode_param( 'sc_title_separator', 'sc_title_separator_field' ); 31 24 function sc_title_separator_field( $settings, $value ) { 32 25 $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; … … 38 31 39 32 // Generate param type "custom_size" 40 if ( function_exists('add_shortcode_param')) 41 { 42 add_shortcode_param( 'custom_size', 'sc_custom_size' ); 43 } 44 33 add_shortcode_param( 'custom_size', 'sc_custom_size' ); 45 34 function sc_custom_size( $settings, $value ) { 46 35 $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
Note: See TracChangeset
for help on using the changeset viewer.