Ignore:
Timestamp:
Sep 11, 2013, 6:44:54 PM (11 years ago)
Author:
mistic100
Message:

new system for shares : password protection, link timeout, management popup + for mails
handle lightbox conflicts
menublock is visible by AMM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/events.inc.php

    r23719 r24421  
    1515   
    1616    $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>';
    1817    $page['title'] = l10n('Collections');
    1918   
     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   
    2023    if (in_array(@$tokens[1], array('edit','view','list')))
    2124    {
    2225      $page['sub_section'] = $tokens[1];
    23       if ($tokens[1]=='edit' and isset($conf['GThumb']) && is_array($conf['GThumb']))
     26      if ($tokens[1]=='edit' && isset($conf['GThumb']) && is_array($conf['GThumb']))
    2427      {
    2528        $conf['GThumb']['big_thumb'] = false; // big thumb is buggy with removes
     
    4245  global $page;
    4346  $page['body_id'] = 'theCollectionPage';
     47}
     48
     49function 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;
    4466}
    4567
Note: See TracChangeset for help on using the changeset viewer.