Changeset 26671 for extensions/stripped-galleria/themeconf.inc.php
- Timestamp:
- Jan 12, 2014, 10:03:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped-galleria/themeconf.inc.php
r17962 r26671 2 2 /* 3 3 Theme Name: stripped-galleria 4 Version: Auto4 Version: 1.4.3 5 5 Description: stripped-galleria theme 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=585 … … 35 35 if (!isset($strippedgalleria['lightbox'])) $strippedgalleria['lightbox']='none'; 36 36 37 // Access to HD and link to original38 37 39 add_event_handler('loc_end_index_thumbnails', ' add_thumbnails_hd_url', 50, 2);40 function add_thumbnails_hd_url($tpl_vars, $pictures)38 add_event_handler('loc_end_index_thumbnails', 'strippedgalleria_add_thumbnails_hd_url', 50, 2); 39 function strippedgalleria_add_thumbnails_hd_url($tpl_vars) 41 40 { 42 global $user ;41 global $user, $conf, $template, $page; 43 42 foreach($tpl_vars as &$x) 44 43 { … … 47 46 } 48 47 unset($x); 48 $stripped = unserialize( $conf['stripped'] ); 49 $strippedgalleria = unserialize( $conf['stripped-galleria'] ); 50 $template->assign( 'stripped', $stripped ); 51 $template->assign( 'strippedgalleria', $strippedgalleria ); 52 $template->assign( 'get_root_url', get_root_url() ); 53 if (!empty($page['section'])) $template->assign('section', $page['section']); 54 if (!empty($page['category']['id'])) $template->assign('catid', $page['category']['id']); 55 if (!empty($page['tag_ids'])) $template->assign('tagids', implode(',', $page['tag_ids'])); 49 56 return $tpl_vars; 50 57 } 58 59 add_event_handler('loc_begin_page_header', 'strippedgalleria_header'); 60 function strippedgalleria_header() 61 { 62 global $conf, $template; 63 $stripped = unserialize( $conf['stripped'] ); 64 $strippedgalleria = unserialize( $conf['stripped-galleria'] ); 65 $template->assign( 'stripped', $stripped ); 66 $template->assign( 'strippedgalleria', $strippedgalleria ); 67 } 68 add_event_handler('loc_begin_index', 'strippedgalleria_add_downloadLink'); 69 function strippedgalleria_add_downloadLink() 70 { 71 global $conf, $template; 72 $template->assign('downloadLink', $conf['picture_download_icon']); 73 } 74 51 75 ?>
Note: See TracChangeset
for help on using the changeset viewer.