[3663] | 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 | '%ID' => isset($row['IMGID']) ? get_comment($row['IMGID'], $nb_comment) : '' , |
---|
| 48 | |
---|
| 49 | '%G1' => get_root_url(), |
---|
| 50 | |
---|
| 51 | '%C1' => isset($row['CATID']) ? $row['CATID'] : '', |
---|
| 52 | '%C2' => isset($row['CATNAME']) ? trigger_event('render_category_name',$row['CATNAME']) : '', |
---|
| 53 | '%C3' => isset($row['CATDESC']) ? trigger_event('render_category_description',$row['CATDESC']) : '', |
---|
| 54 | '%C4' => isset($row['CATDIR']) ? $row['CATDIR'] : '', |
---|
| 55 | '%C5' => isset($row['CATDIRFULL']) ? embellish_url( get_root_url().'galerie/'.$row['CATDIR']) : '', |
---|
| 56 | |
---|
| 57 | ); |
---|
| 58 | /* |
---|
| 59 | %Ix Image |
---|
| 60 | %I1 : IMGID ID |
---|
| 61 | %I2 : IMGNAME nom_image |
---|
| 62 | %I3 : IMGDESC description |
---|
| 63 | %I4 : IMGAUTHOR auteur |
---|
| 64 | %I5 : IMGTHUMB URLThumb (path non complet : /galerie/category...) |
---|
| 65 | %I6 : IMGNORMAL URLNormal (path non complet : /galerie/category...) |
---|
| 66 | %I7 : IMGHIGH URLHigh (path non complet : /galerie/category...) |
---|
| 67 | %I8 : IMGPICTURE URLPicture |
---|
| 68 | %I9 : IMGTHUMBFULL Lien complet vers Miniature |
---|
| 69 | %IA : IMGNORMALFULL Lien complet vers Normale |
---|
| 70 | %IB : IMGHIGHFULL Lien complet vers High |
---|
| 71 | %IC : IMGFILE nom_fichier |
---|
| 72 | %ID : Commentaires |
---|
| 73 | |
---|
| 74 | %Gx Generaux |
---|
| 75 | %G1 : root path : URL du piwigo |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %Cx : Categories |
---|
| 79 | %C1 : CATID ID |
---|
| 80 | %C2 : CATNAME nom |
---|
| 81 | %C3 : CATDESC description |
---|
| 82 | %C4 : CATPATH Path de la galerie (non complet) |
---|
| 83 | %C5 : CATPATHFULL Path complet de la galerie |
---|
| 84 | |
---|
| 85 | */ |
---|
[3531] | 86 | ?> |
---|