diff --git a/2019/images/linux-day-2019.png b/2019/images/linux-day-2019.png new file mode 100644 index 0000000..864ec3c Binary files /dev/null and b/2019/images/linux-day-2019.png differ diff --git a/2019/template/header.php b/2019/template/header.php index b0327ec..29b6710 100644 --- a/2019/template/header.php +++ b/2019/template/header.php @@ -1,74 +1,89 @@ . /* * This is the header of the website */ /* * Args that should be passed: * * $conference (object) Current conference * $intro (true|undefined) If true, you want that damn splash screen */ // do not visit directly defined( 'ABSPATH' ) or exit; +// as default declare empty OG Meta tags +if( ! isset( $args['og'] ) ) { + $args['og'] = []; +} + +// set default OG Meta tags +$args['og'] = array_replace( [ + 'image' => CURRENT_CONFERENCE_URL . '/images/linux-day-2019.png', // It's better an absolute URL here + 'type' => 'website', + 'title' => $conference->getConferenceTitle(), +], $args['og'] ); + ?>