closeElClasses: [],
shareButtons: [
<?php
-if (!empty($User['admin'])) {
+if ($User and $User->admin) {
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$Args?img={{image_url}}"
);
}
?>
targetRowHeight: 200,
};
var layout = require('justified-layout')(ratios, config);
- var thumbreplace = !window.location.search.test(/[?&]blur\b/);
+ var thumbreplace = !/[?&]blur\b/.test(window.location.search);
gallery.style.position = 'relative';
gallery.style.height = layout.containerHeight + 'px';
}
};
+if (request = window.location.hash.match(/pid=(.*)/)) {
+ index = images.findIndex(row => row.src == request[1]);
+ openphotoswipe(index);
+}
+
window.addEventListener('resize', imgjustify, false);
imgjustify();