Ignore:
Timestamp:
Sep 16, 2012, 11:34:26 PM (12 years ago)
Author:
Zaphod
Message:

version 1.4.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped-galleria/themeconf.inc.php

    r16337 r17962  
    3535if (!isset($strippedgalleria['lightbox'])) $strippedgalleria['lightbox']='none';
    3636
    37 // adresse image HD depuis thumbs
    38 /*
    39 add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_high_url', 50, 2);
    40 function add_thumbnails_high_url($tpl_var, $pictures)
     37// Access to HD and link to original
     38
     39add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_hd_url', 50, 2);
     40function add_thumbnails_hd_url($tpl_vars, $pictures)
    4141{
    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;
    5150}
    52 
    53 */
    5451?>
Note: See TracChangeset for help on using the changeset viewer.