-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
50 lines (44 loc) · 1.19 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 template used for displaying page content in page.php
*
* @package ThemeGrill
* @subpackage Freedom
* @since Freedom 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'normal-view' ); ?>>
<?php do_action( 'freedom_before_post_content' ); ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
</header>
<?php
if ( 'post' == get_post_type() ) :
freedom_entry_meta();
endif;
?>
<?php
if ( has_post_thumbnail() ) {
$image = '';
$title_attribute = the_title_attribute( 'echo=0' );
$image .= '<figure class="post-featured-image">';
$image .= '<a href="' . get_permalink() . '" title="' . $title_attribute . '">';
$image .= get_the_post_thumbnail( $post->ID, 'featured', array(
'title' => $title_attribute,
'alt' => $title_attribute,
) ) . '</a>';
$image .= '</figure>';
echo $image;
}
?>
<div class="entry-content clearfix">
<?php
global $more;
$more = 0;
the_content( '<span>' . __( 'Read more', 'freedom' ) . '</span>' );
?>
</div>
<?php do_action( 'freedom_after_post_content' ); ?>
</article>