Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage u-design
- */
- global $udesign_options;
- // construct an array of portfolio categories
- $portfolio_categories_array = explode( ',', $udesign_options['portfolio_categories'] );
- if ( $portfolio_categories_array != "" && post_is_in_category_or_descendants( $portfolio_categories_array ) ) :
- // Test if this Post is assigned to the Portfolio category or any descendant and switch the single's template accordingly
- include 'single-Portfolio.php';
- else : // Continue with normal Loop (Blog category)
- get_header();
- $content_position = ( $udesign_options['blog_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16';
- if ( $udesign_options['remove_single_sidebar'] == 'yes' ) $content_position = 'grid_24';?>
- <div id="content-container" class="container_24">
- <div id="main-content" class="<?php echo $content_position; ?>">
- <div class="main-content-padding">
- <div id="dados_autor">
- <?php the_author();?>
- <font color="gray"><h9><?php the_time('d/m/y');?></h9></font>
- </div>
- <?php echo do_shortcode('[divider]'); ?>
- <?php if (have_posts()) :
- while (have_posts()) : the_post(); ?>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <div class="entry">
- <?php // Post Image
- if( $udesign_options['display_post_image_in_single_post'] == 'yes' ) display_post_image_fn( $post->ID, false );
- the_content(__('<p class="serif">Leia o restante desta entrada »</p>', 'udesign'));
- wp_link_pages(array('before' => '<p><strong>Páginas:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
- <?php echo do_shortcode('[divider]'); ?>
- <div class="postmetadata">
- <?php echo ( $udesign_options['show_postmetadata_tags'] == 'yes' ) ? the_tags(__('<div>Tags: ', 'udesign'), ', ', '</div>') : ''; ?>
- </div>
- </div>
- </div>
- <?php comments_template();
- endwhile; else: ?>
- <p><?php esc_html_e("Desculpe, sem postagens relacionadas a sua busca!", 'udesign'); ?></p>
- <?php endif; ?>
- </div><!-- end main-content-padding -->
- </div><!-- end main-content -->
- <?php
- if( ( !$udesign_options['remove_single_sidebar'] == 'yes' ) && sidebar_exist('BlogSidebar') ) { get_sidebar('BlogSidebar'); }
- ?>
- </div><!-- end content-container -->
- <?php
- endif; // end normal Loop ?>
- <div class="clear"></div>
- <?php
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement