EstudioJuridicoAlmagro_Web/www/single-standard.bak.php
2013-03-01 18:06:10 +00:00

97 lines
3.1 KiB
PHP

<?php extract(wpv_post_info()) ?>
<div class="side-post-info">
<?php
$format = get_post_format();
$format = empty($format)? 'standard' : $format;
?>
<a class="post-format-pad" href="<?php echo add_query_arg( 'format_filter',$format,home_url()) ?>"><span class="<?php echo $format?>"></span></a>
<?php if(wpv_get_option('meta_posted_on')): ?>
<span class="entry-date" title="<?php the_time(); ?>"><?php the_time('j F'); ?></span>
<?php endif ?>
<?php edit_post_link('Edit') ?>
</div>
<?php
if(has_post_format('image')) {
$show_image = true;
$img_style = 'fullimage';
}
ob_start();
if($show_image) {
$has_image = po_post_image($img_style);
} else {
$has_image = 'no-image';
}
$post_image = ob_get_clean();
?>
<div class="post-article <?php echo $has_image?>-wrapper">
<?php if(!has_post_format('aside') && !has_post_format('quote') && $img_style == 'fullimage') po_post_header($meta) ?>
<div class="<?php echo $format?>-post-format clearfix">
<?php
if($show_image) {
$has_image = po_post_image($img_style, $width);
} else {
$has_image = 'no-image';
}
?>
<div class="post-content-outer <?php echo $has_image ?>">
<?php if(!has_post_format('aside') && !has_post_format('quote') && $img_style != 'fullimage') po_post_header($meta) ?>
<div class="post-content the-content">
<?php if(has_post_format('quote')): ?>
<blockquote>
<?php the_content() ?>
</blockquote>
<cite>
<?php
$post_link = get_post_meta(get_the_id(), 'post-link', true);
$quote_author = get_post_meta(get_the_id(), 'quote-author', true);
?>
<a href="<?php echo $post_link?>" title="<?php echo $quote_author?>"><?php echo $quote_author?></a>
</cite>
<?php if(is_single()): ?>
<?php
wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wpv' ), 'after' => '</div>' ) );
?>
<?php endif ?>
<?php else: ?>
<?php
if(is_single()) {
the_content();
wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wpv' ), 'after' => '</div>' ) );
} else {
if($fullpost) {
global $more;
$more = 0;
the_content(__("Read More", 'wpv'),false);
} else {
the_excerpt();
}
}
?>
<?php endif ?>
</div>
<?php if(is_single()) wpv_share('post'); ?>
<footer class="entry-utility">
<?php if($meta && wpv_get_option('meta_posted_in')): ?>
<span><?php _e('Categories:', 'wpv')?></span> <span><?php echo get_the_category_list(', '); ?></span>
<?php the_tags('<span>Tags: </span><span>',', ','</span>')?>
<?php endif ?>
<?php if(wpv_get_option('meta_comment_count')): ?>
<span class="comments-link fr"><?php comments_popup_link('<b>Leave a comment</b> <span class="icomment-box">?</span>', '<b>Comment</b> <span class="icomment-box">1</span>', '<b>Comments</b> <span class="icomment-box">%</span>'); ?></span>
<?php endif ?>
</footer>
</div>
</div>
</div>