feat(select-entries) : better urls and bigger images
This commit is contained in:
parent
ed32022d7e
commit
3926fb3208
1 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php if( count($fiches)>0 ) : ?>
|
||||
<?php
|
||||
$imgwidth=450;
|
||||
$imgheight=450;
|
||||
$imgwidth=600;
|
||||
$imgheight=600;
|
||||
$classnb = 1;
|
||||
$agenda = 'tout';
|
||||
$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'];?>">
|
||||
<a class="modalbox"
|
||||
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">
|
||||
<?php if (isset($fiche['imagebf_image']) && $fiche['imagebf_image']!='') : ?>
|
||||
<img loading="lazy" class="img-responsive" alt=""
|
||||
|
@ -29,7 +29,7 @@ $modal = ''; // declaration d'une chaine de char vide
|
|||
;?>>
|
||||
<?php else : ?>
|
||||
<img loading="lazy" class="trombi-image img-placeholder" alt=""
|
||||
src="tools/bazar/libs/vendor/placeholder.php?size=300x300&bg=efefef&text=">
|
||||
src="tools/bazar/libs/vendor/placeholder.php?size=600x600&bg=efefef&text=">
|
||||
<i class="trombi-image icon-placeholder fa fa-calendar"></i>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
@ -116,6 +116,9 @@ $modal = ''; // declaration d'une chaine de char vide
|
|||
</style>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
$('.modal').on('click', function() {
|
||||
$(this).attr('href', $(this).attr('href')+'/iframe')
|
||||
})
|
||||
$('.btn-select').on('click', function() {
|
||||
$(this).parent().toggleClass('selected')
|
||||
if ($('.selected').length > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue