Example #1
0
    case '3/4':
        $shortcode_column = '3-4';
        break;
    case '5/6':
        $shortcode_column = '5-6';
        break;
    case '11/12':
        $shortcode_column = '11-12';
        break;
    case '1/1':
    default:
        $shortcode_column = '1';
        break;
}
$css_custom = grve_vc_shortcode_custom_css_class($css, '');
$style = grve_build_shortcode_style('', $font_color);
$column_classes = array('wpb_column');
array_push($column_classes, 'grve-column-' . $shortcode_column);
if (!empty($css_custom)) {
    array_push($column_classes, $css_custom);
}
if (vc_settings()->get('not_responsive_css') != '1') {
    if (!empty($desktop_hide)) {
        array_push($column_classes, 'grve-desktop-column-' . $desktop_hide);
    }
    if (!empty($tablet_width)) {
        array_push($column_classes, 'grve-tablet-column-' . $tablet_width);
    }
    if (!empty($tablet_sm_width)) {
        if (!empty($tablet_width)) {
            array_push($column_classes, 'grve-tablet-sm-column-' . $tablet_sm_width);
Example #2
0
<?php

$output = $img_class = $el_class = $el_id_string = $section_id_string = $out_overlay = $out_image_bg = $out_video_bg = '';
extract(shortcode_atts(array('section_id' => '', 'font_color' => '', 'heading_color' => '', 'section_title' => '', 'section_type' => 'fullwidth-background', 'section_full_height' => 'no', 'flex_height' => '', 'desktop_visibility' => '', 'tablet_visibility' => '', 'tablet_sm_visibility' => '', 'mobile_visibility' => '', 'bg_color' => '', 'bg_type' => '', 'bg_image' => '', 'bg_image_type' => 'none', 'pattern_overlay' => '', 'color_overlay' => '', 'opacity_overlay' => '', 'bg_video_webm' => '', 'bg_video_mp4' => '', 'bg_video_ogv' => '', 'padding_top' => '', 'padding_bottom' => '', 'margin_bottom' => '', 'header_feature' => '', 'footer_feature' => '', 'el_class' => '', 'el_id' => '', 'css' => ''), $atts));
if (!empty($el_id)) {
    $el_id_string = 'id="' . esc_attr($el_id) . '"';
}
if ('vc_row' == $this->shortcode) {
    if (!empty($section_id)) {
        $section_id_string = 'id="' . esc_attr($section_id) . '"';
    }
    $section_data = 'data-section-title="' . esc_attr($section_title) . '" data-section-type="' . esc_attr($section_type) . '" data-image-type="' . esc_attr($bg_image_type) . '" data-full-height="' . esc_attr($section_full_height) . '"';
    //Section Style
    $style = grve_build_shortcode_style($bg_color, $font_color, $padding_top, $padding_bottom, $margin_bottom);
    //Section Classses
    $section_classes = array('grve-section');
    if (!empty($heading_color)) {
        array_push($section_classes, 'grve-' . $heading_color);
    }
    if (!empty($header_feature)) {
        array_push($section_classes, 'grve-feature-header');
    }
    if (!empty($footer_feature)) {
        array_push($section_classes, 'grve-feature-footer');
    }
    if (!empty($flex_height)) {
        array_push($section_classes, 'grve-flex-row');
    }
    if (!empty($el_class)) {
        array_push($section_classes, $el_class);
    }