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 { ._expand_site_item:hover {
background: #3374C2; 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)); ?> <?php echo nl2br($this->escapeHtml($summary)); ?>
<br /> <br />
<?php endif; ?> <?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> </td>
</tr> </tr>

View File

@ -96,8 +96,9 @@ $("#archive_page_title").html('<?php echo $_html ?>');
<?php endif; ?> <?php endif; ?>
<?php $this->trigger('view.show.after'); ?> <?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> </button>
</div> </div>

View File

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

View File

@ -92,6 +92,15 @@ if ($activePage):
<?php echo $this->content; ?> <?php echo $this->content; ?>
</div> </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 $this->trigger('view.show.after'); ?>
<?php /* if ($showPagePagination): */ ?> <?php /* if ($showPagePagination): */ ?>
<?php if (1 == 0): ?> <?php if (1 == 0): ?>