<?php if ( ! defined( 'ABSPATH' ) ) {
	die( 'Direct access forbidden.' );
}
/**
 * Widget Portfolio - title item layout
 */

//wrapping in div for carousel layout
?>
<div class="widget_portfolio-item">
	<div class="vertical-item gallery-title-item content-absolute">
		<div class="item-media">
			<?php
			$full_image_src = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
			if( function_exists( 'enginx_post_thumbnail' ) ) {
				enginx_post_thumbnail();
			} else {
				the_post_thumbnail();
			}
			?>
			<div class="media-links">
				<div class="links-wrap">
					<a class="link-zoom photoswipe-link"
					   href="<?php echo esc_attr( $full_image_src ); ?>"></a>
				</div>
			</div>
		</div>
	</div>
	<div class="mt-15 text-center">
		<h6>
			<a href="<?php the_permalink(); ?>">
				<?php the_title(); ?>
			</a>
		</h6>
		<?php
			enginx_the_categories( array(
				'items_separator' => ' ',
		) );
			?>
	</div><!-- eof vertical-item -->
</div><!-- eof widget item -->