Guest User

Untitled

a guest
Mar 1st, 2019
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header();
  2. $elitepress_lite_options=theme_data_setup();
  3. $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options );
  4. $h1=$current_options['banner_title_portfolio_category'];
  5. $bd=$current_options['banner_desc_portfolio_category'];
  6. ?>
  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. <h1><?php echo single_cat_title("", false); ?></h1>
  14. <div class="page-title-seprator"></div>
  15. <p><?php if($bd!=''){ echo $bd;} else {
  16. 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>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <?php
  24. $elitepress_lite_options=theme_data_setup();
  25. $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options ); ?>
  26. <!-- call template -->
  27. <!-- Portfolio Section -->
  28. <div class="portfolio bg-white">
  29. <div class="container">
  30. <!-- Portfolio Area -->
  31. <div class="tab-content main-portfolio-section" id="myTabContent">
  32. <?php $norecord=0;
  33. $args = array (
  34. 'post_status' => 'publish');
  35. $portfolio_query = null;
  36. $portfolio_query = new WP_Query($args);
  37. if( have_posts() )
  38. { ?>
  39. <div class="row">
  40. <?php
  41. while (have_posts()) { the_post();
  42. if(get_post_meta( get_the_ID(),'project_more_btn_link', true ))
  43. { $project_more_btn_link = get_post_meta( get_the_ID(),'project_more_btn_link', true );
  44. } else {
  45. $project_more_btn_link = '';
  46. } ?>
  47.  
  48. <?php if($current_options['taxonomy_portfolio_list']==2) { ?>
  49. <div class="col-md-6 col-sm-6">
  50. <?php } else if($current_options['taxonomy_portfolio_list']==3) { ?>
  51. <div class="col-md-4 col-sm-6">
  52. <?php } else if($current_options['taxonomy_portfolio_list']==4) { ?>
  53. <div class="col-md-3 col-sm-6">
  54. <?php } ?>
  55.  
  56. <div class="portfolio-area">
  57. <div class="portfolio-image">
  58. <?php if($current_options['taxonomy_portfolio_list']==2) {
  59. elitepress_image_thumbnail('','img-responsive');
  60. } ?>
  61.  
  62. <?php if($current_options['taxonomy_portfolio_list']==3) {
  63. elitepress_image_thumbnail('','img-responsive');
  64. } ?>
  65.  
  66. <?php if($current_options['taxonomy_portfolio_list']==4) {
  67. elitepress_image_thumbnail('','img-responsive');
  68. } ?>
  69.  
  70. <?php
  71. if(has_post_thumbnail())
  72. {
  73. $post_thumbnail_id = get_post_thumbnail_id();
  74. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  75. } ?>
  76.  
  77. <div class="portfolio-showcase-overlay">
  78. <div class="portfolio-showcase-overlay-inner">
  79. <div class="portfolio-showcase-icons">
  80. <?php if(isset($post_thumbnail_url)){ ?>
  81. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  82. <?php }
  83. 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>'); ?>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88.  
  89. <div class="portfolio-info">
  90. <header class="entry-header">
  91. <h4 class="entry-title">
  92. <?php
  93. elitepress_get_custom_link($project_more_btn_link,get_post_meta( get_the_ID(), 'project_more_btn_target', true ),get_the_title()); ?>
  94. </h4>
  95. </header>
  96. <div class="entry-content">
  97. <?php if(get_post_meta( get_the_ID(), 'project_description', true )){ ?>
  98. <p><?php echo get_post_meta( get_the_ID(), 'project_description', true ); ?></p>
  99. <?php }
  100. if (get_post_meta( get_the_ID(), 'project_more_btn_text', true )){ ?>
  101. <a class="port-more-link" 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 ); ?></a>
  102. <?php } ?>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <?php $norecord=1;} ?>
  108. </div>
  109. </div>
  110. </div>
  111. <?php }
  112. wp_reset_query(); ?>
  113. </div>
  114. </div>
  115. <!-- /Portfolio Section -->
  116. <?php get_footer(); ?>
  117. <!-- /Portfolio Section -->
RAW Paste Data