forked from strangerstudios/memberlite-words
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
40 lines (38 loc) · 1.26 KB
/
content.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
<?php
/**
* @package Memberlite
*/
global $memberlite_defaults;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php echo memberlite_get_entry_meta($post, 'before'); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
$content_archives = get_theme_mod('content_archives');
if($content_archives == 'excerpt')
the_excerpt();
else
the_content();
?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'memberlite' ),
'after' => '</div>',
) );
?>
<div class="clear"></div>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php if ( 'post' == get_post_type() ) : // Hide meta text for pages on Search ?>
<?php echo memberlite_get_entry_meta($post, 'after'); ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php edit_post_link( __( 'Edit', 'memberlite' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->