Misc. 2020 tweaks

This commit is contained in:
Ivaylo Markov 2020-09-05 11:38:33 +03:00
parent 638fa0235c
commit d0fcf7eb8a
2 changed files with 8 additions and 2 deletions

View File

@ -14,12 +14,18 @@
<?php wp_nav_menu(array('theme_location' => 'footer-schedule', 'items_wrap' => '%3$s<br/>' )); ?>
</p>
</div>
<?php
$blog_details = get_blog_details();
$blog_slug = str_replace('/', '', $blog_details->path);
if ( $blog_slug != "2020" ) {
?>
<div class="col4">
<h3><?php e_('Други')?></h3>
<p>
<?php wp_nav_menu(array('theme_location' => 'footer-others', 'items_wrap' => '%3$s<br/>' )); ?>
</p>
</div>
<?php } ?>
<div class="col4">
<h3><?php e_('Последвайте ни в:')?></h3>
<p>

View File

@ -27,8 +27,8 @@
$blog_details = get_blog_details();
$blog_slug = str_replace('/', '', $blog_details->path);
if ($blog_slug == '2019') {
echo '<nav style="background: url(\''.get_template_directory_uri().'/img/navbg-2019.png\'); height: 84px">';
if ($blog_slug == '2019' || $blog_slug == '2020') {
echo '<nav style="background: url(\''.get_template_directory_uri().'/img/navbg-'.$blog_slug.'.png\'); height: 84px">';
} else {
echo "<nav>";
}