HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/peakshops-plugin/inc/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 );

	$thb_class = $retina;

	if ( ! $image ){
		return;
	}

	if ( 'thb-carousel' === $thb_style ) {
		$thb_class .= 'thb-ignore-lazyload';
	}
	$image = wpb_getImageBySize( array( 'attach_id' => $image, 'thumb_size' => 'full', 'class' => $thb_class ) );

	$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 ( $thb_style !== 'thb-carousel' ) {
	$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'))) { ?>
		  <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'))) { ?>
		    <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', 'peakshops' ); ?></a><?php } ?>
		  <?php } ?>
		<?php } elseif ( in_array( $thb_style, array('style3'))) { ?>
			<?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');