expands site item Collections list

This commit is contained in:
buttle 2021-05-31 15:50:08 +02:00
parent 78606bad26
commit 406a92b3f7
6 changed files with 14 additions and 10 deletions

View File

@ -6,3 +6,9 @@
.archive-page-title {
text-align: center;
}
._expand_site_item {
cursor: pointer;
}
._expand_site_item:hover {
background: #3374C2;
}

View File

@ -1,7 +1,7 @@
(function($) {
$(document).ready(function() {
$('._expandable_site_item').click(function() {
alert('expand');
$('._expand_site_item').click(function() {
$(this).next('tr').toggle();
});
});
})(jQuery)

View File

@ -2,9 +2,9 @@
$summary = $showSummary ? $site->summary() : null;
?>
<tr class="_expandable_site_item">
<tr class="_expand_site_item">
<td>
<?php echo $this->hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
<?= $site->title() ?>
</td>
<td>
<?php if ($site_meta_values != null): ?>
@ -25,12 +25,14 @@ $summary = $showSummary ? $site->summary() : null;
<tr style="display:none">
<td>
<?php if ($site_meta_values != null): ?>
<?= $site_meta_values['thumbnail']; ?>
<img src="<?= $site_meta_values['thumbnail']; ?>" />
<?php endif; ?>
</td>
<td colspan="3">
<?php if ($summary): ?>
<?php echo nl2br($this->escapeHtml($summary)); ?>
<br />
<?php endif; ?>
<?php echo $this->hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
</td>
</tr>

View File

@ -9,7 +9,7 @@ $showLayout = $this->themeSetting('show_layout');
<!-- arc-hive insert begins -->
<?php
$site->pages();
//$site->pages();
// set header image
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
if (!$img_src) {
@ -23,7 +23,6 @@ if (!$img_src) {
height:100px;
}
</style>
<script>
<?php
if ($this->site->title() != "Collections") {

View File

@ -6,7 +6,6 @@ $translate = $this->plugin('translate');
<!-- arc-hive insert begins -->
<?php
//$site->pages();
// set header image
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
if (!$img_src) {
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
@ -19,7 +18,6 @@ if (!$img_src) {
height:100px;
}
</style>
<script>
<?php
if ($this->site->title() != "Collections") {

View File

@ -8,7 +8,6 @@ $showPagePagination = $this->siteSetting('show_page_pagination', true);
<!-- arc-hive insert begins -->
<?php
//$site->pages();
// set header image
$img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
if (!$img_src) {
$img_src = '/themes/archive/asset/img/default-header-image.jpg';