Compare commits

..

No commits in common. "e8a0f338e2fb32708bc36a9f36e19b71fe8b380a" and "f83beafb524d91dc5d2e9adbd46feb268830d356" have entirely different histories.

4 changed files with 12 additions and 15 deletions

View File

@ -16,7 +16,7 @@
</div>
<?php
$blog_slug = get_blog_slug();
if ( $blog_slug !== '2020' ) {
if ( $blog_slug != "2020" ) {
?>
<div class="col4">
<h3><?php e_('Други')?></h3>

View File

@ -26,13 +26,10 @@
<?php
$blog_slug = get_blog_slug();
if ($blog_slug === '2019' || $blog_slug === '2020') {
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: none;">';
} else {
echo '<nav>';
echo "<nav>";
}
?>
<div class="content cf">
@ -43,12 +40,12 @@
</nav>
<?php
if(openfest_home_page()){
if ($blog_slug === '2019') {
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') {
} 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') {
//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">';
@ -59,7 +56,7 @@
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') {
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">';
@ -67,10 +64,10 @@
echo '</section>';
} else if ($blog_slug === '2023') {
} 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') {
} 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 {

View File

@ -45,7 +45,7 @@ get_header(); ?>
<?php
$sponsor_count++;
if ($sponsor_count % 2 === 0) {
if ($sponsor_count % 2 == 0) {
?>
</section>
<section class="content grid sponsors-item">

View File

@ -181,9 +181,9 @@ function strftime (string $format, $timestamp = null, ?string $locale = null) :
$prefix = $match[1];
$char = $match[2];
$pattern = '%'.$char;
if ($pattern === '%n') {
if ($pattern == '%n') {
return "\n";
} elseif ($pattern === '%t') {
} elseif ($pattern == '%t') {
return "\t";
}