<?php 
    }
    ?>
			</ul>
		<?php 
}
?>

		<?php 
if (count($languages) > 1) {
    ?>
			<?php 
    foreach ($languages as $language) {
        ?>
				<a href="<?php 
        echo original_site_url($language_relative_pages[$language]);
        ?>
"><?php 
        echo $language_data[$language]['short_name'];
        ?>
</a>
			<?php 
    }
    ?>
		<?php 
}
?>

	</div><?php 
// end of header
?>
<?php

if (count($alternates) > 1) {
    ?>
	<?php 
    if (!empty($alternate_default_href)) {
        ?>
		<link rel="alternate" href="<?php 
        echo original_site_url($alternate_default_href);
        ?>
" hreflang="x-default">
	<?php 
    }
    ?>
	<?php 
    foreach ($alternates as $alternate) {
        ?>
		<link rel="alternate" href="<?php 
        echo original_site_url($alternate['href']);
        ?>
" hreflang="<?php 
        echo $alternate['hreflang'];
        ?>
">
	<?php 
    }
}