Design update for 2021

This commit is contained in:
Ivaylo Markov 2021-07-08 21:22:00 +03:00
parent 81f5de7db8
commit e9859e3937
10 changed files with 16 additions and 4 deletions

View File

@ -10,14 +10,14 @@ add_filter( 'the_excerpt', 'do_shortcode');
// OpenGraph image for FB/Twitter // OpenGraph image for FB/Twitter
// TODO: less hacky solution // TODO: less hacky solution
function og_image( $tags ) { function og_image( $tags ) {
$og_image = esc_url("https://www.openfest.org/2020/wp-content/themes/initfest/img/2020_fb_preview.jpg"); $og_image = esc_url("https://www.openfest.org/2020/wp-content/themes/initfest/img/2021_fb_preview.jpg");
unset( $tags['og:image'] ); unset( $tags['og:image'] );
$tags['og:image'] = $og_image; $tags['og:image'] = $og_image;
unset( $tags['og:image:width'] ); unset( $tags['og:image:width'] );
$tags['og:image:width'] = 1200; $tags['og:image:width'] = 678;
unset( $tags['og:image:height'] ); unset( $tags['og:image:height'] );
$tags['og:image:height'] = 630; $tags['og:image:height'] = 260;
unset( $tags['twitter:image'] ); unset( $tags['twitter:image'] );
$tags['twitter:image'] = $og_image; $tags['twitter:image'] = $og_image;

View File

@ -44,6 +44,9 @@
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; 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>'; #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%;margin-left:-900px;height:100%;width:1900px" /></section>';
} else { } 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>'; 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/2021_fb_preview.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
img/banner-back-2021.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img/banner-bg-2021.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
img/banner-en-2021.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
img/logo-2021.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
img/navbg-2021.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -63,6 +63,15 @@ function getSchedConfig($year = 2017) {
], ],
'hidden_language_tracks' => [59], 'hidden_language_tracks' => [59],
], ],
2021 => [
'conferenceId' => 8,
'eventTypes' => [
'lecture' => 16,
'workshop' => 15,
],
'hidden_language_tracks' => [59],
],
]; ];
return array_merge($globalConfig, $config[$year]); return array_merge($globalConfig, $config[$year]);