Changeset 3663 for extensions/Flash_Gallery
- Timestamp:
- Jul 22, 2009, 12:34:42 AM (15 years ago)
- Location:
- extensions/Flash_Gallery
- Files:
-
- 1 added
- 2 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Flash_Gallery/admin/add_module.php
r3531 r3663 41 41 WHERE id = ' . $_GET['edit'] . ';'); 42 42 43 // Force le submit pour sauvegarder les données éventuellement modifiées lors du RAZ des paramètres. Pas de redirection dans ce cas 44 $_POST['submit'] = 'no_redirect'; 43 45 } 44 46 … … 57 59 else 58 60 { 59 // id, pos, name, descr, type, datas, users, groups, show_title, on_home, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, id_line60 61 $module_name = $_POST['module_name']; 61 62 $desc = (!empty($_POST['module_desc']) ? '"' . $_POST['module_desc'] . '"' : 'NULL'); … … 78 79 79 80 $height = (!empty($_POST['flashgal_height']) ? '"'.$_POST['flashgal_height'].'"' : "NULL"); 81 $maxcomment = (!empty($_POST['flashgal_max_comment']) ? '"'.$_POST['flashgal_max_comment'].'"' : "0");; 80 82 81 // $sav_datas = (!empty($datas) ? '"' . addslashes(serialize($datas)) . '"' : 'NULL');82 83 $sav_ext_datas = (!empty($ext_datas) ? '"' . addslashes(serialize($ext_datas)) . '"' : 'NULL'); 83 84 … … 96 97 if (isset($_GET['edit'])) 97 98 { 98 // // id, pos, name, descr, type, datas, users, groups, show_title, on_home, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent99 99 100 100 pwg_query(' … … 118 118 transparent=' . $transparent .', 119 119 fullscreen=' . $fullscreen .', 120 bgcolor="' . $bgcolor .'" 120 bgcolor="' . $bgcolor .'", 121 maxcomment=' . $maxcomment . ' 121 122 122 123 WHERE id = ' . $_GET['edit'] . ';'); … … 132 133 133 134 $query = ' 134 INSERT INTO ' . FLASHGAL_TABLE . ' ( id, pos, name, descr, type, datas, ext_datas, users, groups, show_title, on_home, on_home_global, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, fullscreen, bgcolor )135 INSERT INTO ' . FLASHGAL_TABLE . ' ( id, pos, name, descr, type, datas, ext_datas, users, groups, show_title, on_home, on_home_global, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, fullscreen, bgcolor, maxcomment) 135 136 VALUES (' . $next_element_id . ' , 136 137 ' . $pos . ', … … 153 154 ' . $transparent .', 154 155 ' . $fullscreen .', 155 "' . $bgcolor .'" 156 "' . $bgcolor .'", 157 ' . $maxcomment . ' 156 158 );'; 157 159 … … 161 163 } 162 164 163 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php'); 165 if ($_POST['submit'] != 'no_redirect') 166 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php'); 164 167 } 165 168 } … … 194 197 'replace_thumb_CHECKED' => ($module['replace_thumb'] == 'true' ? 'checked="checked"' : ''), 195 198 'replace_cats_CHECKED' => ($module['replace_cats'] == 'true' ? 'checked="checked"' : ''), 196 'ENABLERESTORE' => true 199 'ENABLERESTORE' => true, 200 'FLASHGAL_MAX_COMMENT' => (isset($module['maxcomment']) ? $module['maxcomment'] : '0') 197 201 198 202 )); … … 218 222 'FLASHGAL_FULLSCREEN' => 'checked="checked"', 219 223 'FLASHGAL_BGCOLOR' => '#FFFFFF', 220 'ENABLERESTORE' => false 221 224 'ENABLERESTORE' => false, 225 'FLASHGAL_MAX_COMMENT' => '0' 222 226 223 227 )); … … 239 243 } 240 244 241 /// 242 // tiico : ajouter la récupération des données par défaut (présentes dans le fichier module.inc.php) 243 /// 245 246 // Recuperation des données pour les informations a parametrer dans le flux 244 247 foreach ($module_data['datas'] as $key => $value) 245 248 { … … 247 250 { 248 251 $template->append( 'FlashGal_Param', array( 249 // $key => true,250 252 'name' => $key, // nom du parametre 251 253 'lib' => l10n($key), // libelle du parametre … … 267 269 true); 268 270 269 // $datas = array($key => $datas[$key]);270 271 271 272 272 // Configuration supplémentaire du module (dans le cas ou il y a d'autres parametres) -
extensions/Flash_Gallery/admin/admin.php
r3531 r3663 51 51 } 52 52 53 //cyclage sur le parametre on_home 54 if (isset($_GET['id']) and isset($_GET['home']) and !is_adviser()) 55 { 56 $home = $_GET['home']; 57 $global = isset($_GET['global']) ? $_GET['global'] : 'selective'; 58 // ordre : homeOFF -> HomeON -> HomeONGlobal 59 if ($home == 'true' and $global == 'selective') 60 $global = 'global'; 61 elseif ($home == 'true' and $global == 'global') 62 $home = 'false'; 63 else 64 { 65 $home = 'true'; 66 $global = 'selective'; 67 } 68 69 pwg_query( 'UPDATE ' . FLASHGAL_TABLE . ' 70 SET on_home="' . $home. '", on_home_global="' . $global . '" 71 WHERE id=' . $_GET['id'] . ' LIMIT 1'); 72 73 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php'); 74 } 75 //cyclage sur le parametre on_cats 76 if (isset($_GET['id']) and isset($_GET['cats']) and !is_adviser()) 77 { 78 // ordre : catsOFF -> catsON 79 pwg_query( 'UPDATE ' . FLASHGAL_TABLE . ' 80 SET on_cats="' . ($_GET['cats'] == 'true' ? 'false' : 'true'). '" 81 WHERE id=' . $_GET['id'] . ' LIMIT 1'); 82 83 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php'); 84 } 85 86 if (isset($_GET['id']) and isset($_GET['recurs']) and !is_adviser()) 87 { 88 // ordre : recursOFF -> recursON 89 pwg_query( 'UPDATE ' . FLASHGAL_TABLE . ' 90 SET recurs_cats="' . ($_GET['recurs'] == 'true' ? 'false' : 'true'). '" 91 WHERE id=' . $_GET['id'] . ' LIMIT 1'); 92 93 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php'); 94 } 95 53 96 //Récupération des modules disponibles 54 97 $modules = get_flashgal_modules(); -
extensions/Flash_Gallery/admin/manage.php
r3531 r3663 53 53 'ICON_INFO' => FLASHGAL_PATH . 'img/infos.png', 54 54 'SCREEN' => FLASHGAL_PATH . '/modules/'. $module['type'].'/screenshot.jpg', 55 'U_EDIT' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadd_module.php&type=' . $module['type'] . '&edit=' . $module['id'], 56 'U_DELETE' => !is_adviser() ? PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&del=' . $module['id'] : '', 55 'U_EDIT' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadd_module.php&type=' . $module['type'] . '&edit=' . $module['id'], 56 'U_DELETE' => !is_adviser() ? PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&del=' . $module['id'] : '', 57 'U_HOME' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&home=' . $module['on_home'] . '&global=' .$module['on_home_global'], 58 'U_CATS' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&cats=' . $module['on_cats'], 59 'U_RECURS' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&recurs=' . $module['recurs_cats'], 57 60 )); 58 61 } -
extensions/Flash_Gallery/admin/template/add_module.tpl
r3531 r3663 75 75 <td colspan="3"><input type="checkbox" name="show_title" value="1" {$show_title_CHECKED}> {'flashgal_show_title'|@translate}</td> 76 76 </tr> 77 <tr><td ><br></td></tr>77 <tr><td colspan="3"> </td></tr> 78 78 79 79 <tr> … … 81 81 <td colspan="2"><input type="text" size="3" maxlength="3" value="{$FLASHGAL_HEIGHT}" name="flashgal_height"> px</td> 82 82 </tr> 83 <tr><td colspan="3"> </td></tr> 84 <tr> 85 <td> </td> 86 <td colspan="2"> 87 - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/> {'flashgal_transparent'|@translate} 88 </td> 89 </tr> 83 90 <tr> 84 91 <td> {'flashgal_cfg_option'|@translate} </td> 85 92 <td colspan="2"> 86 - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/> {'flashgal_transparent'|@translate}87 <br/>88 93 - <input type="checkbox" name="flashgal_fullscreen" {$FLASHGAL_FULLSCREEN}/> {'flashgal_fullscreen'|@translate} 89 <br/> 94 </td> 95 <tr> 96 <td> </td> 97 <td colspan="2"> 90 98 - {'flashgal_bgcolor'|@translate} <input type="text" size="7" maxlength="7" name="flashgal_bgcolor" class="colorwell" value="{$FLASHGAL_BGCOLOR}" /> 91 <br/> 99 </td> 100 </tr> 101 <tr> 102 <td> </td> 103 <td colspan="2"> 92 104 - <input type="checkbox" name="flashgal_recurs_cats" {$FLASHGAL_RECURS_CATS}/> {'flashgal_recurs_cats'|@translate} 93 105 </td> 94 </tr> 95 <tr> 96 <td></td> 97 <td><br><hr></td> 98 <td></td> 106 <tr><td colspan="3"> </td></tr> 107 <tr><td colspan="3"> </td></tr> 108 109 </table> 110 <table> 111 <tr> 112 <td></td> 113 <td><br><hr></td> 114 <td></td> 99 115 </tr> 100 116 <tr> … … 232 248 <td> </td> 233 249 </tr> 250 <tr> 251 <td> <b>%ID</b> : <input type="text" size="1" maxlength="1" value="{$FLASHGAL_MAX_COMMENT}" name="flashgal_max_comment" /> {'img_comment_legend'|@translate} </td> 252 <td> </td> 253 <td> </td> 254 </tr> 234 255 </table> 235 256 -
extensions/Flash_Gallery/admin/template/manage.tpl
r3531 r3663 79 79 {if $module.TYPE != 'MainBlock'} 80 80 <ul class="categoryActions"> 81 <li>< img src="{$module.ON_HOME}" title="{$module.ON_HOME_LIB}"/></li>82 <li>< img src="{$module.ON_CATS}" title="{$module.ON_CATS_LIB}"/></a></li>83 <li>< img src="{$module.RECURS_CATS}" title="{$module.RECURS_CATS_LIB}"/></a></li>81 <li><a href="{$module.U_HOME}" title="{$module.ON_HOME_LIB}"><img src="{$module.ON_HOME}" title="{$module.ON_HOME_LIB}"/></a></li> 82 <li><a href="{$module.U_CATS}" title="{$module.ON_CATS_LIB}"><img src="{$module.ON_CATS}" title="{$module.ON_CATS_LIB}"/></a></li> 83 <li><a href="{$module.U_RECURS}" title="{$module.RECURS_CATS_LIB}"><img src="{$module.RECURS_CATS}" title="{$module.RECURS_CATS_LIB}"/></a></li> 84 84 85 85 <li><a href="{$module.U_EDIT}" title="{'flashgal_edit'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'flash_edit'|@translate}"/></a></li> -
extensions/Flash_Gallery/generate-xml.php
r3531 r3663 233 233 foreach ($pictures as $row) 234 234 { 235 // echo "prev=".$prev_catid;236 // echo "catid=".$row['CATID'];237 235 // Alimentation des variables pour la constitution du flux xml 238 236 foreach ($module_data['datas'] as $keydata => $valuedata) 239 237 { 240 238 if ($valuedata) // == true 241 $picture[$keydata] = parse($module['datas'][$keydata], $row );239 $picture[$keydata] = parse($module['datas'][$keydata], $row, $module['maxcomment']); 242 240 else 243 241 $picture[$keydata] = ''; … … 274 272 unset_make_full_url(); 275 273 276 function parse($data, $row) 277 { 274 function parse($data, $row, $nb_comment = 0) 275 { 276 // Eviter de charger les commentaires (appels base) si ils ne sont pas affichés 277 if (strpos($data, '%ID') === false) 278 $nb_comment = 0; 279 278 280 include (FLASHGAL_PATH.'include/config_param.inc.php'); 279 281 … … 282 284 foreach ($flashgal_parse as $key => $value) 283 285 { 284 // echo "key=".$key." value=".$value."\n";285 286 array_push($patterns, $key); 286 287 array_push($replacements, $value); … … 288 289 289 290 return str_replace($patterns, $replacements, $data); 290 // echo "output=".$output; 291 // return $output; 291 } 292 293 // Return the last comments of an image id 294 function get_comment($img_id, $nb_comment = 0) 295 { 296 $commentstring = ''; 297 298 if ($nb_comment != 0) 299 { 300 $query = ' 301 SELECT id,author,date,image_id,content 302 FROM '.COMMENTS_TABLE.' 303 WHERE image_id = '.$img_id.' 304 AND validated = \'true\' 305 ORDER BY date ASC 306 LIMIT 0,'.$nb_comment.' 307 ;'; 308 $result = pwg_query( $query ); 309 $first = true; 310 311 while ($row = mysql_fetch_array($result)) 312 { 313 314 // Format : "Commentaire (Utilisateur - Date)" 315 $commentstring .= ($first ? '' : " / \n") 316 .trigger_event('render_comment_content',$row['content']) 317 .' ('. trigger_event('render_comment_author', 318 empty($row['author']) 319 ? l10n('guest') 320 : $row['author']) 321 .' - ' 322 .format_date( $row['date'], false) 323 .")"; 324 325 $first = false; 326 327 } 328 } 329 return $commentstring; 292 330 } 293 331 -
extensions/Flash_Gallery/include/class.inc.php
r3599 r3663 116 116 { 117 117 $this->pos = 'end'; 118 continue;118 return; 119 119 } 120 120 … … 122 122 { 123 123 $authorized_groups = explode(',', $module['groups']); 124 if (array_intersect($this->user_groups, $authorized_groups) == array()) continue;124 if (array_intersect($this->user_groups, $authorized_groups) == array()) return; 125 125 } 126 126 … … 169 169 $block['BGCOLOR'] = $module['bgcolor']; 170 170 171 if ((include(FLASHGAL_PATH . 'modules/' . $module['type'] . '/main.inc.php')) === false) continue;171 if ((include(FLASHGAL_PATH . 'modules/' . $module['type'] . '/main.inc.php')) === false) return; 172 172 173 173 $this->set_tpl_block($block, $module); -
extensions/Flash_Gallery/include/config_param.inc.php
r3531 r3663 45 45 : '', 46 46 '%IC' => isset($row['IMGFILE']) ? $row['IMGFILE'] : '' , 47 '%ID' => isset($row['IMGID']) ? get_comment($row['IMGID'], $nb_comment) : '' , 47 48 48 49 '%G1' => get_root_url(), … … 69 70 %IB : IMGHIGHFULL Lien complet vers High 70 71 %IC : IMGFILE nom_fichier 71 72 %ID : Commentaires 73 72 74 %Gx Generaux 73 75 %G1 : root path : URL du piwigo -
extensions/Flash_Gallery/language/en_UK/plugin.lang.php
r3531 r3663 1 1 <?php 2 2 3 $lang[' stuffs_mods_management'] = 'Modules management';4 $lang[' stuffs_add_mod'] = 'Add a module';5 $lang[' stuffs_edit_mod'] = 'Edit module';3 $lang['flashgal_mods_management'] = 'Modules management'; 4 $lang['flashgal_add_mod'] = 'Add a module'; 5 $lang['flashgal_edit_mod'] = 'Edit module'; 6 6 7 $lang['stuffs_module_title'] = 'Module title'; 8 $lang['stuffs_desc'] = 'Description'; 9 $lang['stuffs_only_for_admin'] = '(only for administration pannel)'; 10 $lang['stuffs_type'] = 'Module type'; 11 $lang['stuffs_position'] = 'Position'; 12 $lang['stuffs_id_ligne'] = 'ID line'; 13 $lang['stuffs_width'] = 'Width'; 14 $lang['stuffs_action'] = 'Actions'; 15 $lang['stuffs_edit'] = 'Modify module'; 16 $lang['stuffs_delete'] = 'Delete module'; 17 $lang['stuffs_confirm_delete'] = 'Are you sure you want to delete module %s?'; 18 $lang['stuffs_main_block'] = 'Main block'; 7 $lang['flashgal_module_title'] = 'Module title'; 8 $lang['flashgal_desc'] = 'Description'; 9 $lang['flashgal_only_for_admin'] = '(only for administration pannel)'; 10 $lang['flashgal_type'] = 'Module Type'; 11 $lang['flashgal_action'] = 'Actions'; 12 $lang['flashgal_edit'] = 'Modify module'; 13 $lang['flashgal_delete'] = 'Delete module'; 14 $lang['flashgal_confirm_delete'] = 'Are you sure you want to delete module %s?'; 15 $lang['flashgal_main_block'] = 'Main Block'; 19 16 20 $lang[' stuffs_add_module'] = 'Add new module';21 $lang[' stuffs_module_config'] = 'Module configuration';22 $lang[' stuffs_visual_config'] = 'Display configuration';23 $lang[' stuffs_module_options'] = 'Module options';24 $lang[' stuffs_authorized_group'] = 'Authorized groups';25 $lang[' stuffs_authorized_users'] = 'Authorized users';26 $lang[' stuffs_public_module'] = '(Keep empty for public module)';27 $lang[' stuffs_show_title'] = 'Show module title';28 $lang[' stuffs_show_module_on'] = 'Show module :';29 $lang[' stuffs_show_on_home'] = 'On main page';30 $lang[' stuffs_show_on_cats'] = 'On all categories pages';31 $lang[' stuffs_show_on_pictures'] = 'On picture pages';32 $lang[' stuffs_no_options'] = 'No options for this module';17 $lang['flashgal_add_module'] = 'Add new module'; 18 $lang['flashgal_module_config'] = 'Module configuration'; 19 $lang['flashgal_visual_config'] = 'Display configuration'; 20 $lang['flashgal_module_options'] = 'Options du module'; 21 $lang['flashgal_authorized_group'] = 'Authorized groups'; 22 $lang['flashgal_authorized_users'] = 'Authorized users'; 23 $lang['flashgal_public_module'] = '(Keep empty for public module)'; 24 $lang['flashgal_show_title'] = 'Show module title'; 25 $lang['flashgal_show_module_on'] = 'Show module :'; 26 $lang['flashgal_show_on_home'] = 'On main page'; 27 $lang['flashgal_show_on_home_global'] = 'Global Mode (All categories)'; 28 $lang['flashgal_show_on_home_selective'] = 'Selective Mode (Selected categories)'; 29 $lang['flashgal_show_on_cats'] = 'On categories pages selected below'; 33 30 34 //Messages d'infos 35 $lang['stuffs_order_saved'] = 'Order successfully saved.'; 31 $lang['flashgal_xml_config'] = 'Informations show on the module (in the xml feed)'; 32 $lang['flashgal_cfg_heigh'] = 'Height'; 33 $lang['flashgal_cfg_option'] = 'Module options'; 34 $lang['flashgal_transparent'] = 'Allow Transparent mode'; 35 $lang['flashgal_fullscreen'] = 'Allow Full Screen'; 36 $lang['flashgal_bgcolor'] = 'Background color'; 37 38 $lang['flashgal_recurs_cats'] = 'Recursivity on children categories'; 39 $lang['flashgal_cfg_replacenav'] = 'Replace piwigo display by the module'; 40 $lang['flashgal_replace_thumb'] = 'Replace thumbnail display'; 41 $lang['flashgal_replace_cats'] = 'Replace categories display'; 42 $lang['flashgal_cfg_cat'] = 'Show module on caterogies pages :'; 43 44 $lang['flashgal_xml_legend'] = 'Parameters for variables below'; 45 46 //legende 47 $lang['piclens_picture_legend'] = 'Picture'; 48 $lang['piclens_cat_legend'] = 'Category'; 49 $lang['piclens_global_legend'] = 'Global'; 50 $lang['img_id_legend'] = 'Picture ID'; // %I1 51 $lang['img_name_legend'] = 'Picture Name'; // %I2 52 $lang['img_description_legend'] = 'Picture Description'; // %I3 53 $lang['img_author_legend'] = 'Picture Author'; // %I4 54 $lang['img_URLThumb_legend'] = 'Thumbnail URL (URL From gallerie)'; // %I5 55 $lang['img_URLNormal_legend'] = 'Piture URL (URL From gallerie)'; // %I6 56 $lang['img_URLHigh_legend'] = 'HD Picture URL (URL From gallerie)'; // %I7 57 $lang['img_URLPicturephp_legend'] = 'Link to picture page (picture.php)'; //%I8 58 $lang['img_URLThumbFull_legend'] = 'Thumbnail URL (full URL)'; // %I9 59 $lang['img_URLNormalFull_legend'] = 'Piture URL (Full URL)'; // %IA 60 $lang['img_URLHighFull_legend'] = 'HD Picture URL (Full URL)'; // %IB 61 $lang['img_filename_legend'] = 'Picture file name'; // %IC 62 $lang['img_comment_legend'] = 'Last comments'; // %ID 63 64 $lang['root_path_legend'] = 'Pïwigo path'; // %G1 65 66 $lang['cat_id_legend'] = 'Category ID'; // %C1 67 $lang['cat_name_legend'] = 'Category name'; // %C2 68 $lang['cat_description_legend'] = 'Category description'; // %C3 69 $lang['cat_dir_legend'] = 'Path to category (path from Gallerie)'; // %C4 70 $lang['cat_dirFull_legend'] = 'Path to category (Full path)'; // %C4 71 // Fin legende 72 73 $lang['flashgal_on_home_global_ON_label'] = 'Active on Home (All categories)'; 74 $lang['flashgal_on_home_ON_label'] = 'Active on Home (selected categories)'; 75 $lang['flashgal_on_home_OFF_label'] = 'Inactive on Home'; 76 $lang['flashgal_oncats_ON_label'] = 'Active on Categories'; 77 $lang['flashgal_oncats_OFF_label'] = 'Inactive on Categories'; 78 $lang['flashgal_recurs_ON_label'] = 'Recursivity active'; 79 $lang['flashgal_recurs_OFF_label'] = 'Recursivity inactive'; 36 80 37 81 38 // Messages d'erreurs39 $lang['stuffs_error_no_mod_selected'] = 'You didn\'t select any module.';40 $lang['stuffs_no_name'] = 'You must specify name module';41 82 42 //------------------------------------------------------------------------------ 43 // Module LastComs 44 //------------------------------------------------------------------------------ 83 $lang['img_id'] = 'Picture\'s ID'; 84 $lang['img_name'] = 'Picture\'s name'; 85 $lang['img_description'] = 'Picture\'s description'; 86 $lang['img_URLThumb'] = 'URL for Picture thumbnail'; 87 $lang['img_URLNormal'] = 'URL for Picture'; 88 $lang['img_URLHigh'] = 'URL for Picture High Definition'; 89 $lang['img_URLPicturephp'] = 'Link to picture on piwigo (picture.php)'; 45 90 46 $lang['module_name_LastComs'] = 'Last comments'; 47 $lang['module_desc_LastComs'] = 'Display last posted comments'; 48 49 $lang['lastcoms_no_nb_comments'] = 'You must specify numbers of comments.'; 50 $lang['lastcoms_config'] = 'Configuration'; 51 $lang['lastcoms_nb_comments'] = 'Number of comments to display'; 52 $lang['lastcoms_show_buttons'] = 'Show admin buttons'; 53 $lang['lastcoms_dim'] = 'Thumbnails size'; 54 $lang['lastcoms_width'] = 'Max width'; 55 $lang['lastcoms_height'] = 'Max height'; 56 $lang['lastcoms_nb_cadres'] = 'Numbers of frame by line'; 57 $lang['lastcoms_taille_cadres'] = 'Frame height'; 91 $lang['cat_id'] = 'Category\'s ID'; 92 $lang['cat_name'] = 'Category\'s name'; 93 $lang['cat_description'] = 'Category\'s description'; 58 94 59 95 60 //------------------------------------------------------------------------------ 61 // Module Logon 62 //------------------------------------------------------------------------------ 96 $lang['flashgal_restore'] = 'Default Parameters'; 97 $lang['flashgal_no_options'] = 'No options for this module'; 98 //Messages d'infos 99 $lang['flashgal_order_saved'] = 'Order successfully saved.'; 63 100 64 $lang['module_name_Logon'] = 'Login'; 65 $lang['module_desc_Logon'] = 'Display login block'; 66 67 $lang['logon_remove_menubar_block'] = 'Remove "Quick connect" block from menubar'; 68 69 70 //------------------------------------------------------------------------------ 71 // Module Personal 72 //------------------------------------------------------------------------------ 73 74 $lang['module_name_Personal'] = 'Personnal block'; 75 $lang['module_desc_Personal'] = 'Display personnal block (like an edito)'; 76 77 $lang['personal_content'] = 'content'; 78 79 80 //------------------------------------------------------------------------------ 81 // Module Tags 82 //------------------------------------------------------------------------------ 83 84 $lang['module_name_Tags'] = 'Tags'; 85 $lang['module_desc_Tags'] = 'Display gallery tags'; 86 87 $lang['stuffs_tags_default_display'] = 'Tags display'; 88 $lang['stuffs_tags_cloud'] = 'Tags cloud'; 89 $lang['stuffs_tags_letters'] = 'Group by lettters'; 90 $lang['stuffs_tags_cumulus'] = 'Use cumulus mode (plugin <a href=http://piwigo.org/ext/extension_view.php?eid=263 target="_blank">Cumulus Tags Cloud</a> must be installed)'; 91 92 93 //------------------------------------------------------------------------------ 94 // Module Piclenswall 95 //------------------------------------------------------------------------------ 96 97 $lang['module_name_piclenswall'] = 'Piclens 3DWall'; 98 $lang['module_desc_piclenswall'] = 'Display piclens 3D wall (plugin <a href="http://piwigo.org/ext/extension_view.php?eid=234" target="_blank">Cooliris/piclens</a> must be installed)'; 99 100 $lang['piclenswall_height'] = 'Wall height'; 101 $lang['piclenswall_background_color'] = 'Background color'; 102 $lang['piclenswall_black'] = 'Black'; 103 $lang['piclenswall_white'] = 'White'; 104 $lang['piclenswall_info'] = 'So that the wall is working properly'; 105 $lang['piclenswall_info_piclens'] = 'You must install and activate <a href="http://piwigo.org/ext/extension_view.php?eid=234">Cooliris/piclens</a> plugin.'; 106 $lang['piclenswall_info_crossdomain'] = 'You must copy <a href="%s">crossdomain.xml</a> file to the root of your site (or moddify existing file).'; 107 $lang['piclenswall_info_param'] = '3D Wall Settings must be modified in <b>Cooliris-piclens/b> plugin configuration page.'; 108 109 //------------------------------------------------------------------------------ 110 // Module Most Visited 111 //------------------------------------------------------------------------------ 112 113 $lang['module_name_MostVisited'] = 'Most visited'; 114 $lang['module_desc_MostVisited'] = 'Display x most visited pictures in the gallery or a category'; 115 116 $lang['stuffs_mv_nb_images'] = 'Maximum number of pictures to display'; 117 $lang['stuffs_mv_category_display'] = 'Display on categories pages'; 118 $lang['stuffs_mv_all_cats'] = 'All categories'; 119 $lang['stuffs_mv_w_thumb'] = 'Only categories with thumbnails'; 120 $lang['stuffs_mv_wo_thumb'] = 'Only categories without thumbnails'; 121 $lang['stuffs_mv_selected_cats'] = 'Only selected categories'; 122 123 $lang['stuffs_mv_cat_selection'] = 'Categories selection'; 124 $lang['stuffs_mv_hold_ctrl'] = 'hold CTRL'; 125 126 //------------------------------------------------------------------------------ 127 // Module Best Rated 128 //------------------------------------------------------------------------------ 129 130 $lang['module_name_BestRated'] = 'Best rated'; 131 $lang['module_desc_BestRated'] = 'Display x best rated pictures in the gallery or a category'; 132 133 //------------------------------------------------------------------------------ 134 // Module Recent 135 //------------------------------------------------------------------------------ 136 137 $lang['module_name_Recent'] = 'Recent pictures'; 138 $lang['module_desc_Recent'] = 'Display x recent pictures in the gallery or a category (if exist)'; 139 140 //------------------------------------------------------------------------------ 141 // Module Random 142 //------------------------------------------------------------------------------ 143 144 $lang['module_name_Random'] = 'Random pictures'; 145 $lang['module_desc_Random'] = 'Display x random pictures in the gallery or a category'; 101 // Messages d'erreurs 102 $lang['flashgal_error_no_mod_selected'] = 'You didn\'t select any module.'; 103 $lang['flashgal_no_name'] = 'You must specify name module'; 146 104 147 105 ?> -
extensions/Flash_Gallery/language/fr_FR/plugin.lang.php
r3531 r3663 15 15 $lang['flashgal_only_for_admin'] = '(uniquement pour le panneau d\'administration)'; 16 16 $lang['flashgal_type'] = 'Type de module'; 17 $lang['flashgal_position'] = 'Position';18 $lang['flashgal_id_ligne'] = 'ID ligne';19 $lang['flashgal_width'] = 'Largeur';20 17 $lang['flashgal_action'] = 'Actions'; 21 18 $lang['flashgal_edit'] = 'Modifier le module'; … … 36 33 $lang['flashgal_show_on_home_global'] = 'Mode Global (Toutes les catégories)'; 37 34 $lang['flashgal_show_on_home_selective'] = 'Mode Selectif (Catégories sélectionnées)'; 38 $lang['flashgal_show_on_cats'] = 'Sur toutes les pages des catégories';35 $lang['flashgal_show_on_cats'] = 'Sur les pages des catégories sélectionnées ci-dessous'; 39 36 40 37 $lang['flashgal_xml_config'] = 'Configuration des informations affichées (dans le flux xml)'; … … 54 51 55 52 //legende 56 $lang['flashgal_picture_legend'] = 'Image'; 57 $lang['flashgal_cat_legend'] = 'Catégorie'; 58 $lang['flashgal_global_legend'] = 'Global'; 59 $lang['img_id_legend'] = 'ID de l\'image'; // %I1 60 $lang['img_name_legend'] = 'Nom de l\'image'; // %I2 61 $lang['img_description_legend'] = 'Description de l\'image'; // %I3 62 $lang['img_author_legend'] = 'Auteur de l\'image'; // %I4 63 $lang['img_URLThumb_legend'] = 'URL de la miniature (path non complet)'; // %I5 64 $lang['img_URLNormal_legend'] = 'URL de l\'image (path non complet)'; // %I6 65 $lang['img_URLHigh_legend'] = 'URL de l\'image en haute définition (path non complet)'; // %I7 66 $lang['img_URLPicturephp_legend'] = 'Lien vers l\'image sous PIWIGO (picture.php)'; //%I8 67 $lang['img_URLThumbFull_legend'] = 'URL de la miniature (path complet)'; // %I9 68 $lang['img_URLNormalFull_legend'] = 'URL de l\'image (path complet)'; // %IA 69 $lang['img_URLHighFull_legend'] = 'URL de l\'image en haute définition (path complet)'; // %IB 70 $lang['img_filename_legend'] = 'Nom du fichier image'; // %IC 53 $lang['piclens_picture_legend'] = 'Picture'; 54 $lang['piclens_cat_legend'] = 'Category'; 55 $lang['piclens_global_legend'] = 'Global'; 56 $lang['img_id_legend'] = 'Picture ID'; // %I1 57 $lang['img_name_legend'] = 'Picture Name'; // %I2 58 $lang['img_description_legend'] = 'Picture Description'; // %I3 59 $lang['img_author_legend'] = 'Picture Author'; // %I4 60 $lang['img_URLThumb_legend'] = 'Thumbnail URL (URL From gallerie)'; // %I5 61 $lang['img_URLNormal_legend'] = 'Piture URL (URL From gallerie)'; // %I6 62 $lang['img_URLHigh_legend'] = 'HD Picture URL (URL From gallerie)'; // %I7 63 $lang['img_URLPicturephp_legend'] = 'Link to picture page (picture.php)'; //%I8 64 $lang['img_URLThumbFull_legend'] = 'Thumbnail URL (full URL)'; // %I9 65 $lang['img_URLNormalFull_legend'] = 'Piture URL (Full URL)'; // %IA 66 $lang['img_URLHighFull_legend'] = 'HD Picture URL (Full URL)'; // %IB 67 $lang['img_filename_legend'] = 'Picture file name'; // %IC 68 $lang['img_comment_legend'] = 'Last comments'; // %ID 71 69 72 $lang['root_path_legend'] = 'P ath de piwigo'; // %G170 $lang['root_path_legend'] = 'Pïwigo path'; // %G1 73 71 74 $lang['cat_id_legend'] = ' ID de la catégorie'; // %C175 $lang['cat_name_legend'] = ' Nom de la catégorie'; // %C276 $lang['cat_description_legend'] = ' Description de la catégorie'; // %C377 $lang['cat_dir_legend'] = ' Répertoire de la catégorie (path non complet)'; // %C478 $lang['cat_dirFull_legend'] = ' Répertoire de la catégorie (path complet)'; // %C572 $lang['cat_id_legend'] = 'Category ID'; // %C1 73 $lang['cat_name_legend'] = 'Category name'; // %C2 74 $lang['cat_description_legend'] = 'Category description'; // %C3 75 $lang['cat_dir_legend'] = 'Path to category (path from Gallerie)'; // %C4 76 $lang['cat_dirFull_legend'] = 'Path to category (Full path)'; // %C4 79 77 // Fin legende 80 78 -
extensions/Flash_Gallery/main.inc.php
r3531 r3663 2 2 /* 3 3 Plugin Name: Flash Gallery 4 Version: 0.0. 14 Version: 0.0.2 5 5 Description: Insert Flash on your gallery 6 Plugin URI: 7 Author: 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=299 7 Author: Tiico 8 8 Author URI: 9 9 */ 10 // See CHANGELOG for release informations 10 11 11 12 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); -
extensions/Flash_Gallery/maintain.inc.php
r3531 r3663 33 33 `fullscreen` enum(\'true\',\'false\') NOT NULL, 34 34 `bgcolor` varchar(7) default NULL, 35 `maxcomment` smallint(9) default 0, 35 36 36 37 PRIMARY KEY (`id`), … … 41 42 42 43 // Main Bloc insertion 43 $q = "INSERT INTO `" . $prefixeTable . "flash_gallery` (`id`, `pos`, `name`, `descr`, `type`, `datas`, `ext_datas`,`users`, `groups`, `show_title`, `on_home`, `on_home_global`, `on_cats`, `cats`, `recurs_cats`, `replace_thumb`, `replace_cats`, `height`, `transparent`, `fullscreen`, `bgcolor` )44 VALUES (0, 1, 'MainBlock', NULL, 'MainBlock', NULL, NULL, 'guest,generic,normal,admin,webmaster', NULL, 'true', 'true', 'global', 'true', NULL, 'false', 'false', 'false', NULL, 'false', 'false', '#FFFFFF' );";44 $q = "INSERT INTO `" . $prefixeTable . "flash_gallery` (`id`, `pos`, `name`, `descr`, `type`, `datas`, `ext_datas`,`users`, `groups`, `show_title`, `on_home`, `on_home_global`, `on_cats`, `cats`, `recurs_cats`, `replace_thumb`, `replace_cats`, `height`, `transparent`, `fullscreen`, `bgcolor`, `maxcomment`) 45 VALUES (0, 1, 'MainBlock', NULL, 'MainBlock', NULL, NULL, 'guest,generic,normal,admin,webmaster', NULL, 'true', 'true', 'global', 'true', NULL, 'false', 'false', 'false', NULL, 'false', 'false', '#FFFFFF', '0');"; 45 46 pwg_query($q); 46 47 -
extensions/Flash_Gallery/modules/Carousel/admin/config.inc.php
r3531 r3663 45 45 <style>font_size: 12px; font-family: Verdana, _serif; color: #FFCC66;</style> 46 46 <position>above right</position> <!-- [above, below] [left,center,right]--> 47 47 48 <background>yourimage.png</background> <!-- image url --> 48 49 <scale9>14 14 14 14</scale9> <!-- [0,1000] pixels --> 49 50 <padding>8 12 8 12</padding> <!-- [-1000,1000] pixels --> … … 107 108 'position2' => 3, //"right" 108 109 110 'backgroundURL' => "", 111 'scale9top' => "10", 112 'scale9right' => "10", 113 'scale9bottom' => "10", 114 'scale9left' => "10", 115 'paddingtop' => "5", 116 'paddingright' => "5", 117 'paddingbottom' => "5", 118 'paddingleft' => "5", 119 109 120 ); 110 121 -
extensions/Flash_Gallery/modules/Carousel/admin/config.tpl
r3531 r3663 214 214 </tr> 215 215 216 <tr><td colspan="3"><hr></td></tr> 217 <tr> 218 <td colspan="3"><label>{'Carousel_options_background'|@translate}</label> 219 </td> 220 </tr> 221 <tr> 222 <td>{'Carousel_backgroundURL'|@translate}</td> 223 <td colspan="2"><input type="text" size="40" maxlength="200" name="Carousel_backgroundURL" value="{$Carousel_backgroundURL}" /> </td> 224 </tr> 225 226 <tr> 227 <td> </td> 228 <td align="center">{'Carousel_top'|@translate}</label></td> 229 <td align="center">{'Carousel_bottom'|@translate}</td> 230 </tr> 231 <tr> 232 <td>{'Carousel_scale9'|@translate}</td> 233 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9top" value="{$Carousel_scale9top}" /> px</td> 234 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9bottom" value="{$Carousel_scale9bottom}" /> px</td> 235 </tr> 236 <tr> 237 <td> </td> 238 <td align="center">{'Carousel_right'|@translate}</label></td> 239 <td align="center">{'Carousel_left'|@translate}</td> 240 </tr> 241 <tr> 242 <td> </td> 243 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9right" value="{$Carousel_scale9right}" /> px</td> 244 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9left" value="{$Carousel_scale9left}" /> px</td> 245 </tr> 246 247 <tr> 248 <td> </td> 249 <td align="center">{'Carousel_top'|@translate}</label></td> 250 <td align="center">{'Carousel_bottom'|@translate}</td> 251 </tr> 252 <tr> 253 <td>{'Carousel_padding'|@translate}</td> 254 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingtop" value="{$Carousel_paddingtop}" /> px</td> 255 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingbottom" value="{$Carousel_paddingbottom}" /> px</td> 256 </tr> 257 <tr> 258 <td> </td> 259 <td align="center">{'Carousel_right'|@translate}</label></td> 260 <td align="center">{'Carousel_left'|@translate}</td> 261 </tr> 262 <tr> 263 <td> </td> 264 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingright" value="{$Carousel_paddingright}" /> px</td> 265 <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingleft" value="{$Carousel_paddingleft}" /> px</td> 266 </tr> 216 267 217 268 </table> -
extensions/Flash_Gallery/modules/Carousel/language/fr_FR/module.lang.php
r3531 r3663 84 84 $lang['Carousel_position2'] = 'Horizontale'; 85 85 86 $lang['Carousel_options_background'] = '<b><i>Paramètres du fond (bulles sur les images)</i></b>'; 87 $lang['Carousel_backgroundURL'] = 'URL de l\'image de fond (bulles sur les images)'; 88 $lang['Carousel_scale9'] = 'Echelle de l\'image de fond [0,1000]'; 89 $lang['Carousel_padding'] = 'Contour de l\'image de fond [-1000,1000]'; 86 90 87 91 ?> -
extensions/Flash_Gallery/modules/Carousel/xml/header.xml.php
r3531 r3663 48 48 49 49 <style>font-size: '.$module['ext_datas']['font_size'].'px; font-family: '.$module['ext_datas']['font_family'].', _serif; color: '.$module['ext_datas']['font_color'].';</style> 50 <position>'.$module['ext_datas']['position1'].' '.$module['ext_datas']['position2'].'</position> <!-- [above, below] [left,center,right]--> 51 </titles> 50 <position>'.$module['ext_datas']['position1'].' '.$module['ext_datas']['position2'].'</position> <!-- [above, below] [left,center,right]-->' 51 .(strlen($module['ext_datas']['backgroundURL']) ? 52 '<background>'.$module['ext_datas']['backgroundURL'].'</background> <!-- image url --> 53 <scale9>'.$module['ext_datas']['scale9top'].' ' 54 .$module['ext_datas']['scale9right'].' ' 55 .$module['ext_datas']['scale9bottom'].' ' 56 .$module['ext_datas']['scale9left'].'</scale9> <!-- [0,1000] pixels --> 57 <padding>'.$module['ext_datas']['paddingtop'].' ' 58 .$module['ext_datas']['paddingright'].' ' 59 .$module['ext_datas']['paddingbottom'].' ' 60 .$module['ext_datas']['paddingleft'].'</padding> <!-- [-1000,1000] pixels -->' 61 : '') 62 63 .'</titles> 52 64 </options> 53 65
Note: See TracChangeset
for help on using the changeset viewer.