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

Last change on this file since 3614 was 3614, checked in by tiico, 15 years ago

Modify parameters format for name and descriptions in rss feed (use preformated parameters like Flash_Gallery)
Increase length for config zone in tpl

File size: 3.7 KB
Line 
1<?php
2// Fichier contenant les parametres du plugin (pour le parser)
3$piclens_parse = array(
4                '%I1'   => isset($row['id']) ? $row['id'] : ''  ,
5                '%I2'   => isset($row['name']) ? trigger_event('render_element_description',$row['name']) : ''  ,
6                '%I3'   => isset($row['comment']) ? trigger_event('render_element_description',$row['comment']) : ''  ,
7                '%I4'   => isset($row['author']) ? $row['author'] : ''  ,
8                '%I5'   => isset ($row) ? (get_thumbnail_location($row)) : '' ,
9                '%I6'   => isset($row['path']) ? $row['path']: '',
10                '%I7'   => isset($row['path']) ? 
11                                            ($row['has_high'] and $user['enabled_high'] 
12                                                ? dirname($row['path']).'/pwg_high/'.basename($row['path']) 
13                                                : $row['path'])
14                                          : '',
15
16                                                               
17                '%I8'   => (isset($row['category_id']) & isset($row['catname'])) ?
18                                                                                duplicate_picture_url(array(    'image_id' => $row['id'],
19                                                                                                                                                'image_file' => $row['file'],
20                                                                                                                                                'category' => array(
21                                                                                                                                                                                'id' => $row['category_id'],
22                                                                                                                                                                                'name' => $row['catname'],
23                                                                                                                                                                                'permalink' => ''
24                                                                                                                                                                          )
25                                                                                                                                                ),
26                                                                                                                                                array('start')
27                                                                                                                         )
28                                                                                :
29                                                                                duplicate_picture_url( array(   'image_id' => $row['id'],
30                                                                                                                                                'image_file' => $row['file']
31                                                                                                                                        ),
32                                                                                                                                         array('start')
33                                                                                                                         )
34                                        ,
35
36                '%I9'   => isset ($row) ? ( url_is_remote(get_thumbnail_location($row)) ? get_thumbnail_location($row) : embellish_url(get_root_url().get_thumbnail_location($row))) : '' ,
37                '%IA'   => isset($row['path']) ? (url_is_remote($row['path']) ? $row['path']: embellish_url(get_root_url().$row['path'])) : '',
38                '%IB'   => isset($row['path']) ? 
39                                            ($row['has_high'] and $user['enabled_high'] 
40                                                ? (url_is_remote($row['path']) 
41                                                    ? dirname($row['path']).'/pwg_high/'.basename($row['path']) 
42                                                    : embellish_url( get_root_url(). dirname($row['path']).'/pwg_high/'.basename($row['path'])))
43                                                : (url_is_remote($row['path']) ? $row['path']: embellish_url(get_root_url().$row['path']))
44                                            )
45                                                                                  : '',                                                         
46                '%IC'   => isset($row['file']) ? $row['file'] : ''  ,
47
48                '%G1'   => get_root_url(),
49
50                '%C1'   => isset($row['category_id']) ? $row['category_id'] : '',
51                '%C2'   => isset($row['catname']) ? trigger_event('render_category_name',$row['catname']) : '',
52                '%C3'   => isset($row['catcomment']) ? trigger_event('render_category_description',$row['catcomment']) : '',
53                '%C4'   => isset($row['dir']) ? $row['dir'] : '',
54                '%C5'   => isset($row['dir']) ? embellish_url( get_root_url().'galerie/'.$row['dir']) : '',
55               
56                );
57/*
58%Ix Image
59        %I1 : IMGID                     ID
60        %I2 : IMGNAME           nom_image
61        %I3 : IMGDESC           description
62        %I4 : IMGAUTHOR         auteur
63        %I5 : IMGTHUMB          URLThumb (path non complet : /galerie/category...)
64        %I6 : IMGNORMAL         URLNormal (path non complet : /galerie/category...)
65        %I7 : IMGHIGH           URLHigh (path non complet : /galerie/category...)
66        %I8 : IMGPICTURE        URLPicture
67        %I9 : IMGTHUMBFULL      Lien complet vers Miniature
68        %IA : IMGNORMALFULL     Lien complet vers Normale
69        %IB : IMGHIGHFULL       Lien complet vers High
70        %IC : IMGFILE           nom_fichier
71
72%Gx Generaux
73        %G1 :           root path : URL du piwigo
74       
75
76%Cx : Categories
77        %C1 : CATID                     ID
78        %C2 : CATNAME           nom
79        %C3 : CATDESC           description
80        %C4 : CATPATH           Path de la galerie (non complet)
81        %C5 : CATPATHFULL       Path complet de la galerie
82
83*/
84?>
Note: See TracBrowser for help on using the repository browser.