HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/scientificreligi/www/wp-content/plugins/auteur-framework/shortcodes/our-team/template.php
<?php
/**
 * Shortcode attributes
 * @var $atts
 * @var $layout_style
 * @var $image
 * @var $ourteam_name
 * @var $ourteam_position
 * @var $link
 * @var $socials
 * @var $css_animation
 * @var $animation_duration
 * @var $animation_delay
 * @var $el_class
 * @var $css
 * @var $responsive
 * Shortcode class
 * @var $this WPBakeryShortCode_GSF_Our_Team
 */
$layout_style = $image = $ourteam_name = $ourteam_position = $link = $socials = $css_animation = $animation_duration = $animation_delay = $el_class = $css = $responsive = '';
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
extract($atts);

$socials = (array)vc_param_group_parse_atts($socials);

$wrapper_classes = array(
    'gsf-our-team',
    'clearfix',
    $layout_style,
    G5P()->core()->vc()->customize()->getExtraClass($el_class),
    $this->getCSSAnimation($css_animation),
    vc_shortcode_custom_css_class($css),
    $responsive
);

if ('' !== $css_animation && 'none' !== $css_animation) {
    $animation_class = G5P()->core()->vc()->customize()->get_animation_class($animation_duration, $animation_delay);
    $wrapper_classes[] = $animation_class;
}

// get image src
$image_src = '';
if (!empty($image)) {
    $image_id = preg_replace('/[^\d]/', '', $image);
    $width = 270;
    $height = 360;
    if ('style-1' === $layout_style) {
        $height = 270;
    }
    if ('style-2' === $layout_style) {
        $width = $height = 400;
    }
    $image_full = wpb_resize($image_id, null, $width, $height, true);
    if (is_array($image_full)  && isset($image_full['url'])) {
        $image_src = $image_full['url'];
    }
}

if (empty($image_src)) {
    $image_src = G5P()->pluginUrl('assets/images/placeholder.png');
}

//parse link
$link = ('||' === $link) ? '' : $link;
$link = vc_build_link($link);
$use_link = false;
if (strlen($link['url']) > 0) {
    $use_link = true;
    $a_href = $link['url'];
    $a_title = $link['title'];
    $a_target = $link['target'];
} else {
    $a_href = '#';
}
if (empty($a_target)) {
    $a_target = '_self';
}

$atts = vc_map_get_attributes($this->getShortcode(), $atts);
$class_to_filter = implode(' ', array_filter($wrapper_classes));
$class_to_filter .= vc_shortcode_custom_css_class($css, ' ');
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->getShortcode(), $atts);
?>
<div class="<?php echo esc_attr($css_class) ?>">
    <?php if (!empty($image_src)): ?>
        <div class="ourteam-thumb">
            <?php if ('style-2' !== $layout_style): ?>
                <?php if ($use_link): ?>
                    <a title="<?php echo esc_attr($ourteam_name); ?>" target="<?php echo esc_attr($a_target) ?>"
                       href="<?php echo esc_url($a_href); ?>"><i class="fal fa-sign-out"></i></a>
                <?php endif; ?>
            <?php endif; ?>
            <div class="ourteam-thumb-inner">
                <img alt="<?php echo esc_attr($ourteam_name); ?>" src="<?php echo esc_url($image_src) ?>">
            </div>
            <?php if ('style-2' === $layout_style): ?>
                <div class="ourteam-content">
                    <?php if (!empty($ourteam_name)): ?>
                        <h5 class="ourteam-name">
                            <?php if ($use_link): ?>
                                <a class="gsf-link transition03" title="<?php echo esc_attr($ourteam_name); ?>"
                                   target="<?php echo esc_attr($a_target) ?>"
                                   href="<?php echo esc_url($a_href); ?>"><?php echo esc_html($ourteam_name); ?></a>
                            <?php else: ?>
                                <?php echo esc_html($ourteam_name); ?>
                            <?php endif; ?>
                        </h5>
                    <?php endif; ?>
                    <div class="ourteam-meta">
                        <?php
                        if (!empty($ourteam_position)): ?>
                            <span class="ourteam-position"><?php echo wp_kses_post($ourteam_position); ?></span>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    <?php endif; ?>
    <?php if ('style-2' !== $layout_style):
        $ourteam_content_class = array(
            'ourteam-content'
        );
        if (!empty($ourteam_position) && !empty($socials)) {
            $ourteam_content_class[] = 'content-hover';
    }
        ?>
        <div class="<?php echo implode(' ', $ourteam_content_class) ?>">
            <?php if (!empty($ourteam_name)): ?>
                <h5 class="ourteam-name">
                    <?php if ($use_link): ?>
                        <a class="gsf-link transition03" title="<?php echo esc_attr($ourteam_name); ?>" target="<?php echo esc_attr($a_target) ?>"
                           href="<?php echo esc_url($a_href); ?>"><?php echo esc_html($ourteam_name); ?></a>
                    <?php else: ?>
                        <?php echo esc_html($ourteam_name); ?>
                    <?php endif; ?>
                </h5>
            <?php endif; ?>
            <div class="ourteam-meta">
                <?php
                if (!empty($ourteam_position)): ?>
                    <span class="ourteam-position"><?php echo wp_kses_post($ourteam_position); ?></span>
                <?php endif; ?>
                <?php if (!empty($socials)): ?>
                    <div class="ourteam-socials">
                        <?php G5P()->helper()->getTemplate('shortcodes/our-team/socials', array('socials' => $socials)); ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>
</div>