| Server IP : 68.178.247.200 / Your IP : 216.73.216.14 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/www/wp-content/plugins/js_composer/include/templates/shortcodes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* @var $width
* @var $align
* @var $css
* @var $el_class
* @var $featured_image
* @var $img_size
* @var $content - shortcode content
* Shortcode class
* @var $this WPBakeryShortCode_VC_Gitem_Col
*/
$width = $align = $css = $el_class = $featured_image = $img_size = '';
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );
// TODO: Note that vc_map_get_attributes doesnt return align so it should be checked in next bug fix
$style = '';
$width = wpb_translateColumnWidthToSpan( $width );
$css_class = $width
. ( strlen( $el_class ) ? ' ' . $el_class : '' )
. ' vc_gitem-col vc_gitem-col-align-' . $align
. vc_shortcode_custom_css_class( $css, ' ' );
if ( 'yes' === $featured_image ) {
$style = '{{ post_image_background_image_css' . ':' . $img_size . ' }}';
}
echo '<div class="' . $css_class . '"'
. ( strlen( $style ) > 0 ? ' style="' . $style . '"' : '' )
. '>'
. do_shortcode( $content )
. '</div>';