Misc. 2020 tweaks
This commit is contained in:
parent
638fa0235c
commit
d0fcf7eb8a
|
@ -14,12 +14,18 @@
|
||||||
<?php wp_nav_menu(array('theme_location' => 'footer-schedule', 'items_wrap' => '%3$s<br/>' )); ?>
|
<?php wp_nav_menu(array('theme_location' => 'footer-schedule', 'items_wrap' => '%3$s<br/>' )); ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
$blog_details = get_blog_details();
|
||||||
|
$blog_slug = str_replace('/', '', $blog_details->path);
|
||||||
|
if ( $blog_slug != "2020" ) {
|
||||||
|
?>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<h3><?php e_('Други')?></h3>
|
<h3><?php e_('Други')?></h3>
|
||||||
<p>
|
<p>
|
||||||
<?php wp_nav_menu(array('theme_location' => 'footer-others', 'items_wrap' => '%3$s<br/>' )); ?>
|
<?php wp_nav_menu(array('theme_location' => 'footer-others', 'items_wrap' => '%3$s<br/>' )); ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<h3><?php e_('Последвайте ни в:')?></h3>
|
<h3><?php e_('Последвайте ни в:')?></h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
$blog_details = get_blog_details();
|
$blog_details = get_blog_details();
|
||||||
$blog_slug = str_replace('/', '', $blog_details->path);
|
$blog_slug = str_replace('/', '', $blog_details->path);
|
||||||
|
|
||||||
if ($blog_slug == '2019') {
|
if ($blog_slug == '2019' || $blog_slug == '2020') {
|
||||||
echo '<nav style="background: url(\''.get_template_directory_uri().'/img/navbg-2019.png\'); height: 84px">';
|
echo '<nav style="background: url(\''.get_template_directory_uri().'/img/navbg-'.$blog_slug.'.png\'); height: 84px">';
|
||||||
} else {
|
} else {
|
||||||
echo "<nav>";
|
echo "<nav>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue