-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-link.php
39 lines (29 loc) · 1.13 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 Silk Lite
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header entry-header--card">
<?php if ( ! has_post_thumbnail() ) {
/* translators: %s: The post URL. */
the_title( sprintf( '<h2 class="entry-title entry-title--card"><a href="%s" rel="bookmark"><span class="link__text">', esc_url( silklite_get_post_format_link_url() ) ), '</span> <i class="link__icon fa fa-external-link"></i></a></h2>' );
} ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php silklite_get_post_format_link_url(); ?>" class="entry-featured entry-thumbnail">
<?php the_post_thumbnail( silklite_get_thumbnail_size() ); ?>
<div class="entry-image-border"></div>
</a>
<?php } ?>
<span class="separator separator-wrapper--accent">
<?php get_template_part( 'assets/svg/separator-simple' ); ?>
</span>
</div><!-- .entry-content -->
</article><!-- #post-## -->