Menalto Gallery
This page describes how Menalto Gallery is used on this website.
Featured Photo
Website: Featured Photo
Download: Featured Photo
| How do I install or upgrade? |
- Place featured-photo.php into your gallery/ directory.
- Add the following code to the bottom of the thumbnail drop-down menu options in the getItemActions() function located in lib/albumItem.php. This adds an option to the menu to select that image as the featured photo (won't appear in the menu for movies or sub-albums). Only an admin can change the featured photo, and both hidden and viewable images can be set, including photos from albums not necessarily visible to all users.
[...]
if ($gallery->user->isAdmin() && !$gallery->album->isAlbum($i)) {
$options[] = array(
'text' => getIconText('yast_kuser.gif',_("Change Owner"), $override, $withIcons),
'value' => showChoice2("photo_owner.php", array("id" => $id))
);
}
if ($gallery->user->isAdmin() && $label === 'Photo') {
$options[] = array('text' => _('Feature Photo'),
'value' => showChoice2('featured-photo.php',
array('set' => 1,
'set_albumName' => $myAlbum->fields['name'],
'id' => $id)));
}
return $options;
}
[...]

