Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Portfolio Gallery
- */
- ?>
- <?php get_header(); ?>
- <section class="page-title">
- <div class="double-separator"></div>
- <div class="breadcrumbs">
- <div class="one-half align-left">
- <?php if (function_exists('dt_breadcrumbs')) dt_breadcrumbs(); ?>
- </div>
- <div class="one-half column-last align-right">
- <?php
- //get meta
- $tagline = get_post_meta($post->ID, 'haze_tagline', TRUE);
- if(!empty($tagline)) { echo $tagline; }
- ?>
- </div>
- </div><!--end breadcrumbs-->
- <div class="double-separator"></div>
- </section>
- </div><!--end top-->
- <div class="centered-wrapper">
- <section id="portfolio-gallery">
- <?php
- if(!empty($data['no_filter_portfolio'])) {
- $portfolio_posts_per_page = $data['no_filter_portfolio'];
- }
- else {
- $portfolio_posts_per_page = 12;
- }
- //get post type - portfolio
- query_posts(array(
- 'post_type'=>'portfolio',
- 'posts_per_page' => -1,
- 'paged' => $paged
- ));
- ?>
- <div class="portfolio-gallery-items <?php if($data['portfolio_cols']) echo strtolower($data['portfolio_cols']); ?>-columns">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="portfolio-item">
- <div class="rollover"></div>
- <?php // Check if wordpress supports featured images, and if so output the thumbnail
- if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) :
- // Output the featured image ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('portfolio-gallery-thumb'); ?></a>
- <?php endif; ?>
- </div>
- <?php endwhile; endif; // END the Wordpress Loop ?>
- </div>
- <?php wp_reset_query(); // Reset the Query Loop ?>
- </section>
- </div><!--end centered-wrapper-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement