added lightbox
This commit is contained in:
parent
510d69e28b
commit
b197b6297b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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')));
|
||||
|
|
Loading…
Reference in New Issue