1:   2:   3:   4:   5:   6:   7:   8:   9:  10:  11:  12:  13:  14:  15:  16:  17:  18:  19:  20:  21:  22:  23:  24:  25:  26:  27:  28:  29:  30:  31:  32:  33:  34:  35:  36:  37:  38:  39:  40:  41:  42:  43:  44:  45:  46:  47:  48:  49:  50:  51:  52:  53:  54:  55:  56:  57:  58:  59:  60:  61:  62:  63:  64:  65:  66:  67:  68:  69:  70:  71:  72:  73:  74:  75:  76:  77:  78:  79:  80:  81:  82:  83:  84:  85:  86:  87:  88:  89:  90:  91:  92:  93:  94:  95:  96:  97:  98:  99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 
<?php
    $shortcodes_config['columns'] = array(
        'no_preview' => true,
        'options' => array(
            'gutter' => array(
                'name' => __('Gutter Width', 'inbound-pro' ),
                'desc' => __('A space between the columns.', 'inbound-pro' ),
                'type' => 'select',
                'options' => array(
                    '20' => '20px',
                    '30' => '30px'
                ),
                'std' => ''
            ),
            'set' => array(
                'name' => __('Column Set', 'inbound-pro' ),
                'desc' => __('Select the set.', 'inbound-pro' ),
                'type' => 'select',
                'options' => array(
                    '[one_full]Content goes here[/one_full]' => '1/1',
                    '[one_half]Content goes here[/one_half][one_half]Content goes here[/one_half]' => '1/2 + 1/2',
                    '[one_third]Content goes here[/one_third][one_third]Content goes here[/one_third][one_third]Content goes here[/one_third]' => '1/3 + 1/3 + 1/3',
                    '[two_third]Content goes here[/two_third][one_third]Content goes here[/one_third]' => '2/3 + 1/3',
                    '[one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth]' => '1/4 + 1/4 + 1/4 + 1/4',
                    '[one_half]Content goes here[/one_half][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth]' => '1/2 + 1/4 + 1/4',
                    '[three_fourth]Content goes here[/three_fourth][one_fourth]Content goes here[/one_fourth]' => '3/4 + 1/4',
                    '[one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '1/5 + 1/5 + 1/5 + 1/5 + 1/5',
                    '[two_fifth]Content goes here[/two_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '2/5 + 1/5 + 1/5 + 1/5',
                    '[three_fifth]Content goes here[/three_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '3/5 + 1/5 + 1/5',
                    '[four_fifth]Content goes here[/four_fifth][one_fifth]Content goes here[/one_fifth]' => '4/5 + 1/5',
                ),
                'std' => ''
            )
        ),
        'shortcode' => '[columns gutter="{{gutter}}"]{{set}}[/columns]',
        'popup_title' => 'Insert Column Shortcode'
    );
    $freshbuilder_modules['column'] = array(
        'name' => __('Column', 'inbound-pro' ),
        'size' => 'one_fifth',
        'options' => array(
            'content' => array(
                'name' => __('Column Content', 'inbound-pro' ),
                'desc' => __('Enter the column content', 'inbound-pro' ),
                'type' => 'textarea',
                'std' => '',
                'class' => 'wide',
                'is_content' => '1'
            )
        )
    );
 
if ( !defined('INBOUND_DISABLE_COLUMN_SHORTCODES') ) {
    
    if (!function_exists('inbound_shortcode_columns')  && !shortcode_exists('columns') ) {
        function inbound_shortcode_columns( $atts, $content = null ) {
            extract(shortcode_atts(array(
                'gutter' => '20'
            ), $atts));
            if( $gutter == '30') {
                $gutter = 'inbound-row_30';
            } else {
                $gutter = 'inbound-row';
            }
            $content = preg_replace('/<br class=\'inbr\'.*\/>/', '', $content); 
            return '<div class="'. $gutter .'">' . do_shortcode($content) . '</div>';
        }
        add_shortcode('columns', 'inbound_shortcode_columns');
    }
    
    
    if (!function_exists('inbound_shortcode_full_columns') && !shortcode_exists('one_full') ) {
        function inbound_shortcode_full_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid full">' . do_shortcode($content) . '</div>';
        }
        add_shortcode('one_full', 'inbound_shortcode_full_columns');
    }
    
    if (!function_exists('inbound_shortcode_one_half_columns') && !shortcode_exists('one_half')) {
        function inbound_shortcode_one_half_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid one-half">' . do_shortcode($content) . '</div>';
        }
        add_shortcode('one_half', 'inbound_shortcode_one_half_columns');
    }
    
    
    if (!function_exists('inbound_shortcode_one_third_columns') && !shortcode_exists('one_third') ) {
        function inbound_shortcode_one_third_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid one-third">' . do_shortcode($content) . '</div>';
        }
        add_shortcode('one_third', 'inbound_shortcode_one_third_columns');
    }
    
    if (!function_exists('inbound_shortcode_two_third_columns')) {
        function inbound_shortcode_two_third_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid two-third">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('two_third', 'inbound_shortcode_two_third_columns');
    
    if (!function_exists('inbound_shortcode_one_fourth_columns')) {
        function inbound_shortcode_one_fourth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid one-fourth">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('one_fourth', 'inbound_shortcode_one_fourth_columns');
    
    if (!function_exists('inbound_shortcode_three_fourth_columns')) {
        function inbound_shortcode_three_fourth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid three-fourth">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('three_fourth', 'inbound_shortcode_three_fourth_columns');
    
    if (!function_exists('inbound_shortcode_one_fifth_columns')) {
        function inbound_shortcode_one_fifth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-grid one-fifth">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('one_fifth', 'inbound_shortcode_one_fifth_columns');
    
    if (!function_exists('inbound_shortcode_two_fifth_columns')) {
        function inbound_shortcode_two_fifth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-inbound-grid two-fifth">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('two_fifth', 'inbound_shortcode_two_fifth_columns');
    
    if (!function_exists('inbound_shortcode_three_fifth_columns')) {
        function inbound_shortcode_three_fifth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-inbound-grid three-fifth">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('three_fifth', 'inbound_shortcode_three_fifth_columns');
    
    if (!function_exists('inbound_shortcode_four_fifth_columns')) {
        function inbound_shortcode_four_fifth_columns( $atts, $content = null ) {
            $content = preg_replace('/<br class="inbr".\/>/', '', $content); 
            return '<div class="inbound-inbound-grid three-four">' . do_shortcode($content) . '</div>';
        }
    }
    add_shortcode('three_four', 'inbound_shortcode_four_fifth_columns');
}