File: /home/slyfwmm/foar/wp-content/themes/flexfit/single.php
<?php get_header(); ?>
<div id="page" class="border-top clearfix">
<div id="subtitle">
<h1><?php the_title(); ?></h1>
<!--<div id="breadcrumb"><?php the_breadcrumb(); ?></div>-->
<div class="hr4"><span class="seperator"></span><span class="lightborder"></span></div>
</div>
<div id="content-part">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class('single-post') ?> id="post-<?php the_ID(); ?>">
<div class="post-entry singlepost">
<div class="post-thumb">
<?php if ( has_post_thumbnail()) { ?>
<a href="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>"><?php the_post_thumbnail('blog-thumb'); ?></a>
<?php } else { ?>
<div class="dotted"></div>
<?php } ?>
</div>
<div class="meta">
<?php _e('Posted on', 'framework'); ?> <strong><?php the_date() ?></strong> ยท <?php _e('Posted in', 'framework'); ?> <?php the_category(', ') ?>
</div>
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
</div>
<div class="meta-tags">
<?php the_tags( '', '', ''); ?>
</div>
<!--<div id="author-info" class="clearfix">
<div class="author-image">
<a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?></a>
</div>
<div class="author-bio">
<h4><?php _e('About the Author', 'framework'); ?></h4>
<?php the_author_meta('description'); ?>
</div>
</div> -->
<?php $attachments = new Attachments( 'attachments' ); /* pass the instance name */ ?>
<?php if( $attachments->exist() ) : ?>
<h3>Allegati:</h3>
<div>
<?php while( $attachments->get() ) : ?>
<div style="width:600px;">
<div style="float:left; vertical-align:top;"><a href="<?php echo $attachments->url(); ?>"><?php echo $attachments->image( 'thumbnail' ); ?></a></div><div style="float:left; vertical-align:central; margin-left:4px; margin-top:10px; width:550px;"><a href="<?php echo $attachments->url(); ?>"><?php echo $attachments->field( 'title' ); ?></a></div>
</div>
<div style="clear:both;"></div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<div class="entry-footer"></div>
</div>
</div>
<?php /*comments_template();*/ ?>
<?php endwhile; endif; ?>
</div>
<div id="sidebar" class="sidebar-right">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>