-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontent-page.php
59 lines (39 loc) · 1.67 KB
/
content-page.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* @package whimsy-framework
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php whimsy_post_meta_before(); ?>
<div class="entry-meta">
<?php whimsy_post_meta_inside(); ?>
<?php
$whimsy_framework_hide_page_title = get_theme_mod( 'whimsy_framework_hide_page_title' );
$whimsy_framework_hide_page_title_link = get_theme_mod( 'whimsy_framework_hide_page_title_link' );
if( $whimsy_framework_hide_page_title == 1 ) : ?>
<?php elseif( $whimsy_framework_hide_page_title_link == 1 || $whimsy_framework_hide_page_title == 0 && $whimsy_framework_hide_page_title_link == 1 ) : ?>
<div class="entry-meta">
<?php whimsy_post_meta_inside(); ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</div>
<!-- Don't show post meta for links -->
<?php else : ?>
<div class="entry-meta">
<?php whimsy_post_meta_inside(); ?>
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
</div>
<?php endif; ?>
</div>
<?php whimsy_post_meta_after(); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'whimsy-framework' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'whimsy-framework' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->