feat(select-entries) : better urls and bigger images

This commit is contained in:
Florian Schmitt 2025-01-30 11:31:24 +03:00
parent ed32022d7e
commit 3926fb3208

View file

@ -1,7 +1,7 @@
<?php if( count($fiches)>0 ) : ?> <?php if( count($fiches)>0 ) : ?>
<?php <?php
$imgwidth=450; $imgwidth=600;
$imgheight=450; $imgheight=600;
$classnb = 1; $classnb = 1;
$agenda = 'tout'; $agenda = 'tout';
$datejour = time(); $datejour = time();
@ -16,7 +16,7 @@ $modal = ''; // declaration d'une chaine de char vide
<figure class="agenda-entry" data-tag="<?php echo $fiche['id_fiche'];?>"> <figure class="agenda-entry" data-tag="<?php echo $fiche['id_fiche'];?>">
<a class="modalbox" <a class="modalbox"
title="<?php echo htmlspecialchars($fiche['bf_titre']);?>" title="<?php echo htmlspecialchars($fiche['bf_titre']);?>"
href="<?php echo $fiche['url'].'/iframe'; ?>" data-iframe="1"> href="<?php echo $fiche['url']; ?>" data-iframe="1">
<div class="image"> <div class="image">
<?php if (isset($fiche['imagebf_image']) && $fiche['imagebf_image']!='') : ?> <?php if (isset($fiche['imagebf_image']) && $fiche['imagebf_image']!='') : ?>
<img loading="lazy" class="img-responsive" alt="" <img loading="lazy" class="img-responsive" alt=""
@ -29,7 +29,7 @@ $modal = ''; // declaration d'une chaine de char vide
;?>> ;?>>
<?php else : ?> <?php else : ?>
<img loading="lazy" class="trombi-image img-placeholder" alt="" <img loading="lazy" class="trombi-image img-placeholder" alt=""
src="tools/bazar/libs/vendor/placeholder.php?size=300x300&amp;bg=efefef&amp;text="> src="tools/bazar/libs/vendor/placeholder.php?size=600x600&amp;bg=efefef&amp;text=">
<i class="trombi-image icon-placeholder fa fa-calendar"></i> <i class="trombi-image icon-placeholder fa fa-calendar"></i>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -116,6 +116,9 @@ $modal = ''; // declaration d'une chaine de char vide
</style> </style>
<script> <script>
document.addEventListener("DOMContentLoaded", function(event) { document.addEventListener("DOMContentLoaded", function(event) {
$('.modal').on('click', function() {
$(this).attr('href', $(this).attr('href')+'/iframe')
})
$('.btn-select').on('click', function() { $('.btn-select').on('click', function() {
$(this).parent().toggleClass('selected') $(this).parent().toggleClass('selected')
if ($('.selected').length > 0) { if ($('.selected').length > 0) {