forked from jeremyclark13/Techozoic-Fluid
/
loop.php
77 lines (76 loc) · 4.98 KB
/
loop.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 if (have_posts()) {
while (have_posts()) {
the_post();
?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if ( has_post_format( 'quote' ) || has_post_format( 'aside' ) ) { ?>
<div class="entry">
<?php the_content();?>
</div>
<?php
} elseif ( has_post_format( 'status' ) ) { ?>
<div class="avatar"><a href="<?php echo add_query_arg('post_format','status',get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>" title="<?php _e('View all status updates by this author','techozoic'); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 64 ); ?></a></div>
<div class="entry">
<?php the_content();?>
</div>
<?php
} else {
?>
<div class="heading">
<?php if (is_home()){ ?>
<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 _e('By' , 'techozoic') ?> <?php the_author() ?> | <?php printf(__('Filed in %s' , 'techozoic'), get_the_category_list(', ')) ?><?php edit_post_link(__(' | Edit.','techozoic'), '', ''); ?></small>
</div><div style="clear:both"></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 }
$posttags = get_the_tags();
if (!empty($posttags)) { ?>
<div class="tags"><small><?php the_tags(); ?></small></div><?php
}
?>
</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"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/top.png" border="0" alt="TOP" title="<?php _e('To the top' , 'techozoic') ?>" /></a>
</div>
<?php }
} // End if $post->post-content blank check.
} //End if post format check
?>
</div>
<?php $tech_ad_code = of_get_option('ad_code','');
if (!empty($tech_ad_code) && $tech_ii <= 3) {
$tech_i++;
if($tech_i == of_get_option('ad_int','3')) { ?>
<div class="aligncenter">
<?php $tech_ad_code = stripslashes (of_get_option('ad_code',''));
echo do_shortcode($tech_ad_code); ?>
</div>
<?php $tech_i = 0;
$tech_ii++;
}
} //End Ad Loop
} //End While Loop
} else { ?>
<h2 class="center"><?php _e('Not Found' , techozoic) ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here' , 'techozoic') ?>.</p>
<?php } ?>