Plugin Directory

Changeset 1076239


Ignore:
Timestamp:
01/26/2015 08:39:23 PM (11 years ago)
Author:
chrdesigner
Message:

file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • showcase-visual-composer-addon/trunk/includes/vc-showcase.php

    r1076237 r1076239  
    33add_action( 'vc_before_init', 'showcase_vc_addon_function' );
    44
    5 
    6 
    75add_shortcode_param( 'number', 'sc_number_field' );
    8 // Function generate param type "number"
    96function sc_number_field($settings, $value)
    107{
     
    1613    $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
    1714    $class = isset($settings['class']) ? $settings['class'] : '';
    18     $output = '<input type="number" min="'.$min.'" max="'.$max.'" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="'.$value.'" style="max-width:100px; margin-right: 10px;" />'.$suffix;
     15    $output .= '<input type="number" min="'.$min.'" max="'.$max.'" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="'.$value.'" style="max-width:100px; margin-right: 10px;" />'.$suffix;
    1916    return $output;
    2017}
    2118
    22 // Generate param type "sc_title_separator"
    2319add_shortcode_param( 'sc_title_separator', 'sc_title_separator_field' );
    2420function sc_title_separator_field( $settings, $value ) {
     
    2622    $type = isset($settings['type']) ? $settings['type'] : '';
    2723    $class = isset($settings['class']) ? $settings['class'] : '';
    28     $output = '<h4 class="wpb-textinput wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '">&bull; '. $value .'</h4>';
     24    $output .= '<h4 class="wpb-textinput wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '">&bull; '. $value .'</h4>';
    2925    return $output;
    3026}
    3127
    32 // Generate param type "custom_size"
    3328add_shortcode_param( 'custom_size', 'sc_custom_size' );
    3429function sc_custom_size( $settings, $value ) {
     
    5045}
    5146
    52 
    5347function showcase_vc_addon_function() {
    5448
Note: See TracChangeset for help on using the changeset viewer.