/
content.php
50 lines (33 loc) · 1.24 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
<?php
/**
* The default template for displaying content
*
* @package Gavroche
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0
*/
?>
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?> itemscope="itemscope" itemtype="http://schema.org/Article">
<?php if (is_single()) : ?>
<h1 class="entry-title" itemprop="headline">
<?php echo apply_filters('gavroche_title', get_the_title()); ?>
</h1><!--END .entry-title-->
<?php else : ?>
<?php if (has_post_thumbnail()) { ?>
<figure class="featured-image blog">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark" itemprop="url">
<?php the_post_thumbnail('full'); ?>
</a>
</figure>
<?php } ?>
<h2 class="entry-title" itemprop="headline">
<a class="entry-permalink" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark" itemprop="url">
<?php the_title(); ?>
</a>
</h2><!--END .entry-title-->
<?php endif; ?>
<?php do_action('gavroche_before_the_content'); ?>
<?php get_template_part('content', 'body'); ?>
<?php do_action('gavroche_after_the_content'); ?>
</article><!--END .post -->