ACC SHELL

Path : /srv/www/vhosts/laboserv/wp-content/themes/laboserv/
File Upload :
Current File : //srv/www/vhosts/laboserv/wp-content/themes/laboserv/single.php

<?php

 /**
 * Šablona pro zobrazení všech samostatných stránek stránku.
 *
 *
 * @package WordPress
 * @subpackage Laboserv
 * @since Laboserv 0.1
 */
 

get_header(); ?>

	<div id="main-content">
	
		
	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
		<div id="left-sidebar" class="widget-area" role="complementary">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
		</div>
	<?php endif; ?>
	
	<?php while ( have_posts() ) : the_post(); ?>
	
	<?php $sidebar = get_post_meta($post->ID, "sidebar", true);
	//echo $sidebar;
	if (!strcmp($sidebar, 'poradna')) { ?>
		<div id="text-area" class="site-content no-right-sidebar">
		
		
		<div id="content" role="main">
			<div class="breadcrumbs">
		<?php if(function_exists('bcn_display'))
		{ bcn_display(); }
		?>
		</div>
			
				<?php get_template_part( 'content', 'page' ); ?>
				<?php comments_template( '', true ); ?>
			

		</div><!-- #content -->
		<?php if ( is_active_sidebar( 'sidebar-3' ) ) { ?>
		<div id="right-sidebar" class="widget-area sidebar-3" role="complementary">
			<?php dynamic_sidebar( 'sidebar-3' ); ?>
		</div><!-- #secondary -->
		<?php } ?>
		
	</div><!-- #primary -->
	<?php } else { ?>
	
	<div id="text-area" class="site-content">		
		<div id="content" role="main">
				<?php get_template_part( 'content', get_post_format() ); ?>

				<nav class="nav-single">
					<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
					<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
					<span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
				</nav><!-- .nav-single -->

				<?php comments_template( '', true ); ?>
				
		</div><!-- #content -->
	</div><!-- #primary -->
	<?php } ?>
	
	<?php $sidebar = get_post_meta($post->ID, "sidebar", true);
	//echo $sidebar;
	if (strcmp($sidebar, 'poradna')) { ?>
	
	
		<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
		<div id="right-sidebar" class="widget-area" role="complementary">
			<?php dynamic_sidebar( 'sidebar-2' ); ?>
		</div><!-- #secondary -->
		<?php endif; ?>
		
	<?php } ?>
	
	
	<?php endwhile; // end of the loop.
			?>
	<?php //if (!strcmpget_post_format()) 
	?>
	
	
	<div class="clear"></div>
</div>
<?php
//get_sidebar();
?>
<?php get_footer(); ?>

ACC SHELL 2018