/
single.php
75 lines (56 loc) · 3.02 KB
/
single.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
<?php get_header(); ?>
<div id="content" class="col-full">
<div id="main" class="col-left">
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count++; ?>
<div class="box">
<div class="post">
<?php
// Show image or ad content
if ( get_option('woo_image_single') == "true" && !woo_get_embed('embed','590','420') && get_option('woo_ad_content') <> "true" )
woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignright');
elseif ( !woo_get_embed('embed','590','420') && get_option('woo_ad_content') == "true" )
include ( TEMPLATEPATH . '/ads/content_ad.php' );
?>
<h1 class="title"><?php the_title(); ?></h1>
<p class="post-meta">
<img src="<?php bloginfo('template_directory'); ?>/images/ico-time.png" alt="" /><?php the_time($GLOBALS['woodate']); ?>
<span class="comments"><img src="<?php bloginfo('template_directory'); ?>/images/ico-comment.png" alt="" /><?php comments_popup_link(__('0 Comments', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?></span>
</p>
<?php echo woo_get_embed('embed','590','420'); ?>
<?php if ( woo_get_embed('embed','590','420') && get_option('woo_ad_content') == "true" ) include ( TEMPLATEPATH . '/ads/content_ad.php' ); ?>
<div class="entry">
<?php the_content(); ?>
<?php edit_post_link(); ?>
</div>
<div class="fix"></div>
<?php if ( get_option('woo_social') == "true" ) { ?>
<div id="share">
<div class="banner"><?php _e('Comparteix', 'woothemes'); ?></div>
<?php woo_social(); ?>
</div>
<?php } ?>
</div><!-- /.post -->
<div class="post-bottom">
<div class="fl"><span class="cat"><?php the_category(', ') ?></span></div>
<div class="fr"><?php the_tags('<span class="tags">', ', ', '</span>'); ?></div>
<div class="fix"></div>
</div>
</div><!-- /.box -->
<div class="more_entries">
<div class="fl"><?php previous_post_link('%link') ?></div>
<div class="fr"><?php next_post_link('%link') ?></div>
<div class="fix"></div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<div class="box">
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
</div><!-- /.post -->
</div>
<?php endif; ?>
</div><!-- /#main -->
<?php get_sidebar(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>