<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package o66FsWp
 *
 *  https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
 *
 */
$heading_level = 1;
global  $scope_media_type;
global  $scope_year;
global $global_post_id;
$labelPost = $scope_media_type;
if ($scope_media_type === 'press') {$labelPost = 'stampa';}
$labelTitle = get_field('label_'.$labelPost,$global_post_id );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header entry-header--page">
		<?php o66fswp_main_image(o66_image_sizes::nocrop_container); ?>
		<?php if ( is_front_page() ) {
			$heading_level = '2';
		} ?>
        <div class="entry-header__title-container"><h1 style="text-transform: capitalize"><?php echo $labelTitle.' ('.$scope_year.')';  ?></h1></div>
    </header><?php // o66fswp_post_thumbnail(); ?>
</article>
