-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-link.php
39 lines (32 loc) · 1.12 KB
/
content-link.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* The template for displaying the link 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(); ?>>
<?php if ( has_post_thumbnail() ) { ?>
<aside class="entry-thumbnail">
<a href="<?php echo esc_url( hivelite_get_post_format_link_url() ); ?>" title="<?php echo get_the_title(); ?>" rel="bookmark">
<?php the_post_thumbnail( 'hive-masonry-image' ) ?>
<div class="article__featured-image-meta">
<div class="flexbox">
<div class="flexbox__item">
<i class="fa fa-link"></i>
</div>
</div>
</div>
</a>
</aside>
<?php } else { ?>
<header class="entry-header">
<?php the_title( sprintf( '<a href="%s" class="entry-permalink" rel="bookmark"><h1 class="entry-title">', esc_url( hivelite_get_post_format_link_url() ) ), '</h1></a>' ); ?>
</header><!-- .entry-header -->
<?php
}
edit_post_link( esc_html__( 'Edit', 'hive-lite' ), '<div class="edit-link">', '</div>' ); ?>
<?php get_template_part( 'content-footer' ); ?>
</article><!-- #post-## -->