akhlesh_nagar

Untitled

Mar 12th, 2016
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. get_header();
  3.  
  4. global $post;
  5. $terms = get_the_terms($post->id, 'portfolio_categories');
  6. ?>
  7. <!-- Page Title Section -->
  8. <div class="page-title-section">
  9. <div class="overlay">
  10. <div class="container">
  11. <div class="row">
  12. <div class="col-md-6">
  13.  
  14.  
  15. <div class="page-title"><h1><?php echo $terms[0]->name; ; ?></h1></div>
  16. </div>
  17. <div class="col-md-6">
  18. <ul class="page-breadcrumb">
  19. <?php if (function_exists('qt_custom_breadcrumbs')) qt_custom_breadcrumbs();?>
  20. </ul>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <!-- /Page Title Section -->
  27.  
  28. <?php
  29. $current_options = get_option('appointment_options',theme_data_setup()); ?>
  30. <div class="portfolio-column-section">
  31. <div class="container">
  32. <!-- Portfolio Area -->
  33. <div class="main-portfolio-section" id="myTabContent">
  34. <?php $norecord=0;
  35. $args = array (
  36. 'post_status' => 'publish');
  37. global $j;
  38. $j=1;
  39. $portfolio_query = null;
  40. $portfolio_query = new WP_Query($args);
  41. if( have_posts() )
  42. { ?>
  43. <div id="<?php echo $tax_term->slug; ?>" class="tab-pane fade in <?php if($is_active==true){echo 'active';}$is_active=false; ?>">
  44. <div class="row">
  45. <?php
  46. while (have_posts()) { the_post();
  47.  
  48. if(get_post_meta( get_the_ID(),'project_more_btn_link', true ))
  49. { $project_more_btn_link = get_post_meta( get_the_ID(),'project_more_btn_link', true );
  50. } else {
  51. $project_more_btn_link = '';
  52. }
  53. ?>
  54.  
  55.  
  56. <?php if($current_options['taxonomy_portfolio_list']==2) { ?>
  57. <div class="col-md-6 col-md-6 portfolio-area">
  58.  
  59. <?php } else if($current_options['taxonomy_portfolio_list']==3) { ?>
  60. <div class="col-md-4 col-md-6 portfolio-area">
  61.  
  62.  
  63. <?php } else if($current_options['taxonomy_portfolio_list']==4) { ?>
  64. <div class="col-md-3 col-md-6 portfolio-area">
  65. <?php } ?>
  66.  
  67. <div class="portfolio-image">
  68. <?php if($current_options['taxonomy_portfolio_list']==2) {
  69. appointment_image_thumbnail('','img-responsive');
  70. } ?>
  71.  
  72. <?php if($current_options['taxonomy_portfolio_list']==3) {
  73. appointment_image_thumbnail('','img-responsive');
  74. } ?>
  75.  
  76. <?php if($current_options['taxonomy_portfolio_list']==4) {
  77. appointment_image_thumbnail('','img-responsive');
  78. } ?>
  79.  
  80. <?php
  81. if(has_post_thumbnail())
  82. {
  83. $post_thumbnail_id = get_post_thumbnail_id();
  84. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  85. } ?>
  86. <div class="portfolio-showcase-overlay">
  87. <div class="portfolio-showcase-overlay-inner">
  88. <div class="portfolio-showcase-icons">
  89. <?php if(isset($post_thumbnail_url)){ ?>
  90. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  91. <?php } ?>
  92. <?php if(!empty($project_more_btn_link)) {?>
  93. <a href="<?php echo $project_more_btn_link;?>" target="_blank" title="Appointment" class="hover_thumb"><i class="fa fa-plus"></i></a>
  94. <?php } ?>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="portfolio-caption">
  100.  
  101. <h4>
  102. <a href="<?php echo $project_more_btn_link;?>" target="_blank" > <?php echo the_title (); ?>
  103.  
  104. </h4>
  105. <?php if(get_post_meta( get_the_ID(), 'project_description', true )){ ?>
  106. <p><?php echo get_post_meta( get_the_ID(), 'project_description', true ); ?></p>
  107. <?php } ?>
  108. </div>
  109.  
  110. </div>
  111. <?php
  112. if($j%$current_options['taxonomy_portfolio_list']==0) { echo "<div class='clearfix'></div>"; } $j++;
  113. $norecord=1;} ?>
  114. </div>
  115. </div>
  116. <?php }
  117. wp_reset_query(); ?>
  118. </div>
  119. </div>
  120. </div>
  121. <!-- /Portfolio Area -->
  122. <!-- Load More Projects Btn -->
  123. <!-- /Load More Projects Btn -->
  124. </div>
  125. </div>
  126. <!-- /Portfolio Section -->
  127. <?php get_footer(); ?>
RAW Paste Data