Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- global $post;
- $terms = get_the_terms($post->id, 'portfolio_categories');
- ?>
- <!-- Page Title Section -->
- <div class="page-title-section">
- <div class="overlay">
- <div class="container">
- <div class="row">
- <div class="col-md-6">
- <div class="page-title"><h1><?php echo $terms[0]->name; ; ?></h1></div>
- </div>
- <div class="col-md-6">
- <ul class="page-breadcrumb">
- <?php if (function_exists('qt_custom_breadcrumbs')) qt_custom_breadcrumbs();?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- /Page Title Section -->
- <?php
- $current_options = get_option('appointment_options',theme_data_setup()); ?>
- <div class="portfolio-column-section">
- <div class="container">
- <!-- Portfolio Area -->
- <div class="main-portfolio-section" id="myTabContent">
- <?php $norecord=0;
- $args = array (
- 'post_status' => 'publish');
- global $j;
- $j=1;
- $portfolio_query = null;
- $portfolio_query = new WP_Query($args);
- if( have_posts() )
- { ?>
- <div id="<?php echo $tax_term->slug; ?>" class="tab-pane fade in <?php if($is_active==true){echo 'active';}$is_active=false; ?>">
- <div class="row">
- <?php
- while (have_posts()) { the_post();
- if(get_post_meta( get_the_ID(),'project_more_btn_link', true ))
- { $project_more_btn_link = get_post_meta( get_the_ID(),'project_more_btn_link', true );
- } else {
- $project_more_btn_link = '';
- }
- ?>
- <?php if($current_options['taxonomy_portfolio_list']==2) { ?>
- <div class="col-md-6 col-md-6 portfolio-area">
- <?php } else if($current_options['taxonomy_portfolio_list']==3) { ?>
- <div class="col-md-4 col-md-6 portfolio-area">
- <?php } else if($current_options['taxonomy_portfolio_list']==4) { ?>
- <div class="col-md-3 col-md-6 portfolio-area">
- <?php } ?>
- <div class="portfolio-image">
- <?php if($current_options['taxonomy_portfolio_list']==2) {
- appointment_image_thumbnail('','img-responsive');
- } ?>
- <?php if($current_options['taxonomy_portfolio_list']==3) {
- appointment_image_thumbnail('','img-responsive');
- } ?>
- <?php if($current_options['taxonomy_portfolio_list']==4) {
- appointment_image_thumbnail('','img-responsive');
- } ?>
- <?php
- if(has_post_thumbnail())
- {
- $post_thumbnail_id = get_post_thumbnail_id();
- $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
- } ?>
- <div class="portfolio-showcase-overlay">
- <div class="portfolio-showcase-overlay-inner">
- <div class="portfolio-showcase-icons">
- <?php if(isset($post_thumbnail_url)){ ?>
- <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
- <?php } ?>
- <?php if(!empty($project_more_btn_link)) {?>
- <a href="<?php echo $project_more_btn_link;?>" target="_blank" title="Appointment" class="hover_thumb"><i class="fa fa-plus"></i></a>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
- <div class="portfolio-caption">
- <h4>
- <a href="<?php echo $project_more_btn_link;?>" target="_blank" > <?php echo the_title (); ?>
- </h4>
- <?php if(get_post_meta( get_the_ID(), 'project_description', true )){ ?>
- <p><?php echo get_post_meta( get_the_ID(), 'project_description', true ); ?></p>
- <?php } ?>
- </div>
- </div>
- <?php
- if($j%$current_options['taxonomy_portfolio_list']==0) { echo "<div class='clearfix'></div>"; } $j++;
- $norecord=1;} ?>
- </div>
- </div>
- <?php }
- wp_reset_query(); ?>
- </div>
- </div>
- </div>
- <!-- /Portfolio Area -->
- <!-- Load More Projects Btn -->
- <!-- /Load More Projects Btn -->
- </div>
- </div>
- <!-- /Portfolio Section -->
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment