closeElClasses: [],
shareButtons: [
<?php
-if (!empty($User['admin'])) {
+if ($User->admin('foto')) {
printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n",
- 'cover', 'Cover instellen', "/edit/fotocover$Args?img={{image_url}}"
+ 'cover', 'Cover instellen', "/edit/foto/cover{$Page->path}?img={{image_url}}"
);
}
?>
imgel.style.position = 'absolute';
imgel.style.top = layout.boxes[i].top + 'px';
imgel.style.left = layout.boxes[i].left + 'px';
-
- var thumbtarget = imgel.src.replace(/(\/thumb\/)\d+/, '$1'+layout.boxes[i].height)
- if (imgel.complete) {
- imgel.src = thumbtarget;
- }
- else if (thumbtarget != imgel.src) {
- var loadthumb = new Image();
- loadthumb.src = thumbtarget;
- loadthumb.onload = function() {
- imgel.src = this.src;
- };
- }
})();
}
};
+if (request = window.location.hash.match(/pid=(.*)/)) {
+ index = images.findIndex(row => row.src == request[1]);
+ openphotoswipe(index);
+}
+
window.addEventListener('resize', imgjustify, false);
imgjustify();