update main branch #47

Merged
jorge merged 166 commits from develop into main 2021-12-01 11:20:13 +01:00
8 changed files with 142 additions and 54 deletions
Showing only changes of commit 89d6822cb1 - Show all commits

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

View File

@ -1,16 +0,0 @@
<main class="">
<a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off">
<?php if ($this->themeSetting('logo')): ?>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>" alt="<?php echo $site->title(); ?>" title="<?php echo $site->title(); ?>" class="logo">
<?php else: ?>
<img src="<?php echo $this->assetUrl('img/ARC-HIVE-logo.svg');?>" class="logo" title="an arc-hive project" alt="arc-hive logo" />
<?php endif; ?>
<h1 class="site-name"><?php echo $site->title(); ?></h1>
<h2 class="site-description">an integrative digital bio-art platform</h2>
</a>
</main>
<nav>
<menu class="">
<?php echo $site->publicNav()->menu()->setPartial('common/foundation-navigation.phtml')->renderPartialWithParams(['layout' => 'dropdown']); ?>
</menu>
</nav>

View File

@ -0,0 +1,36 @@
<main class="">
<a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off">
<?php if ($this->themeSetting('logo')): ?>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
alt="<?php echo $site->title(); ?>"
title="<?php echo $site->title(); ?>"
class="logo">
<?php else: ?>
<img src="<?php echo $this->assetUrl('img/ARC-HIVE-logo.svg');?>"
class="logo"
title="an arc-hive project"
alt="arc-hive logo" />
<?php endif; ?>
<h1 class="site-name"><?php echo $site->title(); ?></h1>
<h2 class="site-description">an integrative digital bio-art platform</h2>
</a>
</main>
<nav>
<menu class="">
<ul>
<li>
Este menu no lo genera Omeka.
</li>
<li>
Creo que emula el menu del wordpress.
</li>
</ul>
<?php /*
echo $site->publicNav()
->menu()
->setPartial('common/foundation-navigation.phtml')
->renderPartialWithParams(['layout' => 'dropdown']);
*/
?>
</menu>
</nav>

View File

@ -0,0 +1,33 @@
<main class="">
<a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off">
<?php if ($this->themeSetting('logo')): ?>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
alt="<?php echo $site->title(); ?>"
title="<?php echo $site->title(); ?>"
class="logo">
<?php else: ?>
<img src="<?php echo $this->assetUrl('img/ARC-HIVE-logo.svg');?>"
class="logo"
title="an arc-hive project"
alt="arc-hive logo" />
<?php endif; ?>
<h1 class="site-name"><?php echo $site->title(); ?></h1>
<h2 class="site-description">an integrative digital bio-art platform</h2>
</a>
</main>
<nav>
<menu class="">
<ul>
<li>
Segun el diseño, este menu no existe
</li>
</ul>
<?php /*
echo $site->publicNav()
->menu()
->setPartial('common/foundation-navigation.phtml')
->renderPartialWithParams(['layout' => 'dropdown']);
*/
?>
</menu>
</nav>

View File

@ -3,21 +3,31 @@
<?php if ($this->themeSetting('logo')): ?> <?php if ($this->themeSetting('logo')): ?>
<section class="slide"> <section class="slide">
<figure> <figure>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>" alt="<?php echo $site->title(); ?>" title="<?php echo $site->title(); ?>" class="logo" /> <img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
alt="<?php echo $site->title(); ?>"
title="<?php echo $site->title(); ?>"
class="logo" />
</figure> </figure>
</section> </section>
<?php else: ?> <?php else: ?>
<section class="slide"> <section class="slide">
<!-- <p>ARC-HIVE is a curatorial space that gathers artworks that work in the continuum of biomateriality, from DNA, proteins, and cells to full organisms. They can be manipulation, modification or (re)creation of life and living processes.</p> --> <!-- <p>ARC-HIVE is a curatorial space that gathers artworks that work in the continuum of biomateriality, from DNA, proteins, and cells to full organisms. They can be manipulation, modification or (re)creation of life and living processes.</p> -->
<figure> <figure>
<img src="<?php echo $this->assetUrl('img/ARC-HIVE-logo.svg');?>" class="logo" title="an arc-hive project" alt="arc-hive logo" /> <img src="<?php echo $this->assetUrl('img/ARC-HIVE-logo.svg');?>"
class="logo"
title="an arc-hive project"
alt="arc-hive logo" />
</figure> </figure>
</section> </section>
<?php endif; ?> <?php endif; ?>
</main> </main>
<aside> <aside>
<h2>collections</h2> <h2>
<a href="<?= $this->site->url() ?>">
<?= $this->site->title() ?>
</a>
</h2>
<?php echo $this->partial('common/search-form.phtml'); ?> <?php echo $this->partial('common/search-form.phtml'); ?>
</aside> </aside>

View File

@ -0,0 +1,27 @@
<section class="hero omeka">
<main class="slides">
<section class="slide">
<figure>
<img class="arc-page-header-img"
title="an arc-hive project"
alt="collection logo" />
</figure>
</section>
</main>
<aside>
<h2>
<a href="<?= $this->site->url() ?>">
<?= $this->site->title() ?>
</a>
</h2>
<?php
echo $site->publicNav()
->menu()
->setPartial('common/foundation-navigation.phtml')
->renderPartialWithParams(['layout' => 'dropdown']);
?>
<?php echo $this->partial('common/search-form.phtml'); ?>
</aside>
</section>

View File

@ -31,11 +31,12 @@ if ($userBar) {
$this->htmlElement('body')->appendAttribute('class', 'user-bar'); $this->htmlElement('body')->appendAttribute('class', 'user-bar');
} }
/*
$logo = $this->themeSettingAssetUrl('logo'); $logo = $this->themeSettingAssetUrl('logo');
if ($logo): if ($logo):
$titlelogo = '<img class="site-logo" src="' . $this->escapeHtml($logo) . '"' . 'alt="' . $site->title() . '"' . '>'; $titlelogo = '<img class="site-logo" src="' . $this->escapeHtml($logo) . '"' . 'alt="' . $site->title() . '"' . '>';
endif; endif;
*/
?> ?>
<?php echo $this->doctype(); ?> <?php echo $this->doctype(); ?>
<?php echo $this->htmlElement('html'); ?> <?php echo $this->htmlElement('html'); ?>
@ -52,10 +53,22 @@ endif;
<header> <header>
<?php echo $userBar; ?> <?php echo $userBar; ?>
<?php echo $this->partial('common/header-archive'); ?> <?php
if ($site->title() == "Collections") {
echo $this->partial('common/header-collections');
} else {
echo $this->partial('common/header-default');
}
?>
</header> </header>
<?php echo $this->partial('common/hero-archive.phtml'); ?> <?php
if ($site->title() == "Collections") {
echo $this->partial('common/hero-collections');
} else {
echo $this->partial('common/hero-default');
}
?>
<main> <main>
<article> <article>

View File

@ -5,39 +5,24 @@ $showPagePagination = $this->siteSetting('show_page_pagination', true);
?> ?>
<!-- arc-hive insert begins -->
<!-- arc-hive page header-image insert begins -->
<?php <?php
//$site->pages(); $img_src = null;
$img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page); $img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
if (!$img_src) { if (!$img_src) {
$img_src = '/themes/archive/asset/img/default-header-image.jpg'; $img_src = $this->assetUrl('img/ARC-HIVE-logo.svg');
}
if ($this->site->title() == "Collections") {
$image_height = "300px";
} else {
$image_height = "200px";
} }
?> ?>
<style> <style>
#archive_header_img { .arc-page-header-img {
background: url("<?= $img_src ?>") no-repeat; content: url("<?= $img_src ?>");
width: 100%;
height: <?= $image_height ?>;
} }
</style> </style>
<script>
<?php <?php
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
?> ?>
$("#archive_page_title").html('<?php echo $_html ?>');
</script>
<!-- arc-hive insert ends -->
<?php /* <!-- arc-hive page header-image insert ends -->
echo $page->id();
$this->pageTitle($page->title());
*/
?>
<?php <?php
$nav = $site->publicNav(); $nav = $site->publicNav();