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

View File

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