make the logo year-specific

This commit is contained in:
Vasil Kolev 2017-10-25 19:06:24 +03:00 committed by Openfest
parent ce7bbcbbbe
commit 6ad6a010b8
6 changed files with 5 additions and 4 deletions

View File

@ -23,18 +23,19 @@
</head>
<body>
<?php
$blog_details = get_blog_details();
$blog_slug = str_replace('/', '', $blog_details->path);
?>
<nav>
<div class="content cf">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo"><img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="OpenFest" /></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo"><img src="<?php echo get_template_directory_uri().'/img/logo-'.$blog_slug.'.png'; ?>" alt="OpenFest" /></a>
<?php wp_nav_menu( array('theme_location' => 'main-menu') ); ?>
</div>
</nav>
<?php
if(openfest_home_page()){
$blog_details = get_blog_details();
$blog_slug = str_replace('/', '', $blog_details->path);
echo '<section class="banner cf" style="background: url(\''.get_template_directory_uri().'/img/banner-back-'.$blog_slug.'.jpg\') top repeat-x;padding: 0.2em 0 0 0;height: 258px;"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" /></section>';
}
?>

BIN
img/logo-2014.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
img/logo-2015.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
img/logo-2016.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
img/logo-2017.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB