'stripped', 'load_parent_css' => true, 'load_parent_local_head' => true, 'name' => 'stripped-galleria', 'theme_dir' => 'stripped-galleria', 'icon_dir' => 'themes/stripped/icon', 'admin_icon_dir' => 'themes/default/icon/admin', 'mime_icon_dir' => 'themes/default/icon/mimetypes/', 'local_head' => 'local_head.tpl', ); global $conf, $stripped, $strippedgalleria; // temporary workaround $conf['template_combine_files'] = false; // Need upgrade? if (!isset($conf['stripped-galleria'])) include(PHPWG_THEMES_PATH.'stripped-galleria/admin/upgrade.inc.php'); $stripped['maxThumb']=999; $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped ); $strippedgalleria = unserialize( $conf['stripped-galleria'] ); if (!isset($strippedgalleria['lightbox'])) $strippedgalleria['lightbox']='none'; // Access to HD and link to original add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_hd_url', 50, 2); function add_thumbnails_hd_url($tpl_vars, $pictures) { global $user; foreach($tpl_vars as &$x) { if ($user['enabled_high']) $x['HD_ACCESS'] = true; else $x['HD_ACCESS'] = false; } unset($x); return $tpl_vars; } ?>