Vous êtes sur la page 1sur 3

<?php get_header() ?

>
<div id="content">
<div class="padder">
<?php do_action( 'bp_before_blog_single_post' ) ?>
<div class="page" id="blog-single">
<?php if (have_posts()) : while (have_posts()) :
the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php
post_class(); ?>>
<?php
global $cc_post_options;
$cc_post_options=cc_get_post_met
a();
$single_class = false;
if(isset($cc_post_options) && $cc_po
st_options['cc_post_template_on'] == 1){
switch ($cc_post_options
['cc_post_template_type'])
{
case 'img-left-content-right':
$single_class =
'single-img-left-content-right';
break;
case 'img-right-content-left':
$single_class =
'single-img-right-content-left';
break;
case 'img-over-content':
$single_class =
'single-img-over-content';
break;
case 'img-under-content':
$single_class =
'single-img-under-content';
break;
default:
$single_class = false;
break;
}
}
?>
<?php if($cc_post_options['cc_po
st_template_avatar'] != '1') { ?>
<div class="author-box">
<?php echo get_a
vatar( get_the_author_meta( 'user_email' ), '50' ); ?>
<?php if(defined
('BP_VERSION')){ ?>
<p><?php
printf( __( 'by %s', 'cc' ), bp_core_get_userlink( $post->post_author ) ) ?></p
>
<?php } ?>
</div>

<?php } ?>
<div class="post-content" style=
"<?php if($cc_post_options['cc_post_template_avatar'] == '1') { echo 'margin-lef
t:0;'; } ?>">
<?php if ($single_class
!= false){ ?>
<div class="<?ph
p echo $single_class ?>">
<?php } ?>
<h2 class="posttitle"><a
href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link
to', 'cc' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php if($cc_post_option
s['cc_post_template_date'] != '1') {?>
<p class="date">
<?php the_time('F j, Y') ?> <em><?php _e( 'in', 'cc' ) ?> <?php the_category(',
') ?> <?php if(defined('BP_VERSION')){ printf( __( ' by %s', 'cc' ), bp_core_ge
t_userlink( $post->post_author ) ); }?></em></p>
<?php } ?>
<div class="entry">
<?php if ($singl
e_class == 'single-img-left-content-right' || $single_class == 'single-img-right
-content-left' || $single_class == 'single-img-over-content'){ ?>
<?php th
e_post_thumbnail()?>
<?php } ?>
<?php the_conten
t( __( 'Read the rest of this entry &rarr;', 'cc' ) ); ?>
<?php if ($singl
e_class == 'single-img-under-content'){ ?>
<?php th
e_post_thumbnail()?>
<?php } ?>
<?php wp_link_pa
ges(array('before' => __( '<p><strong>Pages:</strong> ', 'cc' ), 'after' => '</p
>', 'next_or_number' => 'number')); ?>
</div>
<div class="clear"></div
>
<?php if($cc_post_option
s['cc_post_template_tags'] != '1') {?>
<?php $tags = ge
t_the_tags(); if($tags) { ?>
<p class
="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'cc' ), ', ', '
<br />'); ?></span></p>
<?php } ?>
<?php } ?>
<?php if($cc_post_option
s['cc_post_template_comments_info'] != '1') {?>
<p class="postme
tadata"><span class="comments"><?php comments_popup_link( __( 'No Comments &#187
;', 'cc' ), __( '1 Comment &#187;', 'cc' ), __( '% Comments &#187;', 'cc' ) ); ?
></span></p>

<?php } ?>
<?php if ($single_class
!= false){ ?>
</div>
<?php } ?>
<div class="alignleft"><
?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Pre
vious post link', 'cc' ) . '</span> %title' ); ?></div>
<div class="alignright">
<?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;',
'Next post link', 'cc' ) . '</span>' ); ?></div>
</div>
</div>
<?php edit_post_link( __( 'Edit this ent
ry.', 'cc' ), '<p>', '</p>'); ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e( 'Sorry, no posts ma
tched your criteria.', 'cc' ) ?></p>
<?php endif; ?>
</div>
<?php do_action( 'bp_after_blog_single_post' ) ?>
</div><!-- .padder -->
</div><!-- #content -->
<?php get_footer() ?>

Vous aimerez peut-être aussi