Guest User

Untitled

a guest
Mar 1st, 2019
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. get_header(); ?>
  3.  
  4.  
  5. <!-- Page Title Section -->
  6. <?php //if (get_post_meta( get_the_ID(), 'banner_chkbx', true )) { ?>
  7. <div class="page-title-section">
  8. <div class="overlay">
  9. <div class="container">
  10. <div class="row">
  11. <div class="col-md-12">
  12. <div class="page-title">
  13. <?php if (get_post_meta( get_the_ID(), 'banner_title', true )) { ?>
  14. <h1><?php echo (get_post_meta (get_the_ID(),'banner_title', true)); ?></h1>
  15. <div class="page-title-seprator"></div>
  16. <?php } else { ?>
  17. <h1><?php echo single_cat_title("", false); ?></h1>
  18. <?php } ?>
  19. <?php if (get_post_meta( get_the_ID(), 'banner_description', true )) { ?>
  20. <p><?php echo (get_post_meta( get_the_ID(), 'banner_description', true )); ?></p>
  21. <?php } else { ?>
  22. <div class="page-title-seprator"></div>
  23. <p><?php echo 'Autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et dolore feugait.'; ?></p>
  24. <?php } ?>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <?php //} ?>
  32. <div class="clearfix"></div>
  33. <!-- /Page Title Section -->
  34.  
  35.  
  36.  
  37. <?php
  38. $elitepress_lite_options=theme_data_setup();
  39. $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options ); ?>
  40. <!-- call template -->
  41. <!-- Portfolio Section -->
  42. <div class="portfolio-main-section">
  43. <div class="container">
  44. <!-- Portfolio Area -->
  45. <div class="main-portfolio-section" id="myTabContent">
  46. <?php $norecord=0;
  47. $args = array (
  48. 'post_status' => 'publish');
  49. global $j;
  50. $j=1;
  51. $portfolio_query = null;
  52. $portfolio_query = new WP_Query($args);
  53. if( have_posts() )
  54. { ?>
  55. <div id="portfolio_catgories">
  56. <div class="row">
  57. <?php
  58. while (have_posts()) { the_post();
  59. if(get_post_meta( get_the_ID(),'project_more_btn_link', true ))
  60. { $project_more_btn_link = get_post_meta( get_the_ID(),'project_more_btn_link', true );
  61. } else {
  62. $project_more_btn_link = '';
  63. } ?>
  64.  
  65. <?php if($current_options['taxonomy_portfolio_list']==2) { ?>
  66. <div class="col-md-6 col-sm-6 portfolio-area-main">
  67. <?php } else if($current_options['taxonomy_portfolio_list']==3) { ?>
  68. <div class="col-md-4 col-sm-6 portfolio-area-main">
  69. <?php } else if($current_options['taxonomy_portfolio_list']==4) { ?>
  70. <div class="col-md-3 col-sm-6 portfolio-area-main">
  71. <?php } ?>
  72.  
  73.  
  74.  
  75.  
  76. <div class="portfolio_image_main">
  77. <?php if($current_options['taxonomy_portfolio_list']==2) {
  78. elitepress_image_thumbnail('','img-responsive');
  79. } ?>
  80.  
  81. <?php if($current_options['taxonomy_portfolio_list']==3) {
  82. elitepress_image_thumbnail('','img-responsive');
  83. } ?>
  84.  
  85. <?php if($current_options['taxonomy_portfolio_list']==4) {
  86. elitepress_image_thumbnail('','img-responsive');
  87. } ?>
  88.  
  89. <?php
  90. if(has_post_thumbnail())
  91. {
  92. $post_thumbnail_id = get_post_thumbnail_id();
  93. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  94. } ?>
  95. <div class="portfolio_showcase_overlay">
  96. <div class="portfolio_showcase_overlay_inner">
  97. <div class="portfolio_showcase_icons">
  98. <?php if(isset($post_thumbnail_url)){ ?>
  99. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  100. <?php }
  101. elitepress_get_custom_link($project_more_btn_link,get_post_meta( get_the_ID(), 'project_more_btn_target', true ),'<i class="fa fa-link"></i>'); ?>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="portfolio_caption">
  107. <h4>
  108. <?php
  109. elitepress_get_custom_link($project_more_btn_link,get_post_meta( get_the_ID(), 'project_more_btn_target', true ),get_the_title()); ?>
  110. </h4>
  111. <?php if(get_post_meta( get_the_ID(), 'project_description', true )){ ?>
  112. <p><?php echo get_post_meta( get_the_ID(), 'project_description', true ); ?></p>
  113. <?php }
  114. if (get_post_meta( get_the_ID(), 'project_more_btn_text', true )){ ?>
  115. <div class="port-btn"><a href="<?php echo $project_more_btn_link; ?>" <?php if(get_post_meta( get_the_ID(), 'project_more_btn_target', true )) { echo "target='_blank'"; } ?> title="Read More"><?php echo get_post_meta( get_the_ID(), 'project_more_btn_text', true ); ?><i class="fa fa-angle-right"></i></a></div>
  116. <?php } ?>
  117. </div>
  118. </div>
  119. <?php
  120. if($j%$current_options['taxonomy_portfolio_list']==0) { echo "<div class='clearfix'></div>"; } $j++;
  121. $norecord=1;} ?>
  122.  
  123. </div>
  124. </div>
  125. <?php }
  126. wp_reset_query(); ?>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- /Portfolio Section -->
  131. <?php get_footer(); ?>
  132. <!-- /Portfolio Section -->
RAW Paste Data