Ignore:
Timestamp:
Nov 24, 2013, 6:09:57 PM (10 years ago)
Author:
mistic100
Message:

very big update for Piwigo 2.6

File:
1 edited

Legend:

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

    r23551 r25678  
    11<?php
    22defined('USER_COLLEC_PATH') or die('Hacking attempt!');
    3 
    43
    54// image order
     
    1716}
    1817
    19 // get sorted elements
    2018$image_order_id = pwg_get_session_var('uc_image_order', 0);
    2119$orders = get_collection_preferred_image_orders();
    2220
     21
     22// get sorted elements
    2323$query = '
    2424SELECT i.id
     
    3131$page['items'] = array_from_query($query, 'id');
    3232
     33
    3334// caddie
    3435if (isset($_GET['uc_caddie']))
     
    3839}
    3940
     41
    4042// image order menu
    4143if ( $conf['index_sort_order_input']
     
    4345{
    4446  $url = add_url_params($self_url, array('uc_image_order' => ''));
    45  
     47
    4648  foreach ($orders as $order_id => $order)
    4749  {
     
    7577}
    7678
     79
    7780// add links for colorbox
    7881add_event_handler('loc_end_index_thumbnails', 'user_collections_thumbnails_in_collection', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    7982
     83// photos details
    8084global $selection, $pictures;
    8185include(PHPWG_ROOT_PATH . 'include/category_default.inc.php');
     
    8387
    8488// multisize menu
    85 if ( !empty($page['items']) )
     89if (!empty($page['items']))
    8690{
    8791  $url = add_url_params($self_url, array('display' => ''));
    88    
     92
    8993  $selected_type = $template->get_template_vars('derivative_params')->type;
    90   $template->clear_assign( 'derivative_params' );
     94  $template->clear_assign('derivative_params');
    9195  $type_map = ImageStdParams::get_defined_type_map();
    9296  unset($type_map[IMG_XXLARGE], $type_map[IMG_XLARGE]);
     
    118122{
    119123  global $template, $page;
    120  
     124
    121125  $url = USER_COLLEC_PUBLIC . 'edit/'.$page['col_id'];
    122  
     126
    123127  foreach ($tpl_thumbnails_var as &$thumbnail)
    124128  {
    125129    $src_image = new SrcImage($thumbnail);
    126    
     130
    127131    $thumbnail['FILE_SRC'] = DerivativeImage::url(IMG_LARGE, $src_image);
    128132    $thumbnail['URL'] = duplicate_picture_url(
     
    135139      );
    136140  }
    137  
     141
    138142  return $tpl_thumbnails_var;
    139143}
    140  
    141 ?>
Note: See TracChangeset for help on using the changeset viewer.