Advertisement
rasedulh

Untitled

Apr 25th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.44 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage U-Design
  5.  */
  6. if ( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  7.  
  8. global $udesign_options;
  9.  
  10. // construct an array of portfolio categories
  11. $portfolio_categories_array = $udesign_options['portfolio_categories'];
  12.  
  13. if ( $portfolio_categories_array != "" && post_is_in_category_or_descendants( $portfolio_categories_array ) ) :
  14.     // Test if this Post is assigned to the Portfolio category or any descendant and switch the single's template accordingly
  15.     include 'single-Portfolio.php';
  16. else : // Continue with normal Loop (Blog category)
  17.  
  18.     get_header();
  19.  
  20.     $content_position = ( $udesign_options['blog_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16';
  21.     if ( $udesign_options['remove_single_sidebar'] == 'yes' ) $content_position = 'grid_24';
  22. ?>
  23.     <div id="content-container" class="container_24">
  24.     <div id="main-content" class="<?php echo $content_position; ?>">
  25.         <div class="main-content-padding">
  26. <?php           udesign_main_content_top( is_front_page() ); ?>
  27. <?php       if (have_posts()) :
  28.             while (have_posts()) : the_post(); ?>
  29.             <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  30. <?php                       udesign_single_post_entry_before(); ?>
  31.                             <div class="entry">
  32. <?php                           udesign_single_post_entry_top();
  33.  
  34.                                 the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>', 'udesign')); ?>
  35.                                
  36. <?php                           //udesign_single_post_entry_bottom(); ?>
  37.  
  38.                 <div class="testimonial-content">
  39.                     <?php wpmtst_the_thumbnail(); ?>
  40.                    
  41.                     <div class="testimonial-client">
  42.                         <?php wpmtst_the_client(); ?>
  43.                     </div>
  44.                     <div class="clear"></div>
  45.                 </div>
  46.  
  47.  
  48.                 </div>
  49. <?php                       udesign_single_post_entry_after(); ?>
  50.             </div>
  51. <?php           comments_template();
  52.             endwhile; else: ?>
  53.             <p><?php esc_html_e("Sorry, no posts matched your criteria.", 'udesign'); ?></p>
  54. <?php       endif; ?>
  55. <?php           udesign_main_content_bottom(); ?>
  56.         </div><!-- end main-content-padding -->
  57.     </div><!-- end main-content -->
  58. <?php
  59.     if( ( !$udesign_options['remove_single_sidebar'] == 'yes' ) && sidebar_exist('BlogSidebar') ) { get_sidebar('BlogSidebar'); }
  60. ?>
  61.     </div><!-- end content-container -->
  62. <?php
  63. endif; // end normal Loop ?>
  64.  
  65. <div class="clear"></div>
  66.  
  67. <?php
  68.  
  69. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement