37 require_once
"include/image_gallery_tabs.inc";
43 if (!
$gallery_id) redirect(
"/admin/image_galleries");
54 $title =
"Images in {$gallery->gallery_name}";
61 echo
"<div id=\"image_grid\">\n<div id=\"images_box\">\n";
69 echo
"<p style=\"margin: 8px\"><br/><i>No images have been added to this gallery</i></p>\n";
75 <div
style=
'padding: 8px'>
76 <a
class=
'button' href=
"/admin/image_form?gallery_id=<?echo $gallery_id?>">Add a New Image</a>
77 &
nbsp;&
nbsp;<a
class=
'button' href=
'#' onclick=
"ImageManager.rescanGallery(<?echo $gallery_id?>); return false;">Rescan</a>
78 &
nbsp;&
nbsp;<a
class=
'button' href=
'#' onclick=
"new BackgroundProcess('Creating ZIP Archive', '/action/image/zip_gallery?gallery_id=<?echo $gallery_id?>', {onComplete: function() { window.location.href = '/action/image/zip_gallery_download?gallery_id=<?echo $gallery_id?>'; } }); return false;">Download Zip Archive</a>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
static writeResizeScript()