-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-link.php
45 lines (40 loc) · 1.33 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
40
41
42
43
44
45
<?php
/**
* @package Daniela
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php daniela_post_thumbnail(); ?>
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php daniela_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( is_single() ) :
the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( daniela_get_link_url() ) ), '</a></h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( daniela_get_link_url() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', '_s' ), array( 'span' => array( 'class' => array() ) ) ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
) );
?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'daniela' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php daniela_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->