mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 18:41:07 +01:00
34 lines
973 B
PHP
34 lines
973 B
PHP
<?php
|
|
/**
|
|
* The template for displaying the image post format on archives.
|
|
* @package Hive Lite 1.1.6
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<div class="hover__handler">
|
|
<aside class="entry-thumbnail">
|
|
<?php
|
|
if ( has_post_thumbnail() ) {
|
|
the_post_thumbnail( 'hive-masonry-image' );
|
|
} else { // we need to search in the content for an image - maybe we find one
|
|
$first_image = hivelite_get_post_format_first_image();
|
|
if ( ! empty( $first_image ) ) {
|
|
echo $first_image;
|
|
}
|
|
}
|
|
|
|
get_template_part( 'templates/featured-hover' ); ?>
|
|
</aside>
|
|
<?php the_title( sprintf( '<a class="entry-permalink" href="%s" rel="bookmark"><h1 class="entry-title">', esc_url( get_permalink() ) ), '</h1></a>' ); ?>
|
|
</div>
|
|
|
|
<?php edit_post_link( esc_html__( 'Edit', 'hive-lite' ), '<div class="edit-link">', '</div>' ); ?>
|
|
|
|
</article><!-- #post-## -->
|