adds 'view' button in site list

This commit is contained in:
buttle 2021-05-31 18:00:30 +02:00
parent 551ba6b214
commit 3bb4f476d1
5 changed files with 30 additions and 5 deletions

View File

@ -12,3 +12,15 @@
._expand_site_item:hover {
background: #3374C2;
}
.end_of_page_button {
cursor: pointer;
text-transform: uppercase;
font-size: 2em;
margin-top: 2em;
border: double;
}
.go_to_site_button {
cursor: pointer;
text-transform: uppercase;
border: double;
}

View File

@ -33,6 +33,9 @@ $summary = $showSummary ? $site->summary() : null;
<?php echo nl2br($this->escapeHtml($summary)); ?>
<br />
<?php endif; ?>
<?php echo $this->hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
<button class="go_to_site_button"
onclick="window.location.href = '<?= $site->siteUrl() ?>'">
View
</button>
</td>
</tr>

View File

@ -96,8 +96,9 @@ $("#archive_page_title").html('<?php echo $_html ?>');
<?php endif; ?>
<?php $this->trigger('view.show.after'); ?>
<button onclick="window.history.back()">
<h3 class="label">Back</h3>
<button class="end_of_page_button" onclick="window.history.back()">
Back
</button>
</div>

View File

@ -38,8 +38,8 @@ $("#archive_page_title").html('<?php echo $_html ?>');
<?php echo $media->render(); ?>
<?php echo $media->displayValues(); ?>
<button onclick="window.history.back()">
<h3 class="label">Back</h3>
<button class="end_of_page_button" onclick="window.history.back()">
Back
</button>
<?php $this->trigger('view.show.after'); ?>

View File

@ -92,6 +92,15 @@ if ($activePage):
<?php echo $this->content; ?>
</div>
<?php if ($this->site->title() != "Collections") { ?>
<button class="end_of_page_button" onclick="window.location.href = '/'">
Collection index
</button>
<?php } ?>
<?php $this->trigger('view.show.after'); ?>
<?php /* if ($showPagePagination): */ ?>
<?php if (1 == 0): ?>