File: /home/slyfwmm/incastiglionfiorentino/wp-content/themes/amplify/single.php
<?php
/**
* The Template for displaying all single posts.
*
*/
get_header(); ?>
<div id="main_container">
<!-- IE7 float fix --><!--[if lt IE 7]><span class="iefix">.</span><![endif]-->
<div class="main">
<div class="entries_full">
<div class="entry_full">
<?php
$portfolio_cat = get_option('bb_portfolio_cat');
if($portfolio_cat == 'Choose a category') {$portfolio_cat = 'portfolio';}
if ( in_category($portfolio_cat) ) {
include ('portfolio_single.php');
}
else {
?>
<div class="box_twothirds mt30 pr60">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h3 class="mb12"><?php the_title(); ?></h3>
<?php if(get_field('large_image_value') != NULL || get_field('fullsize_value') != NULL)
{ ?>
<div>
<img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php if(get_field('large_image_value') != NULL) {echo get_field('large_image_value');} else {echo get_field('fullsize_value');} ?>&h=213&w=600&zc=1" alt="<?php the_title(); ?>" />
</div>
<?php } ?>
<p class="meta"><span class="postdate"><?php the_time('F jS, Y') ?></span><span class="tags"><?php the_category(', '); ?></span></p>
<?php the_content(); ?>
<?php echo get_the_term_list( get_the_ID(), 'inserzione', "Categoria: " ) ?>
<?php endwhile; // end of the loop. ?>
</div>
<!-- Begin Sidebar -->
<?php include('sidebar.php'); ?>
<!-- end sidebar -->
<div class="clear"></div>
<?php } ?> <!-- end single post content -->
</div><!-- end div.entry -->
</div><!-- end div.entries -->
<div class="clear"></div>
</div><!-- end div#main -->
<div class="clear"></div>
</div><!-- end div#main_container-->
<?php get_footer(); ?>