-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent.php
More file actions
83 lines (45 loc) · 1.7 KB
/
content.php
File metadata and controls
83 lines (45 loc) · 1.7 KB
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
78
79
80
81
82
83
<?php
/**
* The default template for displaying content
*
* @package Intro
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0
*/
?>
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php do_action('intro_before_post'); ?>
<article <?php post_class('post'); ?> itemscope="itemscope" itemtype="http://schema.org/Article">
<?php do_action('intro_top_post'); ?>
<header class="entry-header" >
<?php do_action('intro_top_header_post'); ?>
<?php if (has_post_thumbnail() && !post_password_required()): ?>
<div class="entry-thumbnail">
<?php if (is_single()): ?>
<?php intro_post_thumbnail(); ?>
<?php else: ?>
<a class="entry-permalink" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark" itemprop="url">
<?php intro_post_thumbnail(); ?>
</a>
<?php endif; ?>
</div><!--END .entry-thumbnail-->
<?php endif; ?>
<?php if (is_single()): ?>
<h1 class="entry-title" itemprop="headline">
<?php the_title(); ?>
</h1><!--END .entry-title-->
<?php else: ?>
<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 get_template_part('content', 'header'); ?>
<?php do_action('intro_bottom_header_post'); ?>
</header><!--END .entry-header-->
<?php get_template_part('content', 'body'); ?>
<?php get_template_part('content', 'footer'); ?>
<?php do_action('intro_bottom_post'); ?>
</article><!-- END .post -->
<?php do_action('intro_after_post'); ?>