Changeset 4358
- Timestamp:
- Nov 24, 2009, 1:56:45 PM (15 years ago)
- Location:
- extensions/piwishack
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/piwishack/include/class.inc.php
r4356 r4358 51 51 } 52 52 53 53 function get_thumb_post_on_a_website() 54 54 { 55 55 global $page, $lang_info; … … 86 86 { 87 87 $query = ' 88 SELECT *89 FROM '.IMAGES_TABLE.'90 WHERE id IN ('.implode(',', $page['items']).')91 ;';88 SELECT * 89 FROM '.IMAGES_TABLE.' 90 WHERE id IN ('.implode(',', $page['items']).') 91 ;'; 92 92 93 93 $result = pwg_query($query); … … 129 129 } 130 130 131 131 function get_thumb_post_on_a_forum() 132 132 { 133 133 global $page, $lang_info; … … 164 164 { 165 165 $query = ' 166 SELECT *167 FROM '.IMAGES_TABLE.'168 WHERE id IN ('.implode(',', $page['items']).')169 ;';166 SELECT * 167 FROM '.IMAGES_TABLE.' 168 WHERE id IN ('.implode(',', $page['items']).') 169 ;'; 170 170 171 171 $result = pwg_query($query); … … 207 207 } 208 208 209 209 function get_view_post_on_a_website() 210 210 { 211 211 global $page, $lang_info; … … 242 242 { 243 243 $query = ' 244 SELECT *245 FROM '.IMAGES_TABLE.'246 WHERE id IN ('.implode(',', $page['items']).')247 ;';244 SELECT * 245 FROM '.IMAGES_TABLE.' 246 WHERE id IN ('.implode(',', $page['items']).') 247 ;'; 248 248 249 249 $result = pwg_query($query); … … 285 285 } 286 286 287 287 function get_view_direct_link() 288 288 { 289 289 global $page, $lang_info; … … 320 320 { 321 321 $query = ' 322 SELECT *323 FROM '.IMAGES_TABLE.'324 WHERE id IN ('.implode(',', $page['items']).')325 ;';322 SELECT * 323 FROM '.IMAGES_TABLE.' 324 WHERE id IN ('.implode(',', $page['items']).') 325 ;'; 326 326 327 327 $result = pwg_query($query); … … 393 393 { 394 394 $query = ' 395 SELECT *396 FROM '.IMAGES_TABLE.'397 WHERE id IN ('.implode(',', $page['items']).')398 ;';395 SELECT * 396 FROM '.IMAGES_TABLE.' 397 WHERE id IN ('.implode(',', $page['items']).') 398 ;'; 399 399 400 400 $result = pwg_query($query); … … 411 411 { 412 412 include_once(PHPWG_ROOT_PATH.'/include/functions_picture.inc.php'); 413 $image_url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'; 413 414 set_make_full_url(); 414 415 … … 418 419 Affichage Personnalisé, 01. 419 420 EXEMPLE 420 421 <h6 style="text-align: center;"><a href="{$ROOT_WAY}{$current.U_IMG}" target="_blank"><img class="aligncenter" style="width: 100%; height: 100%;" src="{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}" alt="{$ALT_IMG}" /></a><em><a href="{$ROOT_WAY}{$U_UP}"; target="_blank">Galerie complète à visiter</a></em></h6> 421 <h6 style="text-align: center;"><a href="{$ROOT_WAY}{$current.U_IMG}" target="_blank"><img class="aligncenter" style="width: 100%; height: 100%;" src="{$ROOT_WAY}{$SRC_IMG|@replace:'./':''}" alt="{$ALT_IMG}" /></a><em><a href="{$ROOT_WAY}{$U_UP}"; target="_blank">Galerie complète à visiter</a></em></h6> 422 422 */ 423 423 424 // Première ligne 425 // Seconde ligne 426 // Arguments à transmettre 427 $S .= '<h6 style=\"text-align: center;\"><a href=\"'. 428 // Liens Piwigo vers la page de la vue normale 429 duplicate_picture_url( 424 $S .= '<h6 style=\"text-align: center;\"><a href=\"'. // Arguments à transmettre 425 duplicate_picture_url( // Lien Piwigo vers la page de la vue normale 430 426 array( 431 427 'image_id' => $row['id'], 432 428 'image_file' => $row['file'], 433 429 )). 434 // Arguments à transmettre 435 '\"><img src=\"'. 436 // Liens direct vers la vue normale 437 get_absolute_root_url().str_replace('./', '', get_image_url($row)). 438 // Arguments à transmettre 439 '\" alt=\"'. 440 // Noms du fichier 441 $row['file']. 442 // Arguments à transmettre 443 '\" /></a><em><a href=\"'; 444 // Catégorie de l'image 445 /* duplicate_picture_url( 446 array( 447 'section' => 'categories' 448 )); */ 449 // Fin de la seconde ligne 430 '\"><img src=\"'. // Arguments à transmettre 431 get_absolute_root_url().str_replace('./', '', get_image_url($row)). // Liens direct vers la vue normale 432 '\" alt=\"'. // Arguments à transmettre 433 $row['file']. // Noms du fichier 434 '\" /></a><em><a href=\"'. // Arguments à transmettre 435 $tpl_image = // Catégorie de l'image 436 array( 437 'U_URL' => $image_url,). 438 '\"; target=\"_blank\">Galerie complète à visiter</a></em></h6>'; // Arguments à transmettre 450 439 $S .= '\n\n'; 451 //;452 440 } 453 441 … … 493 481 { 494 482 $query = ' 495 SELECT *496 FROM '.IMAGES_TABLE.'497 WHERE id IN ('.implode(',', $page['items']).')498 ;';483 SELECT * 484 FROM '.IMAGES_TABLE.' 485 WHERE id IN ('.implode(',', $page['items']).') 486 ;'; 499 487 500 488 $result = pwg_query($query); … … 529 517 530 518 unset_make_full_url(); 519 531 520 } 532 521 -
extensions/piwishack/language/fr_FR/plugin.lang.php
r4354 r4358 19 19 // +-----------------------------------------------------------------------+ 20 20 21 $lang['open_window_piwishack'] = 'Ouvrir la fenêtrePiwiShack';22 $lang['close_window_piwishack'] = 'Fermer la fenêtrePiwiShack';23 $lang['Partage_me'] = 'Partager votre image.';24 $lang['text_intro_thumbnail'] = 'Affichage la miniature.';25 $lang['Post_on_a_website_d'] = 'Partager la miniature (cliquable) sur des sites. Balises HTML.';26 $lang['Post_on_a_forum'] = 'Partager la miniature (cliquable) sur des forums. Balises BBcode.';27 $lang['text_intro_normal_view'] = 'Affichage de la vue normale';28 $lang['Post_on_a_website_dd'] = 'Partager la vue normale (cliquable) sur des sites. Balises HTML.';29 $lang['Post_a_direct_link'] = 'Liens directe vers votre fichier.';30 $lang['Export_Perso_configurated'] = 'Partager votre image.';31 $lang['Partage_me'] = 'Partager votre photo selon des conditions pré-définies.';32 $lang['Perso_writer_01'] = 'Formatage personnalisé, champs#1';33 $lang['Perso_writer_02'] = 'Formatage personnalisé, champs#2';34 $lang['Perso_writer_03'] = 'Formatage personnalisé, champs#3';35 $lang['Perso_writer_04'] = 'Formatage personnalisé, champs#4';36 $lang['Perso_writer_05'] = 'Formatage personnalisé, champs#5';21 $lang['open_window_piwishack'] = 'Öffnen Sie das Fenster PiwiShack'; 22 $lang['close_window_piwishack'] = 'Fenster schließen PiwiShack'; 23 $lang['Partage_me'] = 'Sagen Sie Ihre Bild.'; 24 $lang['text_intro_thumbnail'] = 'Zeigt das Bild.'; 25 $lang['Post_on_a_website_d'] = 'Geben Sie das Vorschaubild (anklickbar) Seiten. HTML-Tags.'; 26 $lang['Post_on_a_forum'] = 'Geben Sie das Vorschaubild (anklickbar) am Forum. BBcode tags.'; 27 $lang['text_intro_normal_view'] = 'Anzeigen der normalen Ansicht'; 28 $lang['Post_on_a_website_dd'] = 'Senden der normalen Ansicht (anklickbar) Seiten. HTML-Tags.'; 29 $lang['Post_a_direct_link'] = 'direkte Links zu Ihrer Datei.'; 30 $lang['Export_Perso_configurated'] = 'Sagen Sie Ihre Bild.'; 31 $lang['Partage_me'] = 'Geben Sie Ihre Fotos nach vorher festgelegten Bedingungen.'; 32 $lang['Perso_writer_01'] = 'benutzerdefinierte Formatierungen, Feldern #1'; 33 $lang['Perso_writer_02'] = 'benutzerdefinierte Formatierungen, Feldern #2'; 34 $lang['Perso_writer_03'] = 'benutzerdefinierte Formatierungen, Feldern #3'; 35 $lang['Perso_writer_04'] = 'benutzerdefinierte Formatierungen, Feldern #4'; 36 $lang['Perso_writer_05'] = 'benutzerdefinierte Formatierungen, Feldern #5'; 37 37 ?> -
extensions/piwishack/template/controller.tpl
r4356 r4358 30 30 <div class="txt_share">{'Post_on_a_website_d'|@translate}</div> 31 31 <form> 32 <textarea name="thumb_Post_on_a_website" cols="140" rows=" 3" onclick="select()"></textarea>32 <textarea name="thumb_Post_on_a_website" cols="140" rows="2" onclick="select()"></textarea> 33 33 </form> 34 34 <br> 35 35 <div class="txt_share">{'Post_on_a_forum'|@translate}</div> 36 36 <form> 37 <textarea name="thumb_Post_on_a_forum" rows="1" cols="140" onclick="select()"></textarea>37 <textarea name="thumb_Post_on_a_forum" cols="140" rows="2" onclick="select()"></textarea> 38 38 </form> 39 39 </td> … … 47 47 <div class="txt_share">{'Post_on_a_website_dd'|@translate}</div> 48 48 <form> 49 <textarea name="view_Post_on_a_website" rows="1" cols="140" onclick="select()"></textarea>49 <textarea name="view_Post_on_a_website" cols="140" rows="2" onclick="select()"></textarea> 50 50 </form> 51 51 <br> 52 52 <div class="txt_share">{'Post_a_direct_link'|@translate}</div> 53 53 <form> 54 <textarea name="view_Direct_link" rows="1" cols="140" onclick="select()"></textarea>54 <textarea name="view_Direct_link" cols="140" rows="2" onclick="select()"></textarea> 55 55 </form> 56 56 </td> … … 64 64 <div class="txt_share">{'Perso_writer_01'|@translate}</div> 65 65 <form> 66 <textarea name="p_Perso_writer_01" rows="3" cols="140" onclick="select()"></textarea>66 <textarea name="p_Perso_writer_01" cols="140" rows="2" onclick="select()"></textarea> 67 67 </form> 68 68 <br> 69 69 <div class="txt_share">{'Perso_writer_02'|@translate}</div> 70 70 <form> 71 <textarea name="p_Perso_writer_02" rows="3" cols="140" onclick="select()"></textarea>71 <textarea name="p_Perso_writer_02" cols="140" rows="2" onclick="select()"></textarea> 72 72 </form> 73 73 </td>
Note: See TracChangeset
for help on using the changeset viewer.