-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.php
59 lines (48 loc) · 1.71 KB
/
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
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Kaingang
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<?php edit_post_link( __( 'Edit', 'kaingang' ), '<span class="edit-link">', '</span>' ); ?>
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-image">
<?php the_post_thumbnail( 'feature-singular' ); ?>
</div><!-- .entry-image -->
<?php endif ?>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'kaingang' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta entry-meta--footer">
<?php kaingang_social_share(); ?>
</footer>
</article><!-- #post-## -->
<?php
if( get_theme_mod('kaingang_display_fb_comments') == 1 )
{ ?>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-numposts="5" data-colorscheme="light" data-width="100%"></div>
<?php }
endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>