From: Andreas Unterkircher Date: Thu, 27 Mar 2008 20:17:47 +0000 (+0100) Subject: enable or disable lightbox2 preview with use_lightbox config var X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=2b589908f4624b0ee41217f21d5b0b7cb383d38c;hp=ba67cbf2ecb051b36ba0985099a76456b5c38e15;ds=sidebyside enable or disable lightbox2 preview with use_lightbox config var Signed-off-by: Andreas Unterkircher --- diff --git a/phpfspot_cfg.php.dist b/phpfspot_cfg.php.dist index 93aaff4..3583560 100644 --- a/phpfspot_cfg.php.dist +++ b/phpfspot_cfg.php.dist @@ -84,6 +84,11 @@ class PHPFSPOT_CFG { */ //var $show_tags = Array("Friends", "Holidays"); + /* Use lightbox2 for photo preview (adds the little eye symbol into the + photo index. + */ + var $use_lightbox = true; + /* logging = display || errorlog || logfile */ var $logging = "display"; diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index e8cdc77..52c983e 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -38,7 +38,8 @@ class PHPFSPOT_TMPL extends Smarty { $this->config_dir = $parent->cfg->base_path .'/smarty_config'; $this->cache_dir = $parent->cfg->base_path .'/smarty_cache'; - $this->assign('use_lightbox', 'true'); + if(isset($parent->cfg->use_lightbox) && $parent->cfg->use_lightbox == true) + $this->assign('use_lightbox', 'true'); } // __construct()