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