]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
fix bug #5
authorBanana <mail@bananas-playground.net>
Sat, 3 Apr 2021 14:52:31 +0000 (16:52 +0200)
committerBanana <mail@bananas-playground.net>
Sat, 3 Apr 2021 14:52:31 +0000 (16:52 +0200)
webclient/view/default/advancedsearch/advancedsearch.html
webclient/view/default/collections/collections.html

index 18a07d922f7dc855ab7db761e5c0051732a36971..b46a57ab18901c078e574ad5b22dc54bfeac86c8 100644 (file)
                <div class="uk-card uk-card-default uk-card-small">
                        <div class="uk-card-media-top">
                                <?php if(Summoner::ifset($entry['fields'], 'coverimage')) { ?>
+                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>">
                                <img src="<?php echo $TemplateData['storagePath'].'/'.$entryK.'/'.$entry['fields']['coverimage']['value']; ?>"
                                     alt="<?php echo $entry['fields']['coverimage']['displayname']; ?>">
-
+                               </a>
                                <?php } ?>
                        </div>
                        <div class="uk-card-body uk-visible@l">
index 1f4d5a6733e137009de92243a7e894d82bb5393b..edd562b26b6931a16e9ebeb89a6b9e2c74aaa714 100644 (file)
@@ -3,36 +3,35 @@
        <div class="uk-width-3-4">
                <ul class="uk-pagination" >
                        <?php
-                       if($TemplateData['pagination']['curPage'] > 1) {
-                       echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
-                       <span uk-pagination-previous></span></a></li>';
-                       }
+                               if($TemplateData['pagination']['curPage'] > 1) {
+                                       echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
+                                               <span uk-pagination-previous></span></a></li>';
+                               }
+                               $ellipsisShown = 0;
 
-                       $ellipsisShown = 0;
-                       for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
-                       $active = '';
-                       if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
-
-                       if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
-                       echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
-                                                        title="Goto page '.$i.'">'.$i.'</a></li>';
-                       }
-                       else {
-                       if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
-                       echo '<li class="uk-disabled"><span>&hellip;</span></li>';
-                       $ellipsisShown = 1;
-                       }
-                       if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
-                       echo '<li class="uk-disabled"><span>&hellip;</span></li>';
-                       $ellipsisShown = 2;
-                       }
-                       }
-                       }
+                               for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
+                                       $active = '';
+                                       if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
+                                       if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
+                                               echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
+                                                       title="Goto page '.$i.'">'.$i.'</a></li>';
+                                       }
+                                       else {
+                                               if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
+                                                       echo '<li class="uk-disabled"><span>&hellip;</span></li>';
+                                                       $ellipsisShown = 1;
+                                               }
+                                               if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
+                                                       echo '<li class="uk-disabled"><span>&hellip;</span></li>';
+                                                       $ellipsisShown = 2;
+                                               }
+                                       }
+                               }
 
-                       if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
-                       echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
-                       <span uk-pagination-next></span></a></li>';
-                       }
+                               if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
+                                       echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
+                                               <span uk-pagination-next></span></a></li>';
+                               }
                        ?>
                </ul>
        </div>