This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
/
page.php
53 lines (42 loc) · 2.4 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
<?php get_header(); ?>
<section id="content-main" class="hfeed" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); // The Loop ?>
<?php if (fc_is_subpage()) : ?>
<?php if(function_exists('bcn_display')) : ?>
<p class="crumbs">
<?php bcn_display(); ?>
</p>
<?php else : ?>
<p class="crumbs"><a href="<?php echo get_permalink($post->post_parent); ?>" title="<?php _e('Return to “'.get_the_title($post->post_parent).'”','qmo'); ?>">← <?php echo get_the_title($post->post_parent); ?></a></p>
<?php endif; ?>
<?php endif;?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article">
<h1 class="entry-title section-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php if (has_post_thumbnail()) : the_post_thumbnail('thumbnail', array('alt' => "", 'title' => "")); endif; ?>
<?php the_content('Read the rest of this entry …'); ?>
<?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number', 'link_before' => '<b>', 'link_after' => '</b>')); ?>
</div>
<?php if (get_the_tags()) : ?>
<?php the_tags('<p class="entry-tags"><strong>Tags:</strong> ',', ',''); ?>
<?php endif; ?>
<?php if (is_user_logged_in()) : ?>
<div class="entry-meta">
<p class="vcard">Last modified by <a class="fn url author" title="See all <?php the_author_posts() ?> posts by <?php the_author(); ?>" href="<?php echo get_author_posts_url($authordata->ID, $authordata->user_nicename); ?>"><?php the_author(); ?></a>
on <?php the_modified_time(get_option('date_format')); ?>
at <time class="updated" pubdate datetime="<?php the_modified_time('Y-m-d\TH:i:sP'); ?>"><?php the_modified_time(); ?></time>.
<?php if ( current_user_can( 'edit_page', $post->ID ) ) : ?><span class="edit"><?php edit_post_link('Edit', '', ''); ?></span><?php endif; ?>
</p>
</div>
<?php endif; ?>
</article>
<?php endwhile; ?>
<?php comments_template(); ?>
<?php else : ?>
<h1 class="section-title"><?php _e('Sorry, there’s nothing to see here.','qmo'); ?></h1>
<?php endif; ?>
</section><?php /* end #content-main */ ?>
<section id="content-sub" role="complementary">
<?php include (TEMPLATEPATH . '/user-state.php'); ?>
</section>
<?php get_footer(); ?>