HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/wp-content/themes/eduma/inc/widgets/landing-image/tpl/base.php
<?php

$title  = $instance['title'] ? $instance['title'] : '';
$link   = $instance['link'] ? $instance['link'] : '';
$target = $instance['link_target'] ? $instance['link_target'] : '_blank';

$src = wp_get_attachment_image_src( $instance['image'], 'full' );

if ( empty( $src ) ) {
	return;
}

?>
<div class="landing-image">
	<?php if ( $link != '' ): ?>
	<a class="image-link" href="<?php echo esc_attr( $link ); ?>" target="<?php echo esc_attr( $target ); ?>">
		<?php endif; ?>
		<div class="image" style="background-image: url('<?php echo esc_attr( $src[0] ); ?>')"></div>

		<?php if ( $link != '' ): ?>
	</a>
<?php endif; ?>
	<?php if ( $title != '' ): ?>
		<h3 class="title">
			<?php if ( $link != '' ): ?>
			<a href="<?php echo esc_attr( $link ); ?>" target="<?php echo esc_attr( $target ); ?>">
				<?php endif; ?>
				<?php echo esc_html( $title ); ?>
				<?php if ( $link != '' ): ?>
			</a>
		<?php endif; ?>
		</h3>
	<?php endif; ?>
</div>