added lightbox

This commit is contained in:
Roland Gruber 2018-10-28 17:18:47 +01:00
parent 510d69e28b
commit b197b6297b
2 changed files with 3 additions and 0 deletions

View File

@ -1616,6 +1616,7 @@ class inetOrgPerson extends baseModule implements passwordService {
}
$img = new htmlImage($photoFile);
$img->setCSSClasses(array('photo'));
$img->enableLightbox();
$imageContainer->addElement($img, true);
if (!$this->isAdminReadOnly('jpegPhoto')) {
if ($noPhoto) {
@ -2985,6 +2986,7 @@ class inetOrgPerson extends baseModule implements passwordService {
$photoFile = '../../tmp/' . $jpeg_filename;
$img = new htmlImage($photoFile);
$img->setCSSClasses(array('photo'));
$img->enableLightbox();
if ($crop) {
$img->enableCropping();
}

View File

@ -1288,6 +1288,7 @@ class windowsUser extends baseModule implements passwordService {
}
$img = new htmlImage($photoFile);
$img->setCSSClasses(array('photo'));
$img->enableLightbox();
$imageContainer->addElement($img, true);
if ($noPhoto) {
$imageContainer->addElement(new htmlAccountPageButton(get_class($this), 'photo', 'open', _('Add photo')));