-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcontent.php
77 lines (77 loc) · 3.96 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php schema(); ?>>
<?php bigblank_post_thumbnail(); ?>
<header class="entry-header">
<?php
if (is_single()) :
the_title('<h1 class="entry-title" ' . schema('name', false, false) . '>', '</h1>');
else :
the_title('<h1 class="entry-title" ' . schema('name', false, false) . '><a href="' . esc_url(get_permalink()) . '" rel="bookmark" ' . schema('url', false, false) . '>', '</a></h1>');
endif;
?>
<div class="entry-meta">
<?php
if ('post' == get_post_type())
bigblank_posted_on();
if (!post_password_required() && (comments_open() || get_comments_number())) :
?>
<?php comments_popup_link(__('Leave a comment', 'bigblank'), __('1 Comment', 'bigblank'), __('% Comments', 'bigblank'), "entry-comments"); ?>
<?php
endif;
edit_post_link(__('Edit', 'bigblank'));
?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php if (is_search()) : ?>
<div class="entry-summary" <?php schema('description'); ?>>
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content" <?php schema('articleBody'); ?>>
<?php
the_content(sprintf(__('Continue Reading %s <span class="meta-nav">→</span>', 'bigblank'), get_the_title()));
wp_link_pages(array(
'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'bigblank') . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
));
?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta">
<?php bigblank_share_post(get_permalink(), get_the_title()); ?>
<?php if (in_array('category', get_object_taxonomies(get_post_type())) && bigblank_categorized_blog()) : ?>
<span class="entry-categories"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'bigblank')); ?></span>
<?php
endif;
the_tags('<span class="entry-tags">', _x(', ', 'Used between list items, there is a space after the comma.', 'bigblank'), '</span>');
?>
<?php
if (is_sticky() && is_home() && !is_paged()) {
echo '<span class="featured-post">' . __('Sticky', 'bigblank') . '</span>';
}
?>
<?php if (is_singular() && get_the_author_meta('description') && is_multi_author() && get_post_type() == "post") : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
<div class="author-info" <?php schema('author', 'Person'); ?>>
<div class="author-avatar">
<?php echo get_avatar(get_the_author_meta('user_email'), apply_filters('gravatar', 128)); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2 <?php schema('name'); ?>><?php printf(__('About %s', 'bigblank'), get_the_author()); ?></h2>
<p <?php schema('description'); ?>><?php the_author_meta('description'); ?></p>
<a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" class="author-link" rel="author" <?php schema('url'); ?>>
<?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'bigblank'), get_the_author()); ?>
</a><!-- .author-link -->
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
</footer>
</article><!-- #post-## -->