Design update for 2021
|
@ -10,14 +10,14 @@ add_filter( 'the_excerpt', 'do_shortcode');
|
|||
// OpenGraph image for FB/Twitter
|
||||
// TODO: less hacky solution
|
||||
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'] );
|
||||
$tags['og:image'] = $og_image;
|
||||
unset( $tags['og:image:width'] );
|
||||
$tags['og:image:width'] = 1200;
|
||||
$tags['og:image:width'] = 678;
|
||||
unset( $tags['og:image:height'] );
|
||||
$tags['og:image:height'] = 630;
|
||||
$tags['og:image:height'] = 260;
|
||||
|
||||
unset( $tags['twitter:image'] );
|
||||
$tags['twitter:image'] = $og_image;
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
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 {
|
||||
} 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 {
|
||||
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>';
|
||||
}
|
||||
}
|
||||
|
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 244 B |
BIN
img/navbg.jpg
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.6 KiB |
|
@ -63,6 +63,15 @@ function getSchedConfig($year = 2017) {
|
|||
],
|
||||
'hidden_language_tracks' => [59],
|
||||
],
|
||||
2021 => [
|
||||
'conferenceId' => 8,
|
||||
'eventTypes' => [
|
||||
'lecture' => 16,
|
||||
'workshop' => 15,
|
||||
],
|
||||
'hidden_language_tracks' => [59],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
return array_merge($globalConfig, $config[$year]);
|
||||
|
|