enable or disable lightbox2 preview with use_lightbox config var
authorAndreas Unterkircher <unki@netshadow.at>
Thu, 27 Mar 2008 20:17:47 +0000 (21:17 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Thu, 27 Mar 2008 20:17:47 +0000 (21:17 +0100)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot_cfg.php.dist
phpfspot_tmpl.php

index 93aaff412cd72d7549c7be17ce9740300dbd611c..3583560ff57be4883441f6c4b7f1bcd58b1759de 100644 (file)
@@ -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";
 
index e8cdc7731380b389cfd9ec7c99a6360ddf7aaf82..52c983e971aedd400487a372701eb678e7187e5d 100644 (file)
@@ -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()