ACC SHELL
<div id="sidebar">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>Momentálně prohlížíte archiv kategorie <?php single_cat_title(''); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>Momentálně prohlížíte archiv <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
ze dne <?php the_time('l, F jS, Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>Momentálně prohlížíte archiv <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
měsíce <?php the_time('F, Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>Momentálně prohlížíte archiv <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
roku <?php the_time('Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>Prohledali jste archiv stránek <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
na výraz <strong>'<?php the_search_query(); ?>'</strong>. Jestliže jste nic nenašli, vyzkoušejte některé z následujících odkazů.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p> Momentálně prohlížíte archiv <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>.</p>
<?php } ?>
</li> <?php }?>
<li>
<h2>Informace</h2>
<ul>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul></li>
<?php global $user_identity,$user_level; get_currentuserinfo();
if ($user_identity) {
if ($user_level >= 1) {
echo '<li><h2>Správa stránek</h2> <ul>';
echo '<li><a href="'.get_settings('siteurl').'/wp-admin/edit-pages.php">'.__('Úprava stránek','Blueleaves').'</a></li>';
echo '<li><a href="'.get_settings('siteurl').'/wp-admin/page-new.php">'.__('Nová stránka','Blueleaves').'</a></li>';
echo '<li><a href="'.get_settings('siteurl').'/wp-admin/index.php">'.__('Redakce','Blueleaves').'</a></li></ul></li>';}}?>
<?php endif; ?>
</ul>
</div>
ACC SHELL 2018