2021-04-25 09:49:47 +02:00
|
|
|
<?php
|
|
|
|
$escape = $this->plugin('escapeHtml');
|
|
|
|
$stylesheet = $this->themeSetting('stylesheet');
|
|
|
|
$this->htmlElement('html')->setAttribute('lang', $this->lang());
|
|
|
|
$this->headMeta()->setCharset('utf-8');
|
|
|
|
$this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1');
|
|
|
|
$this->headTitle($this->setting('installation_title', 'Omeka S'))->setSeparator(' · ');
|
|
|
|
if (isset($stylesheet)) {
|
2021-04-25 22:12:03 +02:00
|
|
|
$this->headLink()->prependStylesheet($this->assetUrl("css/$stylesheet.css"));
|
2021-04-25 09:49:47 +02:00
|
|
|
} else {
|
|
|
|
$this->headLink()->prependStylesheet($this->assetUrl('css/default.css'));
|
|
|
|
}
|
|
|
|
$this->headLink()->prependStylesheet($this->assetUrl('css/iconfonts.css', 'Omeka'));
|
2021-06-09 16:54:24 +02:00
|
|
|
// $this->headScript()->prependFile('//cdn.jsdelivr.net/npm/foundation-sites@6.5.3/dist/js/foundation.min.js', 'text/javascript', [
|
|
|
|
// 'integrity' => 'sha256-/PFxCnsMh+nTuM0k3VJCRch1gwnCfKjaP8rJNq5SoBg= sha384-9ksAFjQjZnpqt6VtpjMjlp2S0qrGbcwF/rvrLUg2vciMhwc1UJJeAAOLuJ96w+Nj sha512-UMSn6RHqqJeJcIfV1eS2tPKCjzaHkU/KqgAnQ7Nzn0mLicFxaVhm9vq7zG5+0LALt15j1ljlg8Fp9PT1VGNmDw==',
|
|
|
|
// 'crossorigin' => 'anonymous'
|
|
|
|
// ]);
|
2021-07-21 16:13:36 +02:00
|
|
|
$this->headScript()->prependFile($this->assetUrl('js/foundation.js'));
|
2021-04-25 09:49:47 +02:00
|
|
|
$this->headScript()->prependFile($this->assetUrl('js/global.js', 'Omeka'));
|
2021-05-08 14:09:02 +02:00
|
|
|
|
|
|
|
$this->headScript()->prependFile($this->assetUrl('js/expand-site-list-item.js'));
|
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
$this->headScript()->prependFile($this->assetUrl('vendor/jquery/jquery.min.js', 'Omeka'));
|
2021-07-02 14:17:32 +02:00
|
|
|
// $this->headLink()->prependStylesheet($this->assetUrl("css/archive.css"));
|
2021-04-25 09:49:47 +02:00
|
|
|
$this->trigger('view.layout');
|
|
|
|
$title = $this->pageTitle($site->title());
|
|
|
|
$userBar = $this->userBar();
|
|
|
|
|
|
|
|
$navLayout = ($this->themeSetting('nav_layout')) ? $this->themeSetting('nav_layout') : 'dropdown';
|
|
|
|
$this->htmlElement('body')->appendAttribute('class', $navLayout . '-menu');
|
|
|
|
if ($userBar) {
|
|
|
|
$this->htmlElement('body')->appendAttribute('class', 'user-bar');
|
|
|
|
}
|
2021-06-09 16:54:24 +02:00
|
|
|
|
2021-07-09 13:26:08 +02:00
|
|
|
/*
|
2021-04-25 09:49:47 +02:00
|
|
|
$logo = $this->themeSettingAssetUrl('logo');
|
|
|
|
if ($logo):
|
2021-07-02 14:17:32 +02:00
|
|
|
$titlelogo = '<img class="site-logo" src="' . $this->escapeHtml($logo) . '"' . 'alt="' . $site->title() . '"' . '>';
|
2021-04-25 09:49:47 +02:00
|
|
|
endif;
|
2021-07-09 13:26:08 +02:00
|
|
|
*/
|
2021-04-25 09:49:47 +02:00
|
|
|
?>
|
|
|
|
<?php echo $this->doctype(); ?>
|
|
|
|
<?php echo $this->htmlElement('html'); ?>
|
|
|
|
<head>
|
|
|
|
<?php echo $this->headMeta(); ?>
|
|
|
|
<?php echo $this->headTitle(); ?>
|
|
|
|
<?php echo $this->headLink(); ?>
|
|
|
|
<?php echo $this->headStyle(); ?>
|
|
|
|
<?php echo $this->headScript(); ?>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<?php echo $this->htmlElement('body'); ?>
|
2021-07-02 14:17:32 +02:00
|
|
|
<content class="">
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-07-02 14:17:32 +02:00
|
|
|
<header>
|
|
|
|
<?php echo $userBar; ?>
|
2021-07-09 13:26:08 +02:00
|
|
|
<?php
|
|
|
|
if ($site->title() == "Collections") {
|
|
|
|
echo $this->partial('common/header-collections');
|
|
|
|
} else {
|
|
|
|
echo $this->partial('common/header-default');
|
|
|
|
}
|
|
|
|
?>
|
2021-07-02 14:17:32 +02:00
|
|
|
</header>
|
2021-05-22 15:29:53 +02:00
|
|
|
|
2021-07-09 13:26:08 +02:00
|
|
|
<?php
|
|
|
|
if ($site->title() == "Collections") {
|
|
|
|
echo $this->partial('common/hero-collections');
|
|
|
|
} else {
|
|
|
|
echo $this->partial('common/hero-default');
|
|
|
|
}
|
|
|
|
?>
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-07-05 08:47:00 +02:00
|
|
|
<main>
|
|
|
|
<article>
|
2021-07-05 11:22:53 +02:00
|
|
|
<section class="omekas-entry-content">
|
|
|
|
<?php echo $this->content; ?>
|
|
|
|
</section>
|
2021-07-05 08:47:00 +02:00
|
|
|
</article>
|
2021-07-02 14:17:32 +02:00
|
|
|
<aside>
|
|
|
|
</aside>
|
2021-07-05 08:47:00 +02:00
|
|
|
</main>
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-07-03 09:51:07 +02:00
|
|
|
<footer class="">
|
|
|
|
<?php echo $this->partial('common/footer-archive.phtml'); ?>
|
|
|
|
|
|
|
|
<?php //if ($footerContent = $this->themeSetting('footer')): ?>
|
|
|
|
<?php //echo $footerContent; ?>
|
|
|
|
<?php //else: ?>
|
|
|
|
<?php //echo $this->translate('Powered by Omeka S'); ?>
|
|
|
|
<?php //endif; ?>
|
2021-04-25 09:49:47 +02:00
|
|
|
</footer>
|
2021-07-02 14:17:32 +02:00
|
|
|
<!-- end off-canvas-content -->
|
|
|
|
<!-- </div> -->
|
|
|
|
</content>
|
2021-04-25 09:49:47 +02:00
|
|
|
<script>
|
2021-07-20 11:49:59 +02:00
|
|
|
//$(document).foundation();
|
2021-04-25 09:49:47 +02:00
|
|
|
</script>
|
2021-07-02 14:17:32 +02:00
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
</body>
|
|
|
|
</html>
|