37 require_once
"include/image_gallery_tabs.inc";
55 $gallery->filter =
new ExclusionFilter(
"read_access",
"write_access");
60 $form->group(
"Gallery Properties",
"gallery_name",
"identifier",
"description",
"keywords",
"hidden",
"randomize_filenames");
61 $form->group(
"Display Options",
"image_link_mode",
"thumbnail_size",
"thumbnail_format",
"fix_orientation",
"published");
62 $form->annotate(
"thumbnail_size",
"Size of thumbnail images in the gallery display. Set as zero to use the site default thumbnail size");
63 $form->annotate(
"image_link_mode",
"Specifies the behavior for image links in the gallery display");
64 $form->annotate(
"fix_orientation",
"Automatically fix the orientation of JPEG photos uploaded from cameras, tablets and mobile phones");
65 $form->annotate(
"thumbnail_format",
"Use PNG for high quality thumbnails (default) or JPEG for low bandwidth thumbnails.<br>JPEG files will have lower image quality and do not support transparency.");
66 $form->annotate(
"randomize_filenames",
"Generate random unique names for uploaded files");
72 $form->hide(
"owner_id");
73 $form->unique(
"identifier");
74 $form->required(
"gallery_name",
"identifier");
80 $d =
$form->data->getGalleryDirectory();
81 if (!is_dir(
$d) && !file_exists(
$d))
86 if (
$form->deleted) redirect(
"/admin/image_galleries");
88 $tabs->queryString =
"gallery_id=".$form->data->gallery_id;
98 <div
id=
"tab_border" style=
"margin-right: -2px">
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
$method
Pull out a simple reference to the request method.
if(!checkRole($library->allow_access) &&! $library->allowAccess()) if(!checkRole($document->allow_access)) $d