source: extensions/piclens/include/config_param.inc.php @ 27593

Last change on this file since 27593 was 18642, checked in by plg, 12 years ago

compatibility with Piwigo 2.4

fix bug with icon in RSS

File size: 3.6 KB
Line 
1<?php
2/*
3 * Plugin Name: CoolIris-Piclens
4 * File :  config_param.inc.php 
5 */
6// Fichier contenant les parametres du plugin (pour le parser)
7
8global $user;
9
10if ( isset($row['file']) ) {
11    $file_wo_ext = get_filename_wo_extension($row['file']);
12    $file_wo_ext = str_replace('_', ' ', $file_wo_ext);
13} else{
14    $file_wo_ext = '';
15}
16
17$piclens_parse = array(
18//              '%I0'   => isset($row['id']) ? get_thumbnail_title($row)  : '',
19                '%I1'   => isset($row['id']) ? $row['id'] : ''  ,
20                '%I2'   => isset($row['name']) ?
21                                        ($plugins_ExtendedDesc ? trigger_event('render_element_description',$row['name']) 
22                                                                                        : $row['name'])
23                                                                                : $file_wo_ext ,
24                '%I3'   => isset($row['comment']) ? 
25                                        ($plugins_ExtendedDesc ? trigger_event('render_element_description',$row['comment'])
26                                                                                        : $row['comment'])
27                                                                                  : ''  ,
28                '%I4'   => isset($row['author']) ? $row['author'] : ''  ,
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)) : '',
32                                                               
33                '%I8'   => (isset($row['category_id']) & isset($row['catname'])) ?
34                                                                                duplicate_picture_url(array(    'image_id' => $row['id'],
35                                                                                                                                                'image_file' => $row['file'],
36                                                                                                                                                'category' => array(
37                                                                                                                                                                                'id' => $row['category_id'],
38                                                                                                                                                                                'name' => $row['catname'],
39                                                                                                                                                                                'permalink' => ''
40                                                                                                                                                                          )
41                                                                                                                                                ),
42                                                                                                                                                array('start')
43                                                                                                                         )
44                                                                                :
45                                                                                duplicate_picture_url( array(   'image_id' => $row['id'],
46                                                                                                                                                'image_file' => $row['file']
47                                                                                                                                        ),
48                                                                                                                                         array('start')
49                                                                                                                         )
50                                        ,
51
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               
56                '%IC'   => isset($row['file']) ? $row['file'] : ''  ,
57                '%ID'   => isset($row['id']) ? get_comment($row['id'], $nb_comment) : ''  ,
58
59                '%G1'   => get_root_url(),
60
61                '%C1'   => isset($row['category_id']) ? $row['category_id'] : '',
62                '%C2'   => isset($row['catname']) ?
63                                        ($plugins_ExtendedDesc ? trigger_event('render_category_name',$row['catname'])
64                                                                                        : $row['catname'])
65                                                                                  : ''  ,
66                '%C3'   => isset($row['catcomment']) ? 
67                                                         ($plugins_ExtendedDesc ? trigger_event('render_category_description',$row['catcomment'])
68                                                                                                        : $row['catcomment'])
69                                                                                         : ''  ,
70                '%C4'   => isset($row['dir']) ? $row['dir'] : '',
71                '%C5'   => isset($row['dir']) ? embellish_url( get_root_url().'galerie/'.$row['dir']) : '',
72               
73                );
74/*
75%Ix Image
76        %I1 : IMGID                     ID
77        %I2 : IMGNAME           nom_image
78        %I3 : IMGDESC           description
79        %I4 : IMGAUTHOR         auteur
80        %I5 : IMGTHUMB          URLThumb (path non complet : /galerie/category...)
81        %I6 : IMGNORMAL         URLNormal (path non complet : /galerie/category...)
82        %I7 : IMGHIGH           URLHigh (path non complet : /galerie/category...)
83        %I8 : IMGPICTURE        URLPicture
84        %I9 : IMGTHUMBFULL      Lien complet vers Miniature
85        %IA : IMGNORMALFULL     Lien complet vers Normale
86        %IB : IMGHIGHFULL       Lien complet vers High
87        %IC : IMGFILE           nom_fichier
88        %IC : Commentaires
89
90%Gx Generaux
91        %G1 :           root path : URL du piwigo
92       
93
94%Cx : Categories
95        %C1 : CATID                     ID
96        %C2 : CATNAME           nom
97        %C3 : CATDESC           description
98        %C4 : CATPATH           Path de la galerie (non complet)
99        %C5 : CATPATHFULL       Path complet de la galerie
100
101*/
102?>
Note: See TracBrowser for help on using the repository browser.