????
Current Path : /home2/morganrand/.trash/js_composer/include/templates/shortcodes/ |
Current File : /home2/morganrand/.trash/js_composer/include/templates/shortcodes/vc_basic_grid.php |
<?php /** * Shortcode attributes * @var $atts array * @var $content - shortcode content * Shortcode class * @var $this WPBakeryShortCode_VC_Basic_Grid */ $css = $el_class = ''; $isotope_options = $posts = $filter_terms = array(); $this->buildAtts( $atts, $content ); $css = isset( $atts['css'] ) ? $atts['css'] : ''; $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : ''; $class_to_filter = 'vc_grid-container vc_clearfix wpb_content_element ' . $this->shortcode; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); wp_enqueue_script( 'prettyphoto' ); wp_enqueue_style( 'prettyphoto' ); $this->buildGridSettings(); if ( isset( $this->atts['style'] ) && 'pagination' === $this->atts['style'] ) { wp_enqueue_script( 'twbs-pagination' ); } $this->enqueueScripts(); ?><!-- vc_grid start --> <div class="vc_grid-container-wrapper vc_clearfix"> <div class="<?php echo esc_attr( $css_class ) ?>" data-vc-<?php echo esc_attr( $this->pagable_type ); ?>-settings="<?php echo esc_attr( json_encode( $this->grid_settings ) ); ?>" data-vc-request="<?php echo esc_attr( admin_url( 'admin-ajax.php', 'relative' ) ); ?>" data-vc-post-id="<?php echo esc_attr( get_the_ID() ); ?>"> </div> </div><!-- vc_grid end -->