HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpamazingsecret/wp-content/themes/porto/content-post-item-small.php
<?php
global $porto_settings;

$featured_images = porto_get_featured_images();
$show_date       = isset( $porto_settings['post-metas'] ) && in_array( 'date', $porto_settings['post-metas'] );
$tag             = isset( $title_tag ) ? $title_tag : 'h5';
?>
<div class="<?php echo isset( $post_item_class ) ? esc_attr( $post_item_class ) : 'post-item-small'; ?>">
	<?php
	if ( count( $featured_images ) ) :
		$attachment_id    = $featured_images[0]['attachment_id'];
		$attachment_thumb = porto_get_attachment( $attachment_id, isset( $image_size ) ? $image_size : 'widget-thumb-medium' );
		?>
		<div class="post-image img-thumbnail">
			<a href="<?php the_permalink(); ?>" aria-label="post">
				<img width="<?php echo esc_attr( $attachment_thumb['width'] ); ?>" height="<?php echo esc_attr( $attachment_thumb['height'] ); ?>" src="<?php echo esc_url( $attachment_thumb['src'] ); ?>" alt="<?php echo esc_attr( $attachment_thumb['alt'] ); ?>" />
			</a>
		</div>
	<?php endif; ?>
	<div class="post-item-content">
		<?php if ( ! isset( $show_cats ) && $show_date && isset( $meta_first ) ) : ?>
			<span class="post-date"><?php echo get_the_date(); ?></span>
		<?php endif; ?>
		<?php
		if ( isset( $show_cats ) ) {
			echo '<span class="meta-cats">' . get_the_category_list( ' ' ) . '</span>';
		}
		?>
		<<?php echo esc_html( $tag ); ?> class="post-item-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></<?php echo esc_html( $tag ); ?>>
		<?php if ( ! isset( $show_cats ) && $show_date && ! isset( $meta_first ) ) : ?>
			<span class="post-date"><?php echo get_the_date(); ?></span>
		<?php endif; ?>
	</div>
</div>