post_class('row-fluid edenfresh-portfolio-4col thumbnails');
?>
>
 
 
<?php 
query_posts('post_type=portfolio&posts_per_page=12&paged=' . get_query_var('paged'));
while (have_posts()) {
    the_post();
    ?>
 

<div class="span3 tbox">
<div class="thumbnail">         
          <?php 
    edenfresh_post_thumb('medium');
    ?>
 
          <div class="text-center">
          <h2><?php 
    the_title();
    ?>
</h2>
          <div class="det"> 
          <a rel="lightbox" href="<?php 
    echo edenfresh_post_thumb_url();
    ?>
" class="btn btn-primary"><i class="icon icon-white icon-search"></i></a> 
          <a href="<?php 
    the_permalink();
    ?>
        the_post();
        ?>
 
<div  <?php 
        post_class('post box arc');
        ?>
>
<h2 class="entry-title"><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>&nbsp;</h2> 
<?php 
        edenfresh_post_thumb('edenfresh-responsive-blog-thumb');
        ?>
  
<div class="entry-content"><?php 
        the_excerpt();
        ?>
<div class="breadcrumb">Posted on <?php 
        echo get_the_date();
        ?>
 / Posted by <a href="<?php 
        echo get_author_posts_url(get_the_author_meta('ID'));
        ?>
"><?php 
        the_author();
        ?>
</a> / <a href="<?php 
?>
> 
<?php 
the_post();
$data = maybe_unserialize(get_post_meta(get_the_ID(), 'edenfresh_post_meta', true));
?>
     
<div  <?php 
post_class('post');
?>
>
 
<div class="clear"></div>
<div class="portfolio-content entry-content">
<?php 
edenfresh_post_thumb('edenfresh-responsive-post-thumb');
?>
<br/>
<br/>
<?php 
$args = array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID);
echo "<div class='row-fluid' id='portfolio-gallery'>";
$attachments = get_posts($args);
if ($attachments) {
    foreach ($attachments as $attachment) {
        $imgsrc = wp_get_attachment_image_src($attachment->ID, 'full');
        echo "<a rel='lightbox' title='" . $attachment->post_title . "' class='thumbnail span2' href='" . $imgsrc[0] . "'>" . wp_get_attachment_image($attachment->ID, 'thumbnail', 1, array('class' => '')) . "</a>";
    }
}
echo "</div>";
?>