| Server IP : 217.160.0.251 / Your IP : 216.73.216.183 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u94981163 ( 8991765) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/15/d754908516/htdocs/wp-content/themes/_est-project/templates/ |
Upload File : |
<?php
/**
* @file content-post-archive.php
* Archive single template.
*/
?>
<?php $post_thumbnail = get_the_post_thumbnail();?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ):?>
<a class="archive__img" href="<?php echo esc_url( get_permalink() ); ?>"
rel="bookmark">
<?php if ( !empty( $post_thumbnail ) ):?>
<?php the_post_thumbnail( 'posts-archive' ); ?>
<?php else:?>
<img src="<?php echo ES_PROJECT_URL . 'assets/images/no-image.jpg';?>" alt="<?php _e( 'No Image', 'es-project' );?>" title="<?php _e( 'No Image', 'es-project' );?>"/>
<?php endif;?>
</a>
<?php endif;?>
<div class="archive__content">
<a class="title" href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title( ); ?></a>
<div class="post-date">
<p><?php echo get_the_date( 'D d M Y' ) . ' ' . __( 'at', 'es-project') . ' ' . get_the_time( 'H:i' ); ?></p>
</div>
<div class="archive__text">
<?php the_excerpt(); ?>
</div>
<a class="more" href="<?php echo esc_url( get_permalink() ); ?>"><?php _e( 'Learn more', 'es-project' );?></a>
</div>
</article>