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

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

Add index.php file into directory
Add CHANGELOG and clean header files
Add 'last comments' option for name and descriptions (%ID option)
Add maintain.inc.php for migration to 0.4.x (name and description translation)
Complete Chinese translation (thanks winson)

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