Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page https://status.framasoft.org/incident/626.

Commit b0fce706 authored by Robin Caramaschi's avatar Robin Caramaschi

Merge branch 'master' into 'master'

Ajout d'un module

See merge request !27
parents 1cfa5b9d 0d6342ed
$('.editGalleryImage').click(function () {
let id = this.id.split("-")[1]
let img=this.id.split("-")[2]
$("#siteOptionsModal").modal('open')
$("a[href=#options-medias]").click()
MediaManagment.render(true, "uglyForm-"+id+"-imgUrl"+img)
initMainSaveBtn()
})
$('.removeGalleryImage').click(function () {
let id = this.id.split("-")[1]
let field= this.id.split("-")[2]
$('#uglyForm input[name=uglyForm-'+id+'-'+field+']').val("");
$('#moduleValue-'+field).attr('src', 'app/views/modules/gallery/default.png')
console.log(field)
setTimeout(function () {
$('.carousel.carousel-slider').carousel({fullWidth: true,indicators: true });
},200)
initMainSaveBtn()
})
\ No newline at end of file
{
"name": "gallery_little",
"title": "Galerie petites colonnes",
"description": "Module permettant de presenter jusqu'a 100 images sous forme d'un portfolio",
"tags": "moduleTag-img moduleTag-animated",
"hidden" : false,
"fields": {
"title": {
"type": "text",
"value": "<h5>Galerie</h5>"
},
"imgUrl0": {
"type": "text",
"value": "app/views/modules/gallery/aquarelle_2.jpg"
},
"imgUrl1": {
"type": "text",
"value": ""
},
"imgUrl2": {
"type": "text",
"value": ""
},
"imgUrl3": {
"type": "text",
"value": ""
},
"imgUrl4": {
"type": "text",
"value": ""
},
"imgUrl5": {
"type": "text",
"value": ""
},
"imgUrl6": {
"type": "text",
"value": ""
},
"imgUrl7": {
"type": "text",
"value": ""
},
"imgUrl8": {
"type": "text",
"value": ""
},
"imgUrl9": {
"type": "text",
"value": ""
},
"imgUrl10": {
"type": "text",
"value": ""
},
"imgUrl11": {
"type": "text",
"value": ""
},
"imgUrl12": {
"type": "text",
"value": ""
},
"imgUrl13": {
"type": "text",
"value": ""
},
"imgUrl14": {
"type": "text",
"value": ""
},
"imgUrl15": {
"type": "text",
"value": ""
},
"imgUrl16": {
"type": "text",
"value": ""
},
"imgUrl17": {
"type": "text",
"value": ""
},
"imgUrl18": {
"type": "text",
"value": ""
},
"imgUrl19": {
"type": "text",
"value": ""
},
"imgUrl20": {
"type": "text",
"value": ""
},
"imgUrl21": {
"type": "text",
"value": ""
},
"imgUrl22": {
"type": "text",
"value": ""
},
"imgUrl23": {
"type": "text",
"value": ""
},
"imgUrl24": {
"type": "text",
"value": ""
},
"imgUrl25": {
"type": "text",
"value": ""
},
"imgUrl26": {
"type": "text",
"value": ""
},
"imgUrl27": {
"type": "text",
"value": ""
},
"imgUrl28": {
"type": "text",
"value": ""
},
"imgUrl29": {
"type": "text",
"value": ""
},
"imgUrl30": {
"type": "text",
"value": ""
},
"imgUrl31": {
"type": "text",
"value": ""
},
"imgUrl32": {
"type": "text",
"value": ""
},
"imgUrl33": {
"type": "text",
"value": ""
},
"imgUrl34": {
"type": "text",
"value": ""
},
"imgUrl35": {
"type": "text",
"value": ""
},
"imgUrl36": {
"type": "text",
"value": ""
},
"imgUrl37": {
"type": "text",
"value": ""
},
"imgUrl38": {
"type": "text",
"value": ""
},
"imgUrl39": {
"type": "text",
"value": ""
},
"imgUrl40": {
"type": "text",
"value": ""
},
"imgUrl41": {
"type": "text",
"value": ""
},
"imgUrl42": {
"type": "text",
"value": ""
},
"imgUrl43": {
"type": "text",
"value": ""
},
"imgUrl44": {
"type": "text",
"value": ""
},
"imgUrl45": {
"type": "text",
"value": ""
},
"imgUrl46": {
"type": "text",
"value": ""
},
"imgUrl47": {
"type": "text",
"value": ""
},
"imgUrl48": {
"type": "text",
"value": ""
},
"imgUrl49": {
"type": "text",
"value": ""
},
"imgUrl50": {
"type": "text",
"value": ""
},
"imgUrl51": {
"type": "text",
"value": ""
},
"imgUrl52": {
"type": "text",
"value": ""
},
"imgUrl53": {
"type": "text",
"value": ""
},
"imgUrl54": {
"type": "text",
"value": ""
},
"imgUrl55": {
"type": "text",
"value": ""
},
"imgUrl56": {
"type": "text",
"value": ""
},
"imgUrl57": {
"type": "text",
"value": ""
},
"imgUrl58": {
"type": "text",
"value": ""
},
"imgUrl59": {
"type": "text",
"value": ""
},
"imgUrl60": {
"type": "text",
"value": ""
},
"imgUrl61": {
"type": "text",
"value": ""
},
"imgUrl62": {
"type": "text",
"value": ""
},
"imgUrl63": {
"type": "text",
"value": ""
},
"imgUrl64": {
"type": "text",
"value": ""
},
"imgUrl65": {
"type": "text",
"value": ""
},
"imgUrl66": {
"type": "text",
"value": ""
},
"imgUrl67": {
"type": "text",
"value": ""
},
"imgUrl68": {
"type": "text",
"value": ""
},
"imgUrl69": {
"type": "text",
"value": ""
},
"imgUrl70": {
"type": "text",
"value": ""
},
"imgUrl71": {
"type": "text",
"value": ""
},
"imgUrl72": {
"type": "text",
"value": ""
},
"imgUrl73": {
"type": "text",
"value": ""
},
"imgUrl74": {
"type": "text",
"value": ""
},
"imgUrl75": {
"type": "text",
"value": ""
},
"imgUrl76": {
"type": "text",
"value": ""
},
"imgUrl77": {
"type": "text",
"value": ""
},
"imgUrl78": {
"type": "text",
"value": ""
},
"imgUrl79": {
"type": "text",
"value": ""
},
"imgUrl80": {
"type": "text",
"value": ""
},
"imgUrl81": {
"type": "text",
"value": ""
},
"imgUrl82": {
"type": "text",
"value": ""
},
"imgUrl83": {
"type": "text",
"value": ""
},
"imgUrl84": {
"type": "text",
"value": ""
},
"imgUrl85": {
"type": "text",
"value": ""
},
"imgUrl86": {
"type": "text",
"value": ""
},
"imgUrl87": {
"type": "text",
"value": ""
},
"imgUrl88": {
"type": "text",
"value": ""
},
"imgUrl89": {
"type": "text",
"value": ""
},
"imgUrl90": {
"type": "text",
"value": ""
},
"imgUrl91": {
"type": "text",
"value": ""
},
"imgUrl92": {
"type": "text",
"value": ""
},
"imgUrl93": {
"type": "text",
"value": ""
},
"imgUrl94": {
"type": "text",
"value": ""
},
"imgUrl95": {
"type": "text",
"value": ""
},
"imgUrl96": {
"type": "text",
"value": ""
},
"imgUrl97": {
"type": "text",
"value": ""
},
"imgUrl98": {
"type": "text",
"value": ""
},
"imgUrl99": {
"type": "text",
"value": ""
}
}
}
<link href="public/js/lightbox/css/lightbox.css" rel="stylesheet">
<div class="main-background module">
<div class="container" style="padding: 30px 0">
<check if="{{ @isAdminPage }}">
<div class="row infoModule" style="margin: 0 5px 5px 05px !important;">
<p class=" white-text no-margin relative center-align"
style="font-size: small;">
<i>Seules les images complétées seront visibles par vos visiteurs</i>
</p>
</div>
</check>
<div class="columnContainer gallery-little" >
<repeat group="{{ [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99] }}" value="{{ @index }}">
<check if="{{ @fields['imgUrl'.@index]['value'] || @isAdminPage }}">
<div class="relative carousselImage" style="padding: 5px">
<check if="{{ @isAdminPage }}">
<a class="btn-floating waves-effect waves-light lightButton absolute tooltipped moduleBtn editGalleryImage" data-position="top"
data-delay="250" data-tooltip="modifier l'image" id="editGalleryImage-{{@id}}-{{@index}}" style=" left: 10px; top: 10px; z-index: 500">
<i class="material-icons">image</i></a>
<check if="{{ @fields['imgUrl'.@index]['value']}}">
<a class="btn-floating waves-effect waves-light lightButton absolute tooltipped moduleBtn removeGalleryImage" data-position="top"
data-delay="250" data-tooltip="retirer l'image" id="removeGalleryImage-{{@id}}-imgUrl{{@index}}" style=" left: 60px; top: 10px; z-index: 500">
<i class="material-icons">clear</i></a>
</check>
</check>
<a class="responsive-img" style="cursor: zoom-in" data-lightbox="galery-{{@id}}" width="100%" data-caption="{{@fields['imgUrl'.@index]['value'] | imgAlt}}" href="{{@fields['imgUrl'.@index]['value']? @fields['imgUrl'.@index]['value'] : 'app/views/modules/gallery/default.jpg'}}" >
<img class="responsive-img " id="moduleValue-imgUrl{{@index}}" width="100%" data-caption="{{@fields['imgUrl'.@index]['value'] | imgAlt}}" src="{{@fields['imgUrl'.@index]['value']? @fields['imgUrl'.@index]['value'] : 'app/views/modules/gallery/default.jpg'}}" alt="{{@fields['imgUrl'.@index]['value'] | imgAlt}}">
</a>
</div>
</check>
</repeat>
</div>
</div>
</div>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment