Guest User

Untitled

a guest
Mar 14th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. <?php
  2. get_header ();
  3. ?>
  4.  
  5.  
  6.  
  7. <!-- Page Title -->
  8. <section class="page-header">
  9. <div class="container">
  10. <div class="row">
  11. <div class="col-md-6">
  12. <div class="page-title">
  13. <h2><?php
  14. if( is_archive() ){
  15. ?>
  16.  
  17.  
  18. <h2><?php echo single_cat_title("", false); ?></h2>
  19.  
  20.  
  21. <?php
  22. //the_archive_title();
  23.  
  24. }
  25. else if( is_home() ){
  26.  
  27. wp_title(' ');
  28.  
  29. }
  30. else{
  31.  
  32. the_title();
  33. }
  34. ?></h2>
  35. <p><?php bloginfo('description');?></p>
  36. </div>
  37. </div>
  38. <div class="col-md-6">
  39. <ul class="page-breadcrumb">
  40. <?php if (function_exists('busiprof_custom_breadcrumbs')) busiprof_custom_breadcrumbs();?>
  41. </ul>
  42. </div>
  43. </div>
  44. </div>
  45. </section>
  46. <!-- End of Page Title -->
  47. <div class="clearfix"></div>
  48.  
  49. <?php
  50. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  51. ?>
  52. <!-- Container -->
  53. <<section id="section" class="portfolio">
  54. <div class="container">
  55. <!-- Section Title -->
  56. <div class="row">
  57. <div class="col-md-12">
  58. <div class="section-title">
  59. <?php
  60. if( $current_options['project_texonomy_tag_line'] != '' )
  61. { ?>
  62. <h1 class="section-heading"><?php echo $current_options['project_texonomy_tag_line']; ?> </h1>
  63. <?php }
  64. if( $current_options['project_texonomy_description_tag'] != '')
  65. {
  66. ?>
  67. <p><?php echo $current_options['project_texonomy_description_tag']; ?></p>
  68. <?php } ?>
  69. </div>
  70. </div>
  71. </div>
  72. <!-- /Section Title -->
  73. <!-- Portfolio Item -->
  74. <div class="row">
  75. <?php
  76. $j=1;
  77.  
  78.  
  79. if( have_posts() )
  80. { while ( have_posts() ) : the_post();
  81. ?>
  82. <?php if($current_options['taxonomy_project_list'] == 2) { ?>
  83. <div class="col-md-6 col-sm-6 col-xs-12">
  84.  
  85. <?php } else if($current_options['taxonomy_project_list'] == 3) { ?>
  86. <div class="col-md-4 col-sm-6 col-xs-12">
  87.  
  88.  
  89. <?php } else if($current_options['taxonomy_project_list'] == 4) { ?>
  90. <div class="col-md-3 col-sm-6 col-xs-12">
  91. <?php } ?>
  92.  
  93. <aside class="post">
  94. <figure class="post-thumbnail">
  95. <?php if(has_post_thumbnail())
  96. {
  97. the_post_thumbnail( );
  98. $post_thumbnail_id = get_post_thumbnail_id();
  99. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  100. }
  101. ?>
  102. <div class="thumbnail-showcase-overlay">
  103. <div class="thumbnail-showcase-overlay-inner">
  104. <div class="thumbnail-showcase-icons">
  105. <?php if(isset($post_thumbnail_url)){ ?>
  106. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  107. <?php } ?>
  108. </div>
  109. </div>
  110. </div>
  111.  
  112. </figure>
  113. <div class="portfolio-info">
  114. <?php
  115. if(get_post_meta( get_the_ID(),'portfolio_link', true ))
  116. { $portfolio_link=get_post_meta( get_the_ID(),'portfolio_link', true ); }
  117. else { $portfolio_link = get_post_permalink(); } ?>
  118. <div class="entry-header">
  119. <h4 class="entry-title"><a href="<?php echo $portfolio_link; ?>" <?php if(get_post_meta( get_the_ID(),'portfolio_target', true )) { echo "target='_blank'"; } ?> ><?php echo the_title(); ?></a></h4>
  120. </div>
  121. <div class="entry-content">
  122. <p><?php echo get_post_meta( get_the_ID(),'project_title_description', true ); ?></p>
  123. </div>
  124. </div>
  125. </aside>
  126. </div>
  127. <?php
  128. if($j%$current_options['taxonomy_project_list']==0){ echo "<div class='clearfix'></div>"; } $j++; $norecord=1; endwhile; ?>
  129. </div>
  130. <?php wp_reset_postdata();} ?>
  131. </div>
  132. </div>
  133. </div>
  134. </section>
  135. <!-- End of Portfolio Section -->
  136. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment