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

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

Pb with last commit (3636)
Convert all file into UTF8 and Unix format
Add TODO in chinese language file

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