Changeset 24142 for extensions/oAuth
- Timestamp:
- Aug 7, 2013, 6:09:21 PM (11 years ago)
- Location:
- extensions/oAuth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/include/public_events.inc.php
r23815 r24142 1 1 <?php 2 2 defined('OAUTH_PATH') or die('Hacking attempt!'); 3 4 function oauth_anti_lightbox($tpl_thumbnails_var) 5 { 6 global $template, $page; 7 8 if ($page['section'] == 'collections' && !empty($template->css_by_priority[0])) 9 { 10 foreach ($template->css_by_priority[0] as $file) 11 { 12 if (strpos($file[0], 'colorbox.css') !== false) 13 { 14 $template->assign('OAUTH_NO_LIGHTBOX', true); 15 break; 16 } 17 } 18 } 19 20 return $tpl_thumbnails_var; 21 } 3 22 4 23 /** -
extensions/oAuth/main.inc.php
r23815 r24142 60 60 61 61 add_event_handler('blockmanager_apply', 'oauth_blockmanager'); 62 63 add_event_handler('loc_end_index_thumbnails', 'oauth_anti_lightbox', 41); 62 64 63 65 include_once(OAUTH_PATH . 'include/public_events.inc.php'); -
extensions/oAuth/template/identification_common.tpl
r23808 r24142 16 16 {/literal}{/html_style} 17 17 18 {if not isset($OAUTH_NO_LIGHTBOX)} 18 19 {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} 19 20 {combine_css path="themes/default/js/plugins/colorbox/style2/colorbox.css"} 21 {/if} 20 22 21 23 {footer_script}{literal}
Note: See TracChangeset
for help on using the changeset viewer.