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 { .archive-page-title {
text-align: center; text-align: center;
} }
._expand_site_item {
cursor: pointer;
}
._expand_site_item:hover {
background: #3374C2;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,6 @@ $showPagePagination = $this->siteSetting('show_page_pagination', true);
<!-- arc-hive insert begins --> <!-- arc-hive insert begins -->
<?php <?php
//$site->pages(); //$site->pages();
// set header image
$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 = '/themes/archive/asset/img/default-header-image.jpg';