source: extensions/Flash_Gallery/include/config_param.inc.php @ 3531

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

First revision (for testing)
Only in French (translation to be done)

File size: 3.8 KB
Line 
1<?php
2// Fichier contenant les parametres du plugin (pour le parser)
3$flashgal_parse = array(
4                '%I1'   => isset($row['IMGID']) ? $row['IMGID'] : ''  ,
5                '%I2'   => isset($row['IMGNAME']) ? trigger_event('render_element_description',$row['IMGNAME']) : ''  ,
6                '%I3'   => isset($row['IMGDESC']) ? trigger_event('render_element_description',$row['IMGDESC']) : ''  ,
7                '%I4'   => isset($row['IMGAUTHOR']) ? $row['IMGAUTHOR'] : ''  ,
8                '%I5'   => isset ($row) ? (get_thumbnail_location($row)) : '' ,
9                '%I6'   => isset($row['IMGPATH']) ? $row['IMGPATH']: '',
10                '%I7'   => isset($row['IMGPATH']) ? 
11                                            ($row['has_high'] and $user['enabled_high'] 
12                                                ? dirname($row['IMGPATH']).'/pwg_high/'.basename($row['IMGPATH']) 
13                                                : $row['IMGPATH'])
14                                          : '',
15
16                                                               
17                '%I8'   => (isset($row['CATID']) & isset($row['CATNAME'])) ?
18                                                                                duplicate_picture_url(array(    'image_id' => $row['IMGID'],
19                                                                                                                                                'image_file' => $row['IMGFILE'],
20                                                                                                                                                'category' => array(
21                                                                                                                                                                                'id' => $row['CATID'],
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['IMGPATH']) ? (url_is_remote($row['IMGPATH']) ? $row['IMGPATH']: embellish_url(get_root_url().$row['IMGPATH'])) : '',
38                '%IB'   => isset($row['IMGPATH']) ? 
39                                            ($row['has_high'] and $user['enabled_high'] 
40                                                ? (url_is_remote($row['IMGPATH']) 
41                                                    ? dirname($row['IMGPATH']).'/pwg_high/'.basename($row['IMGPATH']) 
42                                                    : embellish_url( get_root_url(). dirname($row['IMGPATH']).'/pwg_high/'.basename($row['IMGPATH'])))
43                                                : (url_is_remote($row['IMGPATH']) ? $row['IMGPATH']: embellish_url(get_root_url().$row['IMGPATH']))
44                                            )
45                                                                                  : '',                                                         
46                '%IC'   => isset($row['IMGFILE']) ? $row['IMGFILE'] : ''  ,
47
48                '%G1'   => get_root_url(),
49
50                '%C1'   => isset($row['CATID']) ? $row['CATID'] : '',
51                '%C2'   => isset($row['CATNAME']) ? trigger_event('render_category_name',$row['CATNAME']) : '',
52                '%C3'   => isset($row['CATDESC']) ? trigger_event('render_category_description',$row['CATDESC']) : '',
53                '%C4'   => isset($row['CATDIR']) ? $row['CATDIR'] : '',
54                '%C5'   => isset($row['CATDIRFULL']) ? embellish_url( get_root_url().'galerie/'.$row['CATDIR']) : '',
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.