Ignore:
Timestamp:
Jun 19, 2013, 2:43:41 PM (11 years ago)
Author:
mistic100
Message:

all collections are "active", display a menu when adding to a collection

File:
1 edited

Legend:

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

    r21382 r23361  
    113113    );
    114114}
     115
     116
     117function user_collections_thumbnails_in_collection($tpl_thumbnails_var, $pictures)
     118{
     119  global $template, $page;
     120 
     121  $url = USER_COLLEC_PUBLIC . 'edit/'.$page['col_id'];
     122 
     123  foreach ($tpl_thumbnails_var as &$thumbnail)
     124  {
     125    $src_image = new SrcImage($thumbnail);
     126   
     127    $thumbnail['FILE_SRC'] = DerivativeImage::url(IMG_LARGE, $src_image);
     128    $thumbnail['URL'] = duplicate_picture_url(
     129        array(
     130          'image_id' => $thumbnail['id'],
     131          'image_file' => $thumbnail['file'],
     132          'section' => 'none',
     133        ),
     134        array('start')
     135      );
     136     
     137    $thumbnail['COLLECTION_SELECTED'] = true;
     138    $thumbnail['COLLECTION_TOGGLE_URL'] = add_url_params($url, array('collection_toggle'=>$thumbnail['id']));
     139  }
     140 
     141  return $tpl_thumbnails_var;
     142}
    115143 
    116144?>
Note: See TracChangeset for help on using the changeset viewer.