Changeset 24421 for extensions/UserCollections/include/events.inc.php
- Timestamp:
- Sep 11, 2013, 6:44:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/include/events.inc.php
r23719 r24421 15 15 16 16 $page['section'] = 'collections'; 17 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.USER_COLLEC_PUBLIC.'">'.l10n('Collections').'</a>';18 17 $page['title'] = l10n('Collections'); 19 18 19 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator']; 20 if (is_a_guest()) $page['section_title'].= l10n('Collections'); 21 else $page['section_title'].= '<a href="'.USER_COLLEC_PUBLIC.'">'.l10n('Collections').'</a>'; 22 20 23 if (in_array(@$tokens[1], array('edit','view','list'))) 21 24 { 22 25 $page['sub_section'] = $tokens[1]; 23 if ($tokens[1]=='edit' andisset($conf['GThumb']) && is_array($conf['GThumb']))26 if ($tokens[1]=='edit' && isset($conf['GThumb']) && is_array($conf['GThumb'])) 24 27 { 25 28 $conf['GThumb']['big_thumb'] = false; // big thumb is buggy with removes … … 42 45 global $page; 43 46 $page['body_id'] = 'theCollectionPage'; 47 } 48 49 function uc_anti_lightbox($tpl_thumbnails_var) 50 { 51 global $template, $page; 52 53 if ($page['section'] == 'collections' && !empty($template->css_by_priority[0])) 54 { 55 foreach ($template->css_by_priority[0] as $file) 56 { 57 if (strpos($file[0], 'colorbox.css') !== false) 58 { 59 $template->assign('UC_NO_LIGHTBOX', true); 60 break; 61 } 62 } 63 } 64 65 return $tpl_thumbnails_var; 44 66 } 45 67
Note: See TracChangeset
for help on using the changeset viewer.