<?php get_header(); ?>

            <!--BEGIN #page-title-wrap--> 
            <div id="page-title-wrap">

                <h1 class="page-title"><?php _e('Photos', 'framework') ?></h1>
            
            <!--END #page-title-wrap-->
            </div>
            
            <!--BEGIN #posts-wrap-->
            <div id="posts-wrap" class="clearfix">
            
                <!--BEGIN #primary .hfeed-->
                <div id="primary" class="hfeed">
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    
                    <!--BEGIN .hentry -->
                    <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">	
                                
                        <!--BEGIN #entry-title-wrap -->
                        <div class="entry-title-wrap clearfix">			
                            <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
                        <!--END #entry-title-wrap -->
                        </div>
                        
                        <!--BEGIN .entry-meta-wrap-->
                        <div class="entry-meta-wrap clearfix">
                        
                        	<?php $terms = get_the_terms( get_the_ID(), 'photo-type' ); ?>
                        
                            <!--BEGIN .entry-meta .entry-header-->
                            <div class="entry-meta entry-header">
                                <span class="author"><?php the_author_posts_link(); ?> <span>/</span></span>
                                <span class="published"><?php the_time( get_option('date_format') ); ?> <span>/</span></span>
                                <span class="entry-categories"><?php foreach ($terms as $term) { echo $term->name.' '; } ?> <span>/</span></span>
                                <span class="comment-count"><?php comments_popup_link(__('No Comments', 'framework'), __('1 Comment', 'framework'), __('% Comments', 'framework')); ?></span>
                                <?php edit_post_link( __('edit', 'framework'), '<span class="edit-post"> <span>/</span> ', '</span>' ); ?>
                            <!--END .entry-meta entry-header -->
                            </div>
                            
                        <!--END #entry-meta-wrap-->
                        </div>
                        
                        <?php /* if show post image is checked */
                        if (get_option('tz_post_img') == "true") { ?>
                        <?php /* if the post has a WP 2.9+ Thumbnail */
                        if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
                        <div class="post-thumb">
                            <?php the_post_thumbnail('photo-thumbnail'); /* post thumbnail settings configured in functions.php */ ?>
                        </div>
                        <?php } } ?>
    
                        <!--BEGIN .entry-content -->
                        <div class="entry-content">
                            <?php the_content(__('Continue Reading &rarr;', 'framework')); ?>
                            <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:', 'framework').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                        <!--END .entry-content -->
                        </div>
    
                    <!--END .hentry-->  
                    </div>
    
                    <?php comments_template('', true); ?>
    
                    <?php endwhile; else: ?>
    
                    <!--BEGIN #post-0-->
                    <div id="post-0" <?php post_class() ?>>
                    
                        <h1 class="entry-title"><?php _e('Error 404 - Not Found', 'framework') ?></h1>
                    
                        <!--BEGIN .entry-content-->
                        <div class="entry-content">
                            <p><?php _e("Sorry, but you are looking for something that isn't here.", "framework") ?></p>
                        <!--END .entry-content-->
                        </div>
                    
                    <!--END #post-0-->
                    </div>
    
                <?php endif; ?>
                <!--END #primary .hfeed-->
                </div>

				<?php get_sidebar(); ?>
                
            </div>
            <!--END #posts-wrap-->

<?php get_footer(); ?>