File: /home/carrerup/.trash/techland/vc_templates/vc_row_inner.php
<?php
if (! defined('ABSPATH')) {
die('-1');
}
/**
* Shortcode attributes
* @var $atts
* @var $el_class
* @var $css
* @var $el_id
* @var $equal_height
* @var $content_placement
* @var $content - shortcode content
* Shortcode class
* @var $this WPBakeryShortCode_VC_Row_Inner
*/
$el_class = $equal_height = $content_placement = $css = $el_id = '';
//extra inner_row atts
$techland_lg_bgpos = $techland_lg_custom_bgpos = '';
$techland_md_bgpos = $techland_md_custom_bgpos = '';
$techland_sm_bgpos = $techland_sm_custom_bgpos = '';
$techland_xs_bgpos = $techland_xs_custom_bgpos = '';
$techland_md_hidebg = $techland_sm_hidebg = $techland_xs_hidebg = '';
$techland_md_css = $techland_sm_css = $techland_xs_css = '';
$techland_premartop = $techland_premarbot = $techland_prepadtop = $techland_prepadbot = '';
$ex_gradient_toggle = $techland_row_grad1 = $techland_row_grad2 = '';
$wrap_container = '';
$rtl_reverse = '';
//extra inner_row atts
$disable_element = '';
$output = $after_output = '';
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
extract($atts);
$el_class = $this->getExtraClass($el_class);
$css_classes = array(
'row',
$techland_prepadtop,
$techland_prepadbot,
$techland_premartop,
$techland_premarbot,
$el_class,
vc_shortcode_custom_css_class($css),
$rtl_reverse
);
if ('yes' === $techland_md_hidebg) {
$css_classes[] = 'md-bg-image-hide';
}
if ('yes' === $techland_sm_hidebg) {
$css_classes[] = 'sm-bg-image-hide';
}
if ('yes' === $techland_xs_hidebg) {
$css_classes[] = 'xs-image-hide';
}
if ('yes' === $disable_element) {
if (vc_is_page_editable()) {
$css_classes[] = 'vc_hidden-lg vc_hidden-xs vc_hidden-sm vc_hidden-md';
} else {
return '';
}
}
if (vc_shortcode_custom_css_has_property($css, array(
'border',
'background',
))) {
$css_classes[] = 'nt-has-fill';
}
if (! empty($atts['rtl_reverse'])) {
$css_classes[] = $rtl_reverse ;
}
if (! empty($content_placement)) {
$css_classes[] = $content_placement;
}
if (! empty($atts['content_lg_placement'])) {
$css_classes[] = $atts['content_lg_placement'];
}
if (! empty($atts['content_md_placement'])) {
$css_classes[] = $atts['content_md_placement'];
}
if (! empty($atts['content_sm_placement'])) {
$css_classes[] = $atts['content_sm_placement'];
}
// flexbox align items
if (! empty($atts['techland_align_items'])) {
$css_classes[] = $atts['techland_align_items'];
}
if (! empty($atts['techland_lg_align_items'])) {
$css_classes[] = $atts['techland_lg_align_items'];
}
if (! empty($atts['techland_md_align_items'])) {
$css_classes[] = $atts['techland_md_align_items'];
}
if (! empty($atts['techland_sm_align_items'])) {
$css_classes[] = $atts['techland_sm_align_items'];
}
if (! empty($atts['gap'])) {
$css_classes[] = 'column-gap-' . $atts['gap'];
}
$wrapper_attributes = array();
// build attributes for wrapper
if (! empty($el_id)) {
$wrapper_attributes[] = 'id="' . esc_attr($el_id) . '"';
}
//craete uniq class for row data css
$unique_class = 'row_1541'.mt_rand(5, 1000);
//add to custom css function
$techland_extra = array();
$techland_extra[] = $ex_gradient_toggle == 'yes' && $techland_row_grad1 && $techland_row_grad2 ? '.'.$unique_class.'{background: linear-gradient(90deg, '.$techland_row_grad1.' 0%, '.$techland_row_grad2.' 100%);}' : '';
if (function_exists('techland_vc_extra_css')) {
$css_classes[] = techland_vc_extra_css( $atts, $unique_class, $techland_extra, $bg_options=true ) ? $unique_class : '';
$wrapper_attributes[] = techland_vc_extra_css( $atts, $unique_class, $techland_extra, $bg_options=true );
}
$css_class = preg_replace('/\s+/', ' ', apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode(' ', array_filter(array_unique($css_classes))), $this->settings['base'], $atts));
$wrapper_attributes[] = 'class="' . esc_attr(trim($css_class)) . '"';
?>
<?php if ($wrap_container == 'yes') { ?>
<div class="container">
<?php } ?>
<div <?php echo implode(' ', $wrapper_attributes); ?>>
<?php echo wpb_js_remove_wpautop($content);?>
</div>
<?php if ($wrap_container == 'yes') { ?>
</div>
<?php } ?>