GhostManSec
Server: Apache
System: Linux webm019.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: exhehbu (1008962)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/x/h/exhehbu/wp/wp-content/themes/revolution/vc_templates/thb_clients.php
<?php function thb_clients( $atts, $content = null ) {
	global $thb_columns, $thb_border_color, $thb_style, $thb_clients_animation, $retina;
	$atts = vc_map_get_attributes( 'thb_clients', $atts );
	extract( $atts );

	if ( ! $image ) {
		return;
	}
	$image = wpb_getImageBySize(
		array(
			'attach_id'  => $image,
			'thumb_size' => 'full',
			'class'      => $retina,
		)
	);

	$link     = vc_build_link( $link );
	$link_to  = $link['url'];
	$a_title  = $link['title'];
	$a_target = $link['target'] ? $link['target'] : '_self';

	if ( $link['url'] ) {
		$el_class[] = 'has-link';
	}

	$el_class[] = 'thb-client';
	if ( 'slick' !== $thb_style ) {
		$el_class[] = $thb_columns;
	}
	$el_class[] = 'columns';
	$el_class[] = $thb_clients_animation;
	$out        = '';
	ob_start();

	?>
	<div class="<?php echo esc_attr( implode( ' ', $el_class ) ); ?>" style="border-color: <?php echo esc_attr( $thb_border_color ); ?>">
		<?php if ( in_array( $thb_style, array( 'style4' ), true ) ) { ?>
			<div class="style4-container">
			<?php if ( $link_to ) { ?>
		<a href="<?php echo esc_url( $link_to ); ?>" target="<?php echo esc_attr( $a_target ); ?>"><?php echo $image['thumbnail']; ?></a>
			<?php } else { ?>
				<?php echo $image['thumbnail']; ?>
			<?php } ?>
			<?php
			if ( $a_title ) {
				?>
				<h5 class="client-title"><?php echo esc_html( $a_title ); ?></h5><?php } ?>
	</div>
			<?php if ( in_array( $thb_style, array( 'style4' ), true ) ) { ?>
			<div class="accent-color"></div>
				<?php
				if ( $link_to ) {
					?>
					<a href="<?php echo esc_url( $link_to ); ?>" target="<?php echo esc_attr( $a_target ); ?>" class="button"><?php esc_html_e( 'Learn More', 'revolution' ); ?></a><?php } ?>
	<?php } ?>
		<?php } elseif ( in_array( $thb_style, array( 'style3' ), true ) ) { ?>
			<?php if ( $link_to ) { ?>
				<a href="<?php echo esc_url( $link_to ); ?>" target="<?php echo esc_attr( $a_target ); ?>"><?php echo $image['thumbnail']; ?></a>
			<?php } else { ?>
				<?php echo $image['thumbnail']; ?>
			<?php } ?>
			<?php
			if ( $a_title ) {
				?>
				<span class="client-title"><?php echo esc_html( $a_title ); ?></span><?php } ?>
		<?php } else { ?>
			<?php if ( $link_to ) { ?>
				<a href="<?php echo esc_url( $link_to ); ?>" target="<?php echo esc_attr( $a_target ); ?>"><?php echo $image['thumbnail']; ?></a>
			<?php } else { ?>
				<?php echo $image['thumbnail']; ?>
			<?php } ?>
		<?php } ?>

	</div>
	<?php
	$out = ob_get_clean();
	return $out;
}
thb_add_short( 'thb_clients', 'thb_clients' );