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