Changeset 17962 for extensions/stripped-galleria/themeconf.inc.php
- Timestamp:
- Sep 16, 2012, 11:34:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped-galleria/themeconf.inc.php
r16337 r17962 35 35 if (!isset($strippedgalleria['lightbox'])) $strippedgalleria['lightbox']='none'; 36 36 37 // adresse image HD depuis thumbs38 /* 39 add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_h igh_url', 50, 2);40 function add_thumbnails_h igh_url($tpl_var, $pictures)37 // Access to HD and link to original 38 39 add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_hd_url', 50, 2); 40 function add_thumbnails_hd_url($tpl_vars, $pictures) 41 41 { 42 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 43 foreach($tpl_var as $key => $value) 44 { 45 if ($value['FILE_HAS_HD']) 46 { 47 $tpl_var[$key]['HD_PATH'] = get_high_path($pictures[$key]); 48 } 49 } 50 return $tpl_var; 42 global $user; 43 foreach($tpl_vars as &$x) 44 { 45 if ($user['enabled_high']) $x['HD_ACCESS'] = true; 46 else $x['HD_ACCESS'] = false; 47 } 48 unset($x); 49 return $tpl_vars; 51 50 } 52 53 */54 51 ?>
Note: See TracChangeset
for help on using the changeset viewer.