Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/skins/default/templates/related-posts-list.php
<?php
/**
 * The template 'Style 4' to displaying related posts
 *
 * @package GLOBALLOGISTICS
 * @since GLOBALLOGISTICS 1.0.54
 */

$globallogistics_link        = get_permalink();
$globallogistics_post_format = get_post_format();
$globallogistics_post_format = empty( $globallogistics_post_format ) ? 'standard' : str_replace( 'post-format-', '', $globallogistics_post_format );

?><div id="post-<?php the_ID(); ?>" <?php post_class( 'related_item post_format_' . esc_attr( $globallogistics_post_format ) ); ?> data-post-id="<?php the_ID(); ?>">
	<div class="post_header entry-header">
		<h6 class="post_title entry-title"><a href="<?php echo esc_url( $globallogistics_link ); ?>"><?php
			if ( '' == get_the_title() ) {
				esc_html_e( '- No title -', 'globallogistics' );
			} else {
				the_title();
			}
		?></a></h6>
		<?php
		if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
			?>
			<div class="post_meta">
				<a href="<?php echo esc_url( $globallogistics_link ); ?>" class="post_meta_item post_date"><span class="icon-clock"></span><?php echo wp_kses_data( globallogistics_get_date() ); ?></a>
			</div>
			<?php
		}
		?>
	</div>
</div>