Changeset 30100
- Timestamp:
- Oct 16, 2014, 9:39:11 AM (10 years ago)
- Location:
- extensions/ThumbnailTooltip
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ThumbnailTooltip/admin/admin.php
r28187 r30100 1 1 <?php 2 2 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 5 3 6 4 7 global $template, $conf; 5 8 9 10 6 11 load_language('plugin.lang', thumbnail_tooltip_PATH); 12 7 13 include(dirname(__FILE__).'/config_default.inc.php'); 14 8 15 $params = array_merge($config_default, unserialize($conf['thumbnail_tooltip'])); 9 16 17 18 10 19 if (isset($_POST['submit'])) { 20 11 21 $params = array( 22 12 23 'display_name' => $_POST['display_name'] ? true : false, 24 13 25 'value1' => $_POST['value1'], 26 14 27 'value2' => $_POST['value2'], 28 15 29 'value3' => $_POST['value3'], 30 16 31 'value4' => $_POST['value4'], 32 17 33 'value5' => $_POST['value5'], 34 18 35 'value6' => $_POST['value6'], 36 19 37 'separator' => $_POST['separator'], 38 20 39 'display_author_cat' => $_POST['display_author_cat'] 40 21 41 ); 22 42 43 44 23 45 $query = ' 46 24 47 UPDATE ' . CONFIG_TABLE . ' 48 25 49 SET value="' . addslashes(serialize($params)) . '" 50 26 51 WHERE param="thumbnail_tooltip" 52 27 53 LIMIT 1'; 54 28 55 pwg_query($query); 56 29 57 array_push($page['infos'], l10n('tn_configuration_saved')); 58 30 59 } 31 60 32 61 62 63 64 33 65 if (isset($_POST['restore'])) { 66 34 67 $params = $config_default; 35 68 69 70 36 71 $query = ' 72 37 73 UPDATE ' . CONFIG_TABLE . ' 74 38 75 SET value="' . addslashes(serialize($params)) . '" 76 39 77 WHERE param="thumbnail_tooltip" 78 40 79 LIMIT 1'; 80 41 81 pwg_query($query); 82 42 83 array_push($page['infos'], l10n('tn_default_parameters_saved')); 84 43 85 } 44 86 45 87 88 89 90 46 91 $template->assign(array( 92 47 93 'DISPLAY_NAME' => $params['display_name'], 94 48 95 'VALUE1' => $params['value1'], 96 49 97 'VALUE2' => $params['value2'], 98 50 99 'VALUE3' => $params['value3'], 100 51 101 'VALUE4' => $params['value4'], 102 52 103 'VALUE5' => $params['value5'], 104 53 105 'VALUE6' => $params['value6'], 106 54 107 'SEPARATOR' => $params['separator'], 108 55 109 'DISPLAY_AUTHOR_CAT' => $params['display_author_cat'] 110 56 111 )); 57 112 58 113 114 115 116 59 117 $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl')); 118 60 119 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 120 61 121 ?> -
extensions/ThumbnailTooltip/admin/admin.tpl
r28262 r30100 1 1 <div class="titrePage"> 2 2 3 <h2>Thumbnail Tooltip</h2> 4 3 5 </div> 4 6 7 8 5 9 <form action="" method="post"> 6 10 11 12 7 13 <fieldset> 14 8 15 <legend>{'tn_display_img'|@translate}</legend> 16 9 17 <table> 18 10 19 <tr> 20 11 21 <td align="right" nowrap="nowrap">{'tn_display_name_img'|@translate} : </td> 22 12 23 <td><input type="radio" name="display_name" value="1" {if $DISPLAY_NAME}checked="checked"{/if} onClick="javascript: jQuery('.name_link').show();"> {'tn_yes'|@translate} 24 13 25 <input type="radio" name="display_name" value="0" {if !$DISPLAY_NAME}checked="checked"{/if} onClick="javascript: jQuery('.name_link').hide();"> {'tn_no'|@translate} 14 </td> 26 27 </td> 28 15 29 </tr> 30 16 31 17 <tr><td> </td></tr> 32 33 <tr><td> </td></tr> 34 35 18 36 19 37 <tr class="name_link"> 38 20 39 <td align="right" nowrap="nowrap">{'tn_name_link'|@translate} : </td> 40 21 41 <td><select name="value1" style="widht:30px"> 42 22 43 <option value="tn_type1" {if $VALUE1 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 44 23 45 <option value="tn_type2" {if $VALUE1 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 46 24 47 <option value="tn_type3" {if $VALUE1 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 48 25 49 <option value="tn_type4" {if $VALUE1 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 50 26 51 <option value="tn_type5" {if $VALUE1 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 52 27 53 <option value="tn_type6" {if $VALUE1 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 54 28 55 <option value="tn_type7" {if $VALUE1 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 56 29 57 <option value="tn_type8" {if $VALUE1 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 58 30 59 <option value="tn_type9" {if $VALUE1 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 31 </select> 60 61 </select> 62 32 63 <select name="value2" style="widht:30px"> 64 33 65 <option value="none" {if $VALUE2 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 66 34 67 <option value="tn_type1" {if $VALUE2 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 68 35 69 <option value="tn_type2" {if $VALUE2 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 70 36 71 <option value="tn_type3" {if $VALUE2 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 72 37 73 <option value="tn_type4" {if $VALUE2 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 74 38 75 <option value="tn_type5" {if $VALUE2 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 76 39 77 <option value="tn_type6" {if $VALUE2 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 78 40 79 <option value="tn_type7" {if $VALUE2 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 80 41 81 <option value="tn_type8" {if $VALUE2 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 82 42 83 <option value="tn_type9" {if $VALUE2 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 43 </select> 84 85 </select> 86 44 87 <select name="value3" style="widht:30px"> 88 45 89 <option value="none" {if $VALUE3 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 90 46 91 <option value="tn_type1" {if $VALUE3 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 92 47 93 <option value="tn_type2" {if $VALUE3 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 94 48 95 <option value="tn_type3" {if $VALUE3 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 96 49 97 <option value="tn_type4" {if $VALUE3 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 98 50 99 <option value="tn_type5" {if $VALUE3 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 100 51 101 <option value="tn_type6" {if $VALUE3 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 102 52 103 <option value="tn_type7" {if $VALUE3 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 104 53 105 <option value="tn_type8" {if $VALUE3 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 106 54 107 <option value="tn_type9" {if $VALUE3 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 55 </select> 108 109 </select> 110 56 111 <select name="value4" style="widht:30px"> 112 57 113 <option value="none" {if $VALUE4 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 114 58 115 <option value="tn_type1" {if $VALUE4 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 116 59 117 <option value="tn_type2" {if $VALUE4 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 118 60 119 <option value="tn_type3" {if $VALUE4 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 120 61 121 <option value="tn_type4" {if $VALUE4 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 122 62 123 <option value="tn_type5" {if $VALUE4 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 124 63 125 <option value="tn_type6" {if $VALUE4 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 126 64 127 <option value="tn_type7" {if $VALUE4 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 128 65 129 <option value="tn_type8" {if $VALUE4 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 130 66 131 <option value="tn_type9" {if $VALUE4 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 67 </select> 132 133 </select> 134 68 135 <select name="value5" style="widht:30px"> 136 69 137 <option value="none" {if $VALUE5 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 138 70 139 <option value="tn_type1" {if $VALUE5 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 140 71 141 <option value="tn_type2" {if $VALUE5 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 142 72 143 <option value="tn_type3" {if $VALUE5 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 144 73 145 <option value="tn_type4" {if $VALUE5 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 146 74 147 <option value="tn_type5" {if $VALUE5 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 148 75 149 <option value="tn_type6" {if $VALUE5 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 150 76 151 <option value="tn_type7" {if $VALUE5 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 152 77 153 <option value="tn_type8" {if $VALUE5 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 154 78 155 <option value="tn_type9" {if $VALUE5 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 79 </select> 156 157 </select> 158 80 159 <select name="value6" style="widht:30px"> 160 81 161 <option value="none" {if $VALUE6 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 162 82 163 <option value="tn_type1" {if $VALUE6 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 164 83 165 <option value="tn_type2" {if $VALUE6 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 166 84 167 <option value="tn_type3" {if $VALUE6 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 168 85 169 <option value="tn_type4" {if $VALUE6 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 170 86 171 <option value="tn_type5" {if $VALUE6 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 172 87 173 <option value="tn_type6" {if $VALUE6 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 174 88 175 <option value="tn_type7" {if $VALUE6 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 176 89 177 <option value="tn_type8" {if $VALUE6 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 178 90 179 <option value="tn_type9" {if $VALUE6 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 91 </select> 92 </td> 93 <tr><td> </td></tr> 180 181 </select> 182 183 </td> 184 185 <tr><td> </td></tr> 186 94 187 <tr class="name_link"> 188 95 189 <td align="right" nowrap="nowrap">{'tn_separator'|@translate} : </td> 190 96 191 <td><input type="radio" name="separator" {if $SEPARATOR}checked="checked"{/if} value="1"> {'tn_yes'|@translate} 192 97 193 <input type="radio" name="separator" {if !$SEPARATOR}checked="checked"{/if} value="0"> {'tn_no'|@translate} 98 </td> 194 195 </td> 196 99 197 </tr> 198 100 199 101 <tr><td> </td></tr> 200 201 <tr><td> </td></tr> 202 102 203 </table> 204 103 205 </fieldset> 104 206 105 207 208 209 210 106 211 <fieldset> 212 107 213 <legend>{'tn_display_cat'|@translate}</legend> 214 108 215 <table> 216 109 217 <tr> 218 110 219 <td align="right" nowrap="nowrap">{'tn_display_name_cat'|@translate} : </td> 220 111 221 <td><input type="radio" name="display_author_cat" value="1" {if $DISPLAY_AUTHOR_CAT}checked="checked"{/if}> {'tn_yes'|@translate} 222 112 223 <input type="radio" name="display_author_cat" value="0" {if !$DISPLAY_AUTHOR_CAT}checked="checked"{/if}> {'tn_no'|@translate} 113 </td> 224 225 </td> 226 114 227 </tr> 228 115 229 116 <tr><td> </td></tr> 230 231 <tr><td> </td></tr> 232 117 233 </table> 234 118 235 </fieldset> 119 236 237 238 120 239 <p><input type="submit" name="submit" value="{'Submit'|@translate}"> 240 121 241 <input type="submit" name="restore" value="{'tn_default_parameters'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');"></p> 242 122 243 </form> 123 244 245 246 124 247 <script type="text/javascript"> 248 125 249 if (document.getElementsByName("display_name")[1].checked == true) 250 126 251 jQuery('.name_link').hide(); 252 127 253 if (document.getElementsByName("display_arrows")[1].checked == true) 254 128 255 jQuery('.all_cat').hide(); 256 129 257 </script> -
extensions/ThumbnailTooltip/admin/config_default.inc.php
r28210 r30100 1 1 <?php 2 2 3 $config_default = array( 4 3 5 'display_name' => true, 6 4 7 'value1' => 'tn_type1', 8 5 9 'value2' => 'tn_type8', 10 6 11 'value3' => 'tn_type4', 12 7 13 'value4' => 'none', 14 8 15 'value5' => 'none', 16 9 17 'value6' => 'none', 18 10 19 'separator' => '1', 20 11 21 'display_author_cat' => '1' 22 12 23 ); 24 13 25 ?> -
extensions/ThumbnailTooltip/admin/functions.inc.php
r27644 r30100 1 1 <?php 2 2 3 add_event_handler('get_admin_plugin_menu_links', 'thumbnail_tooltip_admin_menu'); 3 4 5 6 4 7 function thumbnail_tooltip_admin_menu($menu) 8 5 9 { 10 6 11 array_push($menu, array( 12 7 13 'NAME' => 'Thumbnail Tooltip', 14 8 15 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php'))); 16 9 17 return $menu; 18 10 19 } 20 11 21 ?> -
extensions/ThumbnailTooltip/admin/index.php
r28210 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based photo gallery | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 8 // +-----------------------------------------------------------------------+ 9 // | This program is free software; you can redistribute it and/or modify | 10 // | it under the terms of the GNU General Public License as published by | 11 // | the Free Software Foundation | 12 // | | 13 // | This program is distributed in the hope that it will be useful, but | 14 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 // | General Public License for more details. | 17 // | | 18 // | You should have received a copy of the GNU General Public License | 19 // | along with this program; if not, write to the Free Software | 20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 21 // | USA. | 2 22 3 // +-----------------------------------------------------------------------+ 23 4 5 // | Piwigo - a PHP based photo gallery | 6 7 // +-----------------------------------------------------------------------+ 8 9 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 10 11 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 12 13 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 14 15 // +-----------------------------------------------------------------------+ 16 17 // | This program is free software; you can redistribute it and/or modify | 18 19 // | it under the terms of the GNU General Public License as published by | 20 21 // | the Free Software Foundation | 22 23 // | | 24 25 // | This program is distributed in the hope that it will be useful, but | 26 27 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 28 29 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 30 31 // | General Public License for more details. | 32 33 // | | 34 35 // | You should have received a copy of the GNU General Public License | 36 37 // | along with this program; if not, write to the Free Software | 38 39 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 40 41 // | USA. | 42 43 // +-----------------------------------------------------------------------+ 44 45 46 24 47 // Recursive call 48 25 49 $url = '../'; 50 26 51 header( 'Request-URI: '.$url ); 52 27 53 header( 'Content-Location: '.$url ); 54 28 55 header( 'Location: '.$url ); 56 29 57 exit(); 58 30 59 ?> -
extensions/ThumbnailTooltip/include/class.inc.php
r28288 r30100 1 1 <?php 2 2 3 4 3 5 class Thumbnail_Tooltip_IMG { 6 4 7 var $plugin_name, $plugin_path, $plugin_url; 8 5 9 var $my_config; 6 10 11 12 7 13 function Thumbnail_Tooltip_IMG ($plugin_name, $plugin_path, $plugin_url) { 14 8 15 $this->plugin_name = $plugin_name; 16 9 17 $this->plugin_path = $plugin_path; 18 10 19 $this->plugin_url = $plugin_url; 20 11 21 $this->initialize_event_handler($plugin_name, $plugin_path, $plugin_url); 12 } 22 23 } 24 25 13 26 14 27 function initialize_event_handler() { 28 15 29 add_event_handler('loc_end_index_thumbnails', array($this, 'thumbnail_tooltip_affich'), 50, 2); 30 16 31 add_event_handler('loc_end_index_category_thumbnails', array($this, 'Author_Description_affich'), 50, 2); 17 } 32 33 } 34 35 18 36 19 37 function thumbnail_tooltip_affich($tpl_var) { 38 20 39 global $user; 40 21 41 42 22 43 $query = 'SELECT param, value, comment FROM ' . CONFIG_TABLE . ' WHERE param="thumbnail_tooltip"'; 44 23 45 $row = pwg_db_fetch_assoc( pwg_query($query) ); 24 46 47 48 25 49 $params = unserialize($row['value']); 50 26 51 $values = array( 52 27 53 'DISPLAY_NAME' => $params['display_name'], 54 28 55 'value1' => $params['value1'], 56 29 57 'value2' => $params['value2'], 58 30 59 'value3' => $params['value3'], 60 31 61 'value4' => $params['value4'], 62 32 63 'value5' => $params['value5'], 64 33 65 'value6' => $params['value6'], 66 34 67 'separator' => $params['separator'] 68 35 69 ); 70 36 71 72 37 73 if ($params['display_name']==true) { 74 38 75 foreach($tpl_var as $cle=>$valeur) { 76 39 77 $query = " 78 40 79 SELECT name, hit, comment, author, rating_score, CONCAT(width, 'x', height) AS dimensions, filesize FROM ".IMAGES_TABLE." 80 41 81 WHERE id = ".(int)$tpl_var[$cle]['id']." 82 42 83 ;"; 84 43 85 $row = pwg_db_fetch_assoc( pwg_query($query) ); 44 86 87 88 45 89 $details = array(); 90 46 91 $details_param = array(); 92 47 93 94 48 95 $details['tn_type1'] = $row['name']; 49 96 97 98 50 99 if (!empty($row['hit'])) { 100 51 101 $details['tn_type2'] = $row['hit'].' '.strtolower(l10n('Visits')); 102 52 103 $details['tn_type3'] = '('.$row['hit'].' '.strtolower(l10n('Visits')).')'; 104 53 105 if (!empty($row['rating_score'])) { $type8 = ', '.strtolower(l10n('Rating score')).' '.$row['rating_score']; } else { $type8 = ''; } 106 54 107 $details['tn_type8'] = '('.$row['hit'].' '.strtolower(l10n('Visits')).$type8.')'; 55 } 108 109 } 110 56 111 if (!empty($row['comment'])) { 57 $details['tn_type4'] = $row['comment']; 58 } 112 113 $details['tn_type4'] = addslashes(strip_tags($row['comment'])); 114 115 } 116 59 117 if (!empty($row['author'])) { 118 60 119 $details['tn_type5'] = $row['author']; 61 } 120 121 } 122 62 123 if (!empty($row['author'])) { 124 63 125 $details['tn_type6'] = (preg_match('#(,|\/)#i', $row['author'])) ? str_replace(array('(',')'), '', ucfirst(l10n('author(s) : %s', $row['author']))) : l10n('Author').' : '.$row['author']; 64 } 126 127 } 128 65 129 if (!empty($row['rating_score'])) { 130 66 131 $details['tn_type7'] = strtolower(l10n('Rating score')).' '.$row['rating_score']; 67 } 132 133 } 134 68 135 if (!empty($row['dimensions'])) { 136 69 137 $details['tn_type9'] = l10n('Dimensions').' : '.$row['dimensions']; 70 } 138 139 } 140 71 141 if (!empty($row['filesize'])) { 142 72 143 if (($params['separator']=='1') && (!empty($details['tn_type9']))) { $details['tn_type9'].= ' - '; } elseif (($params['separator']!='1') && (!empty($details['tn_type9']))) { $details['tn_type9'].= ' '; } else { $details['tn_type9'] = ' '; } 144 73 145 $details['tn_type9'].= l10n('Filesize').' : '.l10n('%d Kb', $row['filesize']); 146 74 147 } 148 75 149 150 76 151 if ((!empty($details[$values['value1']])) && ($details[$values['value1']]!='none')) { $details_param[] = $details[$values['value1']]; } 152 77 153 if ((!empty($details[$values['value2']])) && ($details[$values['value2']]!='none')) { $details_param[] = $details[$values['value2']]; } 154 78 155 if ((!empty($details[$values['value3']])) && ($details[$values['value3']]!='none')) { $details_param[] = $details[$values['value3']]; } 156 79 157 if ((!empty($details[$values['value4']])) && ($details[$values['value4']]!='none')) { $details_param[] = $details[$values['value4']]; } 158 80 159 if ((!empty($details[$values['value5']])) && ($details[$values['value5']]!='none')) { $details_param[] = $details[$values['value5']]; } 160 81 161 if ((!empty($details[$values['value6']])) && ($details[$values['value6']]!='none')) { $details_param[] = $details[$values['value6']]; } 162 82 163 164 83 165 if ($params['separator']=='1') { $title = implode(' - ', $details_param); } else { $title = implode(' ', $details_param); } 166 84 167 168 85 169 $tpl_var[$cle]['TN_TITLE'] = $title; 170 86 171 } 172 87 173 } 174 88 175 return $tpl_var; 89 } 90 91 176 177 } 178 179 180 181 182 92 183 function Author_Description_affich($tpl_var) { 184 93 185 global $user, $lang; 94 186 187 188 95 189 $query = 'SELECT param, value, comment FROM ' . CONFIG_TABLE . ' WHERE param="thumbnail_tooltip";'; 190 96 191 $row = pwg_db_fetch_assoc( pwg_query($query) ); 97 192 193 194 98 195 $params = unserialize($row['value']); 196 99 197 $values = array('DISPLAY_AUTHOR_CAT' => $params['display_author_cat']); 198 100 199 200 101 201 if ($params['display_author_cat']==true) { 202 102 203 foreach($tpl_var as $cle=>$valeur) { 204 103 205 $query = "SELECT author FROM ".IMAGE_CATEGORY_TABLE." INNER JOIN ".IMAGES_TABLE." ON image_id = id WHERE category_id = ".(int)$tpl_var[$cle]['id']." AND author<>'' GROUP BY author"; 206 104 207 $result = pwg_query($query); 208 105 209 $row = pwg_db_fetch_assoc($result); 210 106 211 212 107 213 $auteur = ''; 214 108 215 if (!empty($row['author'])) { 216 109 217 do { 218 110 219 $auteur .= $row['author'].', '; 220 111 221 } while ($row = pwg_db_fetch_assoc($result)); 222 112 223 $auteur = substr($auteur, 0, -2); 224 113 225 if (preg_match('#(,|\/)#i', $auteur )) { $auteur = str_replace(array('(',')'), '', ucfirst(sprintf($lang['author(s) : %s'], $auteur))); } else { $auteur = $lang['Author'].' : '.$auteur ; } 226 114 227 if (!empty($tpl_var[$cle]['DESCRIPTION'])) { $tpl_var[$cle]['DESCRIPTION'] = $tpl_var[$cle]['DESCRIPTION'].'<br/>'.$auteur; } else { $tpl_var[$cle]['DESCRIPTION'] = $auteur; } 228 115 229 } 230 116 231 } 232 117 233 } 234 118 235 return $tpl_var; 119 } 236 237 } 238 120 239 } 240 121 241 ?> -
extensions/ThumbnailTooltip/include/index.php
r27645 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based photo gallery | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 8 // +-----------------------------------------------------------------------+ 9 // | This program is free software; you can redistribute it and/or modify | 10 // | it under the terms of the GNU General Public License as published by | 11 // | the Free Software Foundation | 12 // | | 13 // | This program is distributed in the hope that it will be useful, but | 14 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 // | General Public License for more details. | 17 // | | 18 // | You should have received a copy of the GNU General Public License | 19 // | along with this program; if not, write to the Free Software | 20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 21 // | USA. | 2 22 3 // +-----------------------------------------------------------------------+ 23 4 5 // | Piwigo - a PHP based photo gallery | 6 7 // +-----------------------------------------------------------------------+ 8 9 // | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | 10 11 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 12 13 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 14 15 // +-----------------------------------------------------------------------+ 16 17 // | This program is free software; you can redistribute it and/or modify | 18 19 // | it under the terms of the GNU General Public License as published by | 20 21 // | the Free Software Foundation | 22 23 // | | 24 25 // | This program is distributed in the hope that it will be useful, but | 26 27 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 28 29 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 30 31 // | General Public License for more details. | 32 33 // | | 34 35 // | You should have received a copy of the GNU General Public License | 36 37 // | along with this program; if not, write to the Free Software | 38 39 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 40 41 // | USA. | 42 43 // +-----------------------------------------------------------------------+ 44 45 46 24 47 // Recursive call 48 25 49 $url = '../'; 50 26 51 header( 'Request-URI: '.$url ); 52 27 53 header( 'Content-Location: '.$url ); 54 28 55 header( 'Location: '.$url ); 56 29 57 exit(); 58 30 59 ?> -
extensions/ThumbnailTooltip/index.php
r27647 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based photo gallery | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 8 // +-----------------------------------------------------------------------+ 9 // | This program is free software; you can redistribute it and/or modify | 10 // | it under the terms of the GNU General Public License as published by | 11 // | the Free Software Foundation | 12 // | | 13 // | This program is distributed in the hope that it will be useful, but | 14 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 // | General Public License for more details. | 17 // | | 18 // | You should have received a copy of the GNU General Public License | 19 // | along with this program; if not, write to the Free Software | 20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 21 // | USA. | 2 22 3 // +-----------------------------------------------------------------------+ 23 4 5 // | Piwigo - a PHP based photo gallery | 6 7 // +-----------------------------------------------------------------------+ 8 9 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 10 11 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 12 13 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 14 15 // +-----------------------------------------------------------------------+ 16 17 // | This program is free software; you can redistribute it and/or modify | 18 19 // | it under the terms of the GNU General Public License as published by | 20 21 // | the Free Software Foundation | 22 23 // | | 24 25 // | This program is distributed in the hope that it will be useful, but | 26 27 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 28 29 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 30 31 // | General Public License for more details. | 32 33 // | | 34 35 // | You should have received a copy of the GNU General Public License | 36 37 // | along with this program; if not, write to the Free Software | 38 39 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 40 41 // | USA. | 42 43 // +-----------------------------------------------------------------------+ 44 45 46 24 47 // Recursive call 48 25 49 $url = '../'; 50 26 51 header( 'Request-URI: '.$url ); 52 27 53 header( 'Content-Location: '.$url ); 54 28 55 header( 'Location: '.$url ); 56 29 57 exit(); 58 30 59 ?> -
extensions/ThumbnailTooltip/initialize.inc.php
r28210 r30100 1 1 <?php 2 2 3 4 3 5 if (!defined('PHPWG_ROOT_PATH')) { 6 4 7 die('Hacking attempt!'); 8 5 9 } 10 11 6 12 7 13 add_event_handler('init', 'Thumbnail_Tooltip'); 8 14 15 16 9 17 function Thumbnail_Tooltip() { 18 10 19 $plugin_name = 'Thumbnail Tooltip'; 20 11 21 $plugin_path = dirname(__FILE__).'/'; 22 12 23 $plugin_url = get_root_url(); 24 25 13 26 14 27 include_once($plugin_path.'include/class.inc.php'); 15 28 29 30 16 31 // Create object 32 17 33 $Thumbnail_Tooltip = new Thumbnail_Tooltip_IMG($plugin_name, $plugin_path, $plugin_url); 34 18 35 set_plugin_data($Thumbnail_Tooltip -> plugin_name, $Thumbnail_Tooltip); 36 19 37 } 38 20 39 ?> -
extensions/ThumbnailTooltip/language/bg_BG/plugin.lang.php
r29186 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_name_link'] = 'Спомагателни бележки'; -
extensions/ThumbnailTooltip/language/de_DE/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Fotos'; -
extensions/ThumbnailTooltip/language/el_GR/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_yes'] = 'Ναι'; -
extensions/ThumbnailTooltip/language/en_UK/index.php
r27646 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 11 // +-----------------------------------------------------------------------+ 12 // | This program is free software; you can redistribute it and/or modify | 13 // | it under the terms of the GNU General Public License as published by | 14 // | the Free Software Foundation | 15 // | | 16 // | This program is distributed in the hope that it will be useful, but | 17 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 // | General Public License for more details. | 20 // | | 21 // | You should have received a copy of the GNU General Public License | 22 // | along with this program; if not, write to the Free Software | 23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 24 // | USA. | 2 25 3 // +-----------------------------------------------------------------------+ 26 4 5 // | PhpWebGallery - a PHP based picture gallery | 6 7 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 8 9 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 10 11 // +-----------------------------------------------------------------------+ 12 13 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 14 15 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 16 17 // | last modifier : $Author: rub $ 18 19 // | revision : $Revision: 1912 $ 20 21 // +-----------------------------------------------------------------------+ 22 23 // | This program is free software; you can redistribute it and/or modify | 24 25 // | it under the terms of the GNU General Public License as published by | 26 27 // | the Free Software Foundation | 28 29 // | | 30 31 // | This program is distributed in the hope that it will be useful, but | 32 33 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 34 35 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 36 37 // | General Public License for more details. | 38 39 // | | 40 41 // | You should have received a copy of the GNU General Public License | 42 43 // | along with this program; if not, write to the Free Software | 44 45 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 46 47 // | USA. | 48 49 // +-----------------------------------------------------------------------+ 50 51 52 27 53 // Recursive call 54 28 55 $url = '../'; 56 29 57 header( 'Request-URI: '.$url ); 58 30 59 header( 'Content-Location: '.$url ); 60 31 61 header( 'Location: '.$url ); 62 32 63 exit(); 64 33 65 ?> 66 -
extensions/ThumbnailTooltip/language/eo_EO/plugin.lang.php
r28225 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_configuration_saved'] = 'Agordo konservita'; -
extensions/ThumbnailTooltip/language/es_ES/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Imagen'; -
extensions/ThumbnailTooltip/language/fr_FR/index.php
r27646 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 11 // +-----------------------------------------------------------------------+ 12 // | This program is free software; you can redistribute it and/or modify | 13 // | it under the terms of the GNU General Public License as published by | 14 // | the Free Software Foundation | 15 // | | 16 // | This program is distributed in the hope that it will be useful, but | 17 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 // | General Public License for more details. | 20 // | | 21 // | You should have received a copy of the GNU General Public License | 22 // | along with this program; if not, write to the Free Software | 23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 24 // | USA. | 2 25 3 // +-----------------------------------------------------------------------+ 26 4 5 // | PhpWebGallery - a PHP based picture gallery | 6 7 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 8 9 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 10 11 // +-----------------------------------------------------------------------+ 12 13 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 14 15 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 16 17 // | last modifier : $Author: rub $ 18 19 // | revision : $Revision: 1912 $ 20 21 // +-----------------------------------------------------------------------+ 22 23 // | This program is free software; you can redistribute it and/or modify | 24 25 // | it under the terms of the GNU General Public License as published by | 26 27 // | the Free Software Foundation | 28 29 // | | 30 31 // | This program is distributed in the hope that it will be useful, but | 32 33 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 34 35 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 36 37 // | General Public License for more details. | 38 39 // | | 40 41 // | You should have received a copy of the GNU General Public License | 42 43 // | along with this program; if not, write to the Free Software | 44 45 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 46 47 // | USA. | 48 49 // +-----------------------------------------------------------------------+ 50 51 52 27 53 // Recursive call 54 28 55 $url = '../'; 56 29 57 header( 'Request-URI: '.$url ); 58 30 59 header( 'Content-Location: '.$url ); 60 31 61 header( 'Location: '.$url ); 62 32 63 exit(); 64 33 65 ?> 66 -
extensions/ThumbnailTooltip/language/fr_FR/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 3 $lang['tn_display_img'] = 'Photos'; 4 3 5 $lang['tn_display_cat'] = 'Albums'; 6 4 7 $lang['tn_display_name_img'] = 'Afficher le titre de la photo'; 8 5 9 $lang['tn_display_name_cat'] = 'Afficher l\'auteur dans les albums'; 10 6 11 $lang['tn_name_link'] = 'Texte de l\'infobulle'; 7 12 13 14 8 15 $lang['tn_separator'] = 'Separateur (-)'; 16 9 17 $lang['tn_none'] = 'Aucun'; 18 10 19 $lang['tn_yes'] = 'Oui'; 20 11 21 $lang['tn_no'] = 'Non'; 12 22 23 24 13 25 $lang['tn_type1'] = 'Titre'; 26 14 27 $lang['tn_type2'] = 'Nombre de visites'; 28 15 29 $lang['tn_type3'] = '(Nombre de visites)'; 30 16 31 $lang['tn_type4'] = 'Description'; 32 17 33 $lang['tn_type5'] = 'Auteur'; 34 18 35 $lang['tn_type6'] = 'Auteur : Auteur'; 36 19 37 $lang['tn_type7'] = 'Note moyenne'; 38 20 39 $lang['tn_type8'] = '(Nombre de visites, Note moyenne)'; 21 40 41 42 22 43 $lang['tn_configuration_saved'] = 'Configuration sauvegardée'; 44 23 45 $lang['tn_default_parameters'] = 'Paramètres par défaut'; 46 24 47 $lang['tn_default_parameters_saved'] = 'Paramètres par défaut sauvegardés'; 48 25 49 ?> -
extensions/ThumbnailTooltip/language/hi_IN/index.php
r27756 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 11 // +-----------------------------------------------------------------------+ 12 // | This program is free software; you can redistribute it and/or modify | 13 // | it under the terms of the GNU General Public License as published by | 14 // | the Free Software Foundation | 15 // | | 16 // | This program is distributed in the hope that it will be useful, but | 17 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 // | General Public License for more details. | 20 // | | 21 // | You should have received a copy of the GNU General Public License | 22 // | along with this program; if not, write to the Free Software | 23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 24 // | USA. | 2 25 3 // +-----------------------------------------------------------------------+ 26 4 5 // | PhpWebGallery - a PHP based picture gallery | 6 7 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 8 9 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 10 11 // +-----------------------------------------------------------------------+ 12 13 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 14 15 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 16 17 // | last modifier : $Author: rub $ 18 19 // | revision : $Revision: 1912 $ 20 21 // +-----------------------------------------------------------------------+ 22 23 // | This program is free software; you can redistribute it and/or modify | 24 25 // | it under the terms of the GNU General Public License as published by | 26 27 // | the Free Software Foundation | 28 29 // | | 30 31 // | This program is distributed in the hope that it will be useful, but | 32 33 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 34 35 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 36 37 // | General Public License for more details. | 38 39 // | | 40 41 // | You should have received a copy of the GNU General Public License | 42 43 // | along with this program; if not, write to the Free Software | 44 45 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 46 47 // | USA. | 48 49 // +-----------------------------------------------------------------------+ 50 51 52 27 53 // Recursive call 54 28 55 $url = '../'; 56 29 57 header( 'Request-URI: '.$url ); 58 30 59 header( 'Content-Location: '.$url ); 60 31 61 header( 'Location: '.$url ); 62 32 63 exit(); 64 33 65 ?> 66 -
extensions/ThumbnailTooltip/language/index.php
r27646 r30100 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 11 // +-----------------------------------------------------------------------+ 12 // | This program is free software; you can redistribute it and/or modify | 13 // | it under the terms of the GNU General Public License as published by | 14 // | the Free Software Foundation | 15 // | | 16 // | This program is distributed in the hope that it will be useful, but | 17 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 // | General Public License for more details. | 20 // | | 21 // | You should have received a copy of the GNU General Public License | 22 // | along with this program; if not, write to the Free Software | 23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 24 // | USA. | 2 25 3 // +-----------------------------------------------------------------------+ 26 4 5 // | PhpWebGallery - a PHP based picture gallery | 6 7 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 8 9 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 10 11 // +-----------------------------------------------------------------------+ 12 13 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 14 15 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 16 17 // | last modifier : $Author: rub $ 18 19 // | revision : $Revision: 1912 $ 20 21 // +-----------------------------------------------------------------------+ 22 23 // | This program is free software; you can redistribute it and/or modify | 24 25 // | it under the terms of the GNU General Public License as published by | 26 27 // | the Free Software Foundation | 28 29 // | | 30 31 // | This program is distributed in the hope that it will be useful, but | 32 33 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 34 35 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 36 37 // | General Public License for more details. | 38 39 // | | 40 41 // | You should have received a copy of the GNU General Public License | 42 43 // | along with this program; if not, write to the Free Software | 44 45 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 46 47 // | USA. | 48 49 // +-----------------------------------------------------------------------+ 50 51 52 27 53 // Recursive call 54 28 55 $url = '../'; 56 29 57 header( 'Request-URI: '.$url ); 58 30 59 header( 'Content-Location: '.$url ); 60 31 61 header( 'Location: '.$url ); 62 32 63 exit(); 64 33 65 ?> 66 -
extensions/ThumbnailTooltip/language/lv_LV/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 3 // +-----------------------------------------------------------------------+ 4 3 5 // | Piwigo - a PHP based photo gallery | 6 4 7 // +-----------------------------------------------------------------------+ 8 5 9 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 10 6 11 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 12 7 13 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 14 8 15 // +-----------------------------------------------------------------------+ 16 9 17 // | This program is free software; you can redistribute it and/or modify | 18 10 19 // | it under the terms of the GNU General Public License as published by | 20 11 21 // | the Free Software Foundation | 22 12 23 // | | 24 13 25 // | This program is distributed in the hope that it will be useful, but | 26 14 27 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 28 15 29 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 30 16 31 // | General Public License for more details. | 32 17 33 // | | 34 18 35 // | You should have received a copy of the GNU General Public License | 36 19 37 // | along with this program; if not, write to the Free Software | 38 20 39 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 40 21 41 // | USA. | 42 22 43 // +-----------------------------------------------------------------------+ 44 23 45 $lang['tn_display_img'] = 'Attēli'; 46 24 47 $lang['tn_display_cat'] = 'Fotoalbumus'; 48 25 49 $lang['tn_display_name_img'] = 'Parādīt nosaukumu attēlu'; 50 26 51 $lang['tn_display_name_cat'] = 'Parādīt nosaukumus autors albumā'; 52 27 53 $lang['tn_name_link'] = 'Tooltip teksta'; 28 54 55 56 29 57 $lang['tn_type1'] = 'Nosaukums'; 58 30 59 $lang['tn_type2'] = 'Apmeklejumi'; 60 31 61 $lang['tn_type3'] = '(Apmeklejumi)'; 62 32 63 $lang['tn_type4'] = 'Description'; 64 33 65 $lang['tn_type5'] = 'Autors'; 66 34 67 $lang['tn_type6'] = 'Autors : Autors'; 68 35 69 $lang['tn_type7'] = 'Rezultejošais vertejums'; 70 36 71 $lang['tn_type8'] = '(Apmeklejumi, Rezultejošais vertejums)'; 72 37 73 $lang['tn_separator'] = 'Atdalitajs (-)'; 74 38 75 $lang['tn_none'] = 'Neviens'; 76 39 77 $lang['tn_no'] = 'Ne'; 78 40 79 $lang['tn_default_parameters_saved'] = 'Noklusejuma konfiguracija saglabata'; 80 41 81 $lang['tn_default_parameters'] = 'Noklusejuma konfiguracija'; 82 42 83 $lang['tn_configuration_saved'] = 'Konfiguracija saglabata'; 43 84 85 86 44 87 $lang['tn_yes'] = 'Ja'; 88 45 89 ?> -
extensions/ThumbnailTooltip/language/pt_BR/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Fotos'; -
extensions/ThumbnailTooltip/language/pt_PT/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Fotos'; -
extensions/ThumbnailTooltip/language/sk_SK/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Fotky'; -
extensions/ThumbnailTooltip/language/sv_SE/plugin.lang.php
r28751 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_configuration_saved'] = 'Inställningarna sparade'; -
extensions/ThumbnailTooltip/language/tr_TR/plugin.lang.php
r28174 r30100 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 3 4 // | Piwigo - a PHP based photo gallery | 5 4 6 // +-----------------------------------------------------------------------+ 7 5 8 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 9 6 10 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 11 7 12 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 13 8 14 // +-----------------------------------------------------------------------+ 15 9 16 // | This program is free software; you can redistribute it and/or modify | 17 10 18 // | it under the terms of the GNU General Public License as published by | 19 11 20 // | the Free Software Foundation | 21 12 22 // | | 23 13 24 // | This program is distributed in the hope that it will be useful, but | 25 14 26 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 27 15 28 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 29 16 30 // | General Public License for more details. | 31 17 32 // | | 33 18 34 // | You should have received a copy of the GNU General Public License | 35 19 36 // | along with this program; if not, write to the Free Software | 37 20 38 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 39 21 40 // | USA. | 41 22 42 // +-----------------------------------------------------------------------+ 23 43 $lang['tn_display_img'] = 'Görüntüler'; -
extensions/ThumbnailTooltip/main.inc.php
r28288 r30100 1 1 <?php 2 2 3 /* 4 3 5 Plugin Name: Thumbnail Tooltip 4 Version: 1.4.5 6 7 Version: 1.4.8 5 8 Description: Permet de changer l'infobulle sur les images dans les albums. 9 6 10 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=738 11 7 12 Author: Sarybe 13 8 14 Author URI: http://www.lesrempartsdetours.com 15 9 16 */ 17 18 10 19 11 20 // Inspiré des plugins CatAddFav by jfc (http://fr.piwigo.org/ext/extension_view.php?eid=489) et Lightbox by P@t (http://piwigo.org/ext/extension_view.php?eid=280) 12 21 22 23 13 24 if (!defined('PHPWG_ROOT_PATH')) { 25 14 26 die('Hacking attempt!'); 27 15 28 } 29 30 16 31 17 32 define('thumbnail_tooltip_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 18 33 34 35 19 36 if (script_basename() == 'admin') { 37 20 38 include(dirname(__FILE__).'/admin/functions.inc.php'); 39 21 40 } 41 22 42 else { 43 23 44 include_once(dirname(__FILE__).'/initialize.inc.php'); 45 24 46 } 47 25 48 ?> -
extensions/ThumbnailTooltip/maintain.inc.php
r27650 r30100 1 1 <?php 2 3 2 4 3 5 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 6 7 8 5 9 function plugin_install() 10 6 11 { 12 7 13 include(dirname(__FILE__).'/admin/config_default.inc.php'); 8 14 15 16 9 17 $query = ' 18 10 19 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 20 11 21 VALUES ("thumbnail_tooltip" , "'.addslashes(serialize($config_default)).'" , "Thumbnail Tooltip plugin parameters");'; 22 12 23 pwg_query($query); 13 24 25 26 14 27 $query = 'SHOW FULL COLUMNS FROM ' . HISTORY_TABLE . ';'; 28 15 29 $result = array_from_query($query, 'Field'); 30 16 31 if (!in_array('thumbnail_tooltip', $result)) 32 17 33 { 34 18 35 pwg_query('ALTER TABLE '.HISTORY_TABLE.' ADD `thumbnail_tooltip` ENUM(\'true\', \'false\') NULL DEFAULT NULL'); 36 19 37 } 38 20 39 } 21 40 41 42 22 43 function plugin_uninstall() 44 23 45 { 46 24 47 $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="thumbnail_tooltip" LIMIT 1;'; 48 25 49 pwg_query($query); 26 50 51 52 27 53 $query = 'SHOW FULL COLUMNS FROM ' . HISTORY_TABLE . ';'; 54 28 55 $result = array_from_query($query, 'Field'); 56 29 57 if (in_array('thumbnail_tooltip', $result)) 58 30 59 { 60 31 61 $q = ' ALTER TABLE '.HISTORY_TABLE.' DROP `thumbnail_tooltip`'; 62 32 63 pwg_query( $q ); 64 33 65 } 66 34 67 } 35 68 69 70 36 71 ?>
Note: See TracChangeset
for help on using the changeset viewer.