2014-09-30 12:26:23 +03:00
<! DOCTYPE html >
< html < ? php language_attributes (); ?> >
< head >
2023-09-02 23:09:36 +03:00
2014-09-30 12:26:23 +03:00
< meta http - equiv = " Content-Type " content = " text/html; charset=utf-8 " />
< meta http - equiv = " imagetoolbar " content = " no " />
< meta name = " author " content = " OpenFest " />
< meta name = " copyright " content = " OpenFest " />
< meta name = " robots " content = " follow,index " />
< meta name = " title " content = " " />
< meta name = " keywords " content = " " lang = " en-us " />
2014-10-04 17:31:15 +03:00
< meta name = " description " content = " " />
2014-09-30 12:26:23 +03:00
2014-10-04 17:31:15 +03:00
< meta name = " viewport " content = " user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0 " />
2015-10-16 14:23:32 +03:00
<!--< link rel = " icon " type = " image/png " href = " " >-->
2023-10-16 22:11:24 +03:00
< link rel = " shortcut icon " href = " <?php echo get_stylesheet_directory_uri(); ?>/favicon.ico " />
2023-09-02 23:09:36 +03:00
2023-10-16 22:11:24 +03:00
< title >< ? php wp_title ( ' | ' , true , 'right' ) ?> </title>
2014-09-30 12:26:23 +03:00
2014-10-04 17:31:15 +03:00
< link href = " //maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css " rel = " stylesheet " >
< link rel = " stylesheet " type = " text/css " href = " <?php echo get_stylesheet_uri(); ?> " />
< ? php wp_head (); ?>
2023-09-02 23:09:36 +03:00
2014-09-30 12:26:23 +03:00
</ head >
< body >
2017-10-25 19:06:24 +03:00
< ? php
2023-09-08 13:31:19 +03:00
$blog_slug = get_blog_slug ();
2019-06-17 19:42:18 +03:00
2024-10-10 20:44:12 +03:00
if ( $blog_slug === '2019' || $blog_slug === '2020' ) {
2020-09-05 11:38:33 +03:00
echo '<nav style="background: url(\'' . get_template_directory_uri () . '/img/navbg-' . $blog_slug . '.png\'); height: 84px">' ;
2024-10-10 20:44:34 +03:00
}
elseif ( $blog_slug === '2024' ) {
echo '<nav style="background: none;">' ;
2019-06-17 19:42:18 +03:00
} else {
2024-10-10 20:44:12 +03:00
echo '<nav>' ;
2019-06-17 19:42:18 +03:00
}
2017-10-25 19:06:24 +03:00
?>
2014-10-04 17:31:15 +03:00
< div class = " content cf " >
2017-10-25 19:06:24 +03:00
< 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 >
2023-09-02 23:09:36 +03:00
2014-10-04 17:31:15 +03:00
< ? php wp_nav_menu ( array ( 'theme_location' => 'main-menu' ) ); ?>
</ div >
</ nav >
2023-09-02 23:09:36 +03:00
< ? php
2014-10-07 17:02:23 +03:00
if ( openfest_home_page ()){
2024-10-10 20:44:12 +03:00
if ( $blog_slug === '2019' ) {
2019-06-17 19:42:18 +03:00
echo '<section class="banner cf" style="background: url(\'' . get_template_directory_uri () . '/img/banner-back-' . $blog_slug . '.jpg\') top repeat-x; background-size:cover; position:relative; padding: 0.2em 0 0 0;height: 400px;"><img src="' . get_template_directory_uri () . '/img/banner-' . of_get_lang () . '-' . $blog_slug . '.png" alt="" style="position:absolute;top:0;left:50%;margin-left:-550px;height:100%;width:430px" /></section>' ;
2023-09-02 23:09:36 +03:00
#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: 400px;"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" style="padding-right: 35%; margin-top: -0.2em;;height:400px" /></section>';
2024-10-10 20:44:12 +03:00
} else if ( $blog_slug === '2021' ) {
2022-09-28 13:53:17 +03:00
//echo '<section class="banner cf" style="background: url(\''.get_template_directory_uri().'/img/banner-back-'.$blog_slug.'.jpg\') top repeat-x; background-size:cover; position:relative; padding: 0.2em 0 0 0;height: 400px;"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" style="position:absolute;top:0;left:50%;height:100%;width:608px" /></section>';
2024-10-10 20:44:12 +03:00
//if (of_get_lang() === 'en') {
2022-09-28 13:53:17 +03:00
// echo '<section class="banner cf" style="background: url(\''.get_template_directory_uri().'/img/banner-back-'.$blog_slug.'.jpg\') top repeat-x; background-size:cover; position:relative; padding: 0.2em 0 0 0;height: 400px;"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" style="position:absolute;top:0;left:50%;height:100%;width:608px" /></section>';
//} else {
// echo '<section class="banner cf content" style="top: repeat-x; background-size:cover; position:relative; padding: 0.2em 0 0 0;height: 400px; background: none">';
// echo '<img src="'.get_template_directory_uri().'/img/banner-back-2021.svg" alt="" style="position:absolute;top:0;right:65%;height:100%;">';
// echo '<img src="'.get_template_directory_uri().'/img/banner-bg-2021.svg" alt="" style="position:absolute;top:0;left:50%;height:100%;width:608px">';
// echo '</section>';
//}
echo '<section class="banner cf content" style="top: repeat-x; background-size:cover; position:relative; padding: 0.2em 0 0 0;height: 400px; background: none">' ;
echo '<img src="' . get_template_directory_uri () . '/img/banner-back-2021.svg" alt="" style="position:absolute;top:0;right:65%;height:100%;">' ;
2024-10-10 20:44:12 +03:00
if ( of_get_lang () === 'bg' ) {
2022-09-28 13:53:17 +03:00
echo '<img src="' . get_template_directory_uri () . '/img/banner-bg-2021.svg" alt="" style="position:absolute;top:0;left:50%;height:100%;width:608px">' ;
} else {
echo '<img src="' . get_template_directory_uri () . '/img/banner-en-2021.png" alt="" style="position:absolute;top:0;left:50%;height:100%;width:608px">' ;
}
echo '</section>' ;
2021-07-08 21:22:00 +03:00
2024-10-10 20:44:12 +03:00
} else if ( $blog_slug === '2023' ) {
2023-09-08 13:04:50 +03:00
echo '<section class="banner cf" style="background: url(' . get_template_directory_uri () . '/img/banner-back-2023.png) top center no-repeat;padding: 0.2em 0 0 0;height: 258px;"><img src="' . get_template_directory_uri () . '/img/banner-' . of_get_lang () . '-2023.png" alt="" style="margin-left: calc(40vw - 428px);" /></section>' ;
2023-09-02 23:09:36 +03:00
2024-10-10 20:44:12 +03:00
} else if ( $blog_slug === '2024' ) {
2024-10-10 00:03:09 +03:00
echo '<section class="banner cf" style="background: url(' . get_template_directory_uri () . '/img/banner-back-2024.png) top center no-repeat;padding: 0.2em 0 0 0;height: 258px;"></section>' ;
2021-07-08 21:22:00 +03:00
} else {
2019-06-17 19:42:18 +03:00
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>' ;
}
2014-10-04 17:31:15 +03:00
}
?>