forked from pacethemes/quest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-page.php
52 lines (42 loc) · 1.46 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
<?php
/**
* The template used for displaying page content in page.php
*
* @package Quest
*/
$view = quest_get_view();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( ! quest_get_mod( 'layout_' . $view . '_ft-img-hide' ) && has_post_thumbnail() ) : ?>
<div class="post-image blog-normal effect slide-top" <?php echo quest_featured_image_width( $view ) ?>>
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'blog-normal' ); ?></a>
<div class="overlay">
<div class="caption">
<a href="<?php the_permalink() ?>"><?php _e( 'View more', 'quest' ); ?></a>
</div>
<a href="<?php the_permalink() ?>" class="expand">+</a>
<a href="#" class="close-overlay hidden">x</a>
</div>
</div>
<?php endif; ?>
<?php if ( quest_get_mod( 'layout_' . $view . '_title' ) ) : ?>
<?php the_title( sprintf( '<h1 class="post-title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php endif; ?>
</header>
<!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'quest' ),
'after' => '</div>',
) );
?>
</div>
<!-- .entry-content -->
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'quest' ), '<span class="edit-link">', '</span>' ); ?>
</footer>
<!-- .entry-footer -->
</article><!-- #post-## -->