<?php

/** @var $this WPBakeryShortCode_VC_Row */

$output = $el_class = $bg_image = $bg_color = $bg_image_repeat = $font_color = $padding = $margin_bottom = $css = $full_width = $el_id = $parallax_image = $parallax = '';

extract( shortcode_atts( array(

    'el_class' => '',

    'bg_image' => '',

    'bg_color' => '',

    'bg_image_repeat' => '',

    'font_color' => '',

    'padding' => '',

    'margin_bottom' => '',

    'fullwidth'=>'no',

    'parallax' => false,

    'parallax_image' => false,

    'css' => '',

    'el_id' => '',

    'ses_title'=>'',

), $atts ) );

$parallax_image_id = '';

$parallax_image_src = '';



// wp_enqueue_style( 'js_composer_front' );

wp_enqueue_script( 'wpb_composer_front_js' );

// wp_enqueue_style('js_composer_custom_css');



$el_class = $this->getExtraClass( $el_class );



$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, '' . ( $this->settings( 'base' ) === 'vc_row_inner' ? 'vc_inner ' : '' ) . get_row_css_class() . $el_class . vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );



$style = $this->buildStyle( $bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom );

if($fullwidth == 'yes'){$no_padd = ' no-padd';}

?>

    <section <?php echo isset( $el_id ) && ! empty( $el_id ) ? "id='" . esc_attr( $el_id ) . "'" : ""; ?> <?php

?>class="bg-fixed <?php echo esc_attr( $no_padd ); ?><?php echo esc_attr( $css_class ); ?><?php if ( ! empty( $parallax ) ): echo ' vc_general vc_parallax vc_parallax-' . $parallax; endif; ?><?php if ( ! empty( $parallax ) && strpos( $parallax, 'fade' ) ): echo ' js-vc_parallax-o-fade'; endif; ?><?php if ( ! empty( $parallax ) && strpos( $parallax, 'fixed' ) ): echo ' js-vc_parallax-o-fixed'; endif; ?>"

<?php

// parallax bg values



$bgSpeed = 1.5;

?>

<?php

if ( $parallax ) {

    wp_enqueue_script( 'vc_jquery_skrollr_js' );



    echo '

            data-vc-parallax="' . $bgSpeed . '"

        ';

}

if ( strpos( $parallax, 'fade' ) ) {

    echo '

            data-vc-parallax-o-fade="on"

        ';

}

if ( $parallax_image ) {

    $parallax_image_id = preg_replace( '/[^\d]/', '', $parallax_image );

    $parallax_image_src = wp_get_attachment_image_src( $parallax_image_id, 'full' );

    if ( ! empty( $parallax_image_src[0] ) ) {

        $parallax_image_src = $parallax_image_src[0];

    }

    echo '

                data-vc-parallax-image="' . $parallax_image_src . '"

            ';

}

?>

<?php echo esc_attr($style); ?>><?php

if($fullwidth != 'yes'){

    echo '<div class="container">';

}

?>

<?php echo '<div class="row">'.wpb_js_remove_wpautop( $content ).'</div>'; ?>

<?php 

if($fullwidth != 'yes'){

    echo '</div>';

}

?></section><?php echo esc_attr($this->endBlockComment( 'row' ));



