Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
130 lines (114 loc) · 8.15 KB
/
Copy pathheader.php
File metadata and controls
130 lines (114 loc) · 8.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<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" />
<meta name="description" content="" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<!--<link rel="icon" type="image/png" href="">-->
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
<title><?php wp_title( ' | ', true, 'right' ) ?></title>
<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(); ?>
<style>
.nav-2025 ul a{
color: white;
}
.nav-2025 ul a:hover{
color: #5bfef8;
}
.nav-2025 .menu > li:hover{
border-top: 0.4em solid #5bfef8;
}
.nav-2025 ul .sub-menu {
background: #13084A;
}
.nav-2025 .current-menu-item a {
color: #5bfef8;
}
</style>
</head>
<body>
<?php
$blog_slug = get_blog_slug();
if ($blog_slug === '2019' || $blog_slug === '2020') {
echo '<nav style="background: url(\''.get_template_directory_uri().'/img/navbg-'.$blog_slug.'.png\'); height: 84px">';
}
elseif ($blog_slug === '2024') {
echo '<nav style="background-image: linear-gradient(#FFFFFF, #BFFAF4);">';
} elseif ($blog_slug === '2025') {
echo '<nav style="background: #13084A; color: white;" class="nav-2025">';
} else {
echo '<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-'.$blog_slug.'.png'; ?>" alt="OpenFest" /></a>
<?php wp_nav_menu( array('theme_location' => 'main-menu') ); ?>
</div>
</nav>
<?php
if(openfest_home_page()){
if ($blog_slug === '2019') {
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>';
#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>';
} else if ($blog_slug === '2021') {
//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>';
//if (of_get_lang() === 'en') {
// 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%;">';
if (of_get_lang() === 'bg') {
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>';
} else if ($blog_slug === '2023') {
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>';
} else if ($blog_slug === '2024') {
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>';
} else if ($blog_slug === '2025') {
if (of_get_lang() === 'bg') {
echo '<section class="banner cf" style="background: url('.get_template_directory_uri().'/img/banner-back-2025-bg.png) top center no-repeat;padding: 0.2em 0 0 0;height: auto;background-size: contain;padding-top: 13.63%;"></section>';
echo '<section class="banner-mobile cf" style="background: url('.get_template_directory_uri().'/img/banner-back-2025-mobile-bg.png) top center no-repeat;padding: 0.2em 0 0 0;height: auto;background-size: contain;padding-top: 35.71%;"></section>';
} else {
echo '<section class="banner cf" style="background: url('.get_template_directory_uri().'/img/banner-back-2025-en.png) top center no-repeat;padding: 0.2em 0 0 0;height: auto;background-size: contain;padding-top: 13.63%;"></section>';
echo '<section class="banner-mobile cf" style="background: url('.get_template_directory_uri().'/img/banner-back-2025-mobile-en.png) top center no-repeat;padding: 0.2em 0 0 0;height: auto;background-size: contain;padding-top: 35.71%;"></section>';
}
} else if ($blog_slug === '2026') {
$uri = get_template_directory_uri();
$lang = of_get_lang();
echo '<section class="banner banner-2026 cf" style="background: url(\''.$uri.'/img/banner-back-2026.jpg\') top repeat-x;padding: 0.2em 0 0 0;height: 258px;"><img src="'.$uri.'/img/banner-'.$lang.'-2026.png" alt="" /></section>';
if ($lang === 'bg') {
$when_label = 'Кога?';
$when_value = '7-8 ноември';
$where_label = 'Къде?';
$where_value = 'Интерпред СТЦ София';
} else {
$when_label = 'When?';
$when_value = '7-8 November';
$where_label = 'Where?';
$where_value = 'Interpred WTC Sofia';
}
echo '<section class="event-meta-2026"><div class="content">';
echo '<div class="event-meta-2026__item"><span class="event-meta-2026__label">'.esc_html($when_label).'</span> <span class="event-meta-2026__value">'.esc_html($when_value).'</span></div>';
echo '<div class="event-meta-2026__item"><span class="event-meta-2026__label">'.esc_html($where_label).'</span> <span class="event-meta-2026__value">'.esc_html($where_value).'</span></div>';
echo '</div></section>';
} else {
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>';
}
}
?>