-
Notifications
You must be signed in to change notification settings - Fork 7
/
content.php
62 lines (62 loc) · 3.29 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
<?php $date_format = get_option( 'date_format' ); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="heading clear">
<?php if ( is_home() && of_get_option( 'post_title_styling', '0' ) ) { ?>
<div class="post_date">
<div class="month_post"><?php the_time( 'M' ) ?></div>
<div class="date_post"><?php the_time( 'j' ) ?></div>
</div>
<div class="commentdiv"><?php
if ( comments_open() && empty( $post->post_password ) ) {
comments_popup_link( '0', '1', '%', 'comment_num', '' );
}
?></div>
<?php } ?>
<h2 class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'techozoic' ), get_the_title() ); ?>">
<?php
if ( get_the_title() ) {
the_title();
} else {
_e( 'Read More …', 'techozoic' );
}
?></a></h2>
<small><?php printf( __( 'Posted %s By %s', 'techozoic' ), get_the_time( $date_format ), get_the_author() ); ?><?php edit_post_link( __( ' | Edit.', 'techozoic' ), '', '' ); ?></small>
</div>
<?php if ( $post->post_content != "" ) { ?>
<div class="entry">
<?php
if ( function_exists( 'the_post_thumbnail' ) ) {
the_post_thumbnail( 'thumbnail' );
}
?>
<?php
if ( (is_home() && tech_excerpt( 'main' )) || ( is_category() && tech_excerpt( 'cat' ) ) || ( is_year() && tech_excerpt( 'year' ) ) || ( is_month() && tech_excerpt( 'month' ) ) ) {
the_excerpt();
} else {
the_content( __( 'Read the remainder of this entry »', 'techozoic' ) );
}
wp_link_pages();
if ( comments_open() && empty( $post->post_password ) && (of_get_option( 'comment_preview', '1' ) == "1") ) {
?>
<div class="post_comment_cont">
<?php comments_popup_link( __( 'Be the first to comment', 'techozoic' ), __( '1 Comment. Join the Conversation', 'techozoic' ), _n( '% Comment so far. Join the Conversation', '% Comments so far. Join the Conversation', get_comments_number(), 'techozoic' ), 'comments-link', __( 'Comments Closed', 'techozoic' ) ); ?>
</div>
<?php tech_comment_preview( $post->ID ); ?>
<?php
}
?>
<div class="post_info">
<small>
<?php printf( __( 'Filed in %s', 'techozoic' ), get_the_category_list( ', ' ) ) ?><?php the_tags( __( ' | Tagged: ' ) ); ?>
</small>
</div>
</div>
<?php if ( ( is_home() && tech_icons( 'main' ) ) || ( is_category() && tech_icons( 'archive' ) ) || ( is_year() && tech_icons( 'year' ) ) || ( is_month() && tech_icons( 'month' ) ) ) { ?>
<div class="top">
<?php tech_social_icons( $home = true ); ?><a href="#top" title="<?php _e( 'To the top', 'techozoic' ) ?>" class="social toplink"></a>
</div>
<?php
} // End if $post->post-content blank check.
} //End if post format check
?>
</div>