Ignore:
Timestamp:
Oct 15, 2012, 3:38:31 PM (12 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.4

fix bug with icon in RSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/include/config_param.inc.php

    r3900 r18642  
    2727                                                                                  : ''  ,
    2828                '%I4'   => isset($row['author']) ? $row['author'] : ''  ,
    29                 '%I5'   => isset ($row) ? (get_thumbnail_location($row)) : '' ,
    30                 '%I6'   => isset($row['path']) ? $row['path']: '',
    31                 '%I7'   => isset($row['path']) ?
    32                                             ($row['has_high'] and (isset($user['enabled_high']) and $user['enabled_high'])
    33                                                 ? dirname($row['path']).'/pwg_high/'.basename($row['path'])
    34                                                 : $row['path'])
    35                                           : '',
    36 
     29                '%I5'   => isset ($row) ? DerivativeImage::url(IMG_THUMB, new SrcImage($row)) : '',
     30                '%I6'   => isset($row['path']) ? DerivativeImage::url(IMG_MEDIUM, new SrcImage($row)) : '',
     31                '%I7'   => isset($row['path']) ? DerivativeImage::url(IMG_XXLARGE, new SrcImage($row)) : '',
    3732                                                               
    3833                '%I8'   => (isset($row['category_id']) & isset($row['catname'])) ?
     
    5550                                        ,
    5651
    57                 '%I9'   => isset ($row) ? ( url_is_remote(get_thumbnail_location($row)) ? get_thumbnail_location($row) : embellish_url(get_root_url().get_thumbnail_location($row))) : '' ,
    58                 '%IA'   => isset($row['path']) ? (url_is_remote($row['path']) ? $row['path']: embellish_url(get_root_url().$row['path'])) : '',
    59                 '%IB'   => isset($row['path']) ?
    60                                             ($row['has_high'] and (isset($user['enabled_high']) and $user['enabled_high'])
    61                                                 ? (url_is_remote($row['path'])
    62                                                     ? dirname($row['path']).'/pwg_high/'.basename($row['path'])
    63                                                     : embellish_url( get_root_url(). dirname($row['path']).'/pwg_high/'.basename($row['path'])))
    64                                                 : (url_is_remote($row['path']) ? $row['path']: embellish_url(get_root_url().$row['path']))
    65                                             )
    66                                                                                   : '',                                                         
     52                '%I9'   => isset ($row) ? embellish_url(get_root_url().DerivativeImage::url(IMG_THUMB, new SrcImage($row))) : '' ,
     53                '%IA'   => isset($row['path']) ? embellish_url(get_root_url().DerivativeImage::url(IMG_MEDIUM, new SrcImage($row))) : '' ,
     54                '%IB'   => isset($row['path']) ? embellish_url(get_root_url().DerivativeImage::url(IMG_XXLARGE, new SrcImage($row))) : '' ,
     55               
    6756                '%IC'   => isset($row['file']) ? $row['file'] : ''  ,
    6857                '%ID'   => isset($row['id']) ? get_comment($row['id'], $nb_comment) : ''  ,
Note: See TracChangeset for help on using the changeset viewer.