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 = 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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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')));
|
||||||
|
|
Loading…
Reference in New Issue