403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/themes/eduma/inc/widgets/multiple-images/tpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/themes/eduma/inc/widgets/multiple-images/tpl/base.php
<?php
$link_before = $after_link = $image = $class = '';
if ( ! empty( $instance['image'] ) ) {
	if ( ! empty( $instance['link_target'] ) ) {
		$t = 'target="' . $instance['link_target'] . '"';
	} else {
		$t = '';
	}

	$columns = ! empty( $instance['column'] ) ? $instance['column'] : 1;

	switch ( $columns ) {
		case 1:
			$class = 'col-sm-12';
			break;
		case 2:
			$class = 'col-sm-6';
			break;
		case 3:
			$class = 'col-sm-4';
			break;
		case 4:
			$class = 'col-sm-3';
			break;
		case 5:
			$class = 'thim-col-5';
			break;

		default:
			$class = 'col-sm-12';
	}
 	if ( ! is_array( $instance['image'] ) ) {
		$img_id = explode( ",", $instance['image'] );
	} else {
		$img_id = $instance['image'];
	}
  	if ( $instance['image_link'] ) {
		$img_url = explode( ",", $instance['image_link'] );
	}
 	if ( ! empty( $instance['title'] ) ) {
		echo ent2ncr( $args['before_title'] . $instance['title'] . $args['after_title'] );
	}

	echo '<div class="thim-multiple-images-wrapper row">';
	$i = 0;
	foreach ( $img_id as $id ) {
		$src = wp_get_attachment_image_src( $id, $instance['image_size'] );
		$alt = get_post_meta( $id, '_wp_attachment_image_alt', true ) ? get_post_meta( $id, '_wp_attachment_image_alt', true ) : '';

		if ( $src ) {
			$image = '<img src ="' . esc_url( $src['0'] ) . '" width="' . $src[1] . '"  height="' . $src[2] . '" alt="' . $alt . '"/>';
		}
		if ( $instance['image_link'] && isset( $img_url[ $i ] ) ) {
 			$link_before = '<a ' . $t . ' href="' . esc_url( $img_url[ $i ] ) . '">';
			$after_link  = "</a>";
		}
		echo '<div class="' . $class . '">' . $link_before . $image . $after_link . "</div>";
		$i ++;
	}
	echo "</div>";
}

Youez - 2016 - github.com/yon3zu
LinuXploit