<?php
/*
 * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */
?>
<div class="sly-area">
	<h2><?php print ht('metainfo_metainfos') ?></h2>

	<div class="sly-area-content">
		<p><?php print t('metainfo_help_1') ?></p>
		<p><?php print t('metainfo_help_2') ?></p>
		<p><?php print t('metainfo_help_3') ?></p>
	</div>
</div>

<?php foreach ($metainfos as $type => $data): ?>
<div class="sly-area">
	<?php $num = 0; ?>
	<h2><?php print ht('metainfo_metainfos_for', $data['title']) ?></h2>

	<div class="sly-area-content">
		<?php foreach ($data['infos'] as $metainfo): ?>
		<div class="metainfo num<?php print $num++ ?>">
			<h3><?php print sly_translate($metainfo['title'], true) ?><? if (!empty($metainfo['metapage'])): ?> <span>(auf der Metaseite)</span><? endif ?></h3>
			<p><?php print sly_translate($metainfo['description'], true) ?></p>

			<?php if (!empty($metainfo['types'])): ?>
			<p><em><?php print ht('articletypes') ?>:</em> <?php print sly_html(sly_Util_String::humanImplode($metainfo['types'])) ?></p>
			<?php endif ?>
		</div>
		<?php endforeach ?>
	</div>
</div>
<?php endforeach ?>
