Changeset 13923 for extensions/imgpreview
- Timestamp:
- Apr 5, 2012, 7:08:25 PM (12 years ago)
- Location:
- extensions/imgpreview
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/imgpreview/admin/admin.php
r11948 r13923 20 20 $newconf_plugin .= '#'; 21 21 $newconf_plugin .= (isset($_POST['opacity'])) ? "true" : "false"; 22 $newconf_plugin .= '#'; 23 $newconf_plugin .= (isset($_POST['preloadImages'])) ? "true" : "false"; 22 24 conf_update_param('imgpreview', pwg_db_real_escape_string($newconf_plugin)); 23 25 array_push($page['infos'], l10n('imgp_conf_updated')); … … 28 30 $val_title=(isset($conf_imgp[2]) and $conf_imgp[2]=="true") ? "checked" : ""; 29 31 $val_opacity=(isset($conf_imgp[3]) and $conf_imgp[3]=="true") ? "checked" : ""; 32 $val_preloadImages=(isset($conf_imgp[4]) and $conf_imgp[4]=="true") ? "checked" : ""; 30 33 $template->assign( 31 34 array( … … 34 37 'SHOW_TITTLE' => $val_title, 35 38 'OPACITY' => $val_opacity, 39 'preloadImages' => $val_preloadImages, 36 40 'PWG_TOKEN' => get_pwg_token() 37 41 ) -
extensions/imgpreview/admin/admin.tpl
r11948 r13923 14 14 {'imgp_opacity'|@translate}<input type="checkbox" name="opacity" {$OPACITY}><br /> 15 15 <br /> 16 {'imgp_preloadImages'|@translate}<input type="checkbox" name="preloadImages" {$preloadImages}><br /> 17 <br /> 16 18 <input name="envoi_config" type="hidden" value="imgpreview" /> 17 19 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> -
extensions/imgpreview/css_js.tpl
r13921 r13923 8 8 srcAttr: 'imgsrc', 9 9 considerBorders:'true', 10 {/literal}{if $imgpreview.preloadImages=="true"}preloadImages: true,{/if}{literal} 10 11 // When container is shown: 11 12 onShow: function(link){ -
extensions/imgpreview/js/imgpreview.js
r12004 r13923 45 45 // Where to retrieve the image from: 46 46 srcAttr: 'href', 47 47 considerBorders:'false' 48 48 49 49 }, userDefinedSettings), -
extensions/imgpreview/language/cs_CZ/plugin.lang.php
r11949 r13923 8 8 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 9 9 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 10 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 10 11 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 11 12 <ul> -
extensions/imgpreview/language/de_DE/plugin.lang.php
r11949 r13923 9 9 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 10 10 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 11 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 11 12 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 12 13 <ul> -
extensions/imgpreview/language/en_UK/plugin.lang.php
r11949 r13923 4 4 $lang['imgp_showtitle'] = 'Display the picture name'; 5 5 $lang['imgp_opacity'] = 'Opacity on mouseover'; 6 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)'; 6 7 $lang['imgp_send'] = 'Submit !'; 7 8 -
extensions/imgpreview/language/es_ES/plugin.lang.php
r11949 r13923 9 9 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 10 10 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 11 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 11 12 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 12 13 <ul> -
extensions/imgpreview/language/fr_FR/plugin.lang.php
r11948 r13923 4 4 $lang['imgp_showtitle'] = 'Afficher le nom de l\'image'; 5 5 $lang['imgp_opacity'] = 'Faire un effet de transparence au survol'; 6 $lang['imgp_preloadImages'] = 'Pré-chargez les images (non recommendé pour les hébergeurs lents)'; 6 7 $lang['imgp_send'] = 'Envoyer !'; 7 8 -
extensions/imgpreview/language/hu_HU/plugin.lang.php
r11950 r13923 8 8 $lang['imgp_showtitle'] = 'Kép nevének megjelenítése'; 9 9 $lang['imgp_opacity'] = 'Áttetszőség ha a kurzor a bélyegképen van'; 10 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 10 11 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -a bővítmény készítője ajánlja : 11 12 <ul> -
extensions/imgpreview/language/it_IT/plugin.lang.php
r12002 r13923 4 4 $lang['imgp_showtitle'] = 'Visualizzare il nome dell\'immagine'; 5 5 $lang['imgp_opacity'] = 'Effetto trasparente durante il sorvolo'; 6 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 6 7 $lang['imgp_send'] = 'Invio!'; 7 8 -
extensions/imgpreview/language/lv_LV/plugin.lang.php
r11949 r13923 2 2 $lang['imgp_max_width'] = 'attēla maksimālais platums'; 3 3 $lang['imgp_max_height'] = 'attēla maksimālais augstums'; 4 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 4 5 $lang['imgp_send'] = 'Iesniegt !'; 5 6 -
extensions/imgpreview/language/nl_NL/plugin.lang.php
r11949 r13923 11 11 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 12 12 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 13 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 13 14 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 14 15 <ul> -
extensions/imgpreview/language/pl_PL/plugin.lang.php
r11949 r13923 9 9 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 10 10 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 11 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 11 12 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 12 13 <ul> -
extensions/imgpreview/language/ru_RU/plugin.lang.php
r11949 r13923 7 7 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 8 8 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 9 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 9 10 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 10 11 <ul> -
extensions/imgpreview/language/tr_TR/plugin.lang.php
r11949 r13923 9 9 $lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/ 10 10 $lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/ 11 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 11 12 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends : 12 13 <ul> -
extensions/imgpreview/language/uk_UA/plugin.lang.php
r13205 r13923 7 7 $lang['imgp_showtitle'] = 'Відображення назви світлини';/** TODO **/ 8 8 $lang['imgp_opacity'] = 'Прозорість при наведенні курсору миші';/** TODO **/ 9 $lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/ 9 10 $lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> - автор цього плаґіну, рекомендує : 10 11 <ul> -
extensions/imgpreview/main.inc.php
r13921 r13923 30 30 31 31 $conf_imgp = explode("#" , $conf['imgpreview']); 32 $imgpreview=array( 'width' => $conf_imgp[0], 'height' => $conf_imgp[1], 'title' => $conf_imgp[2], 'opacity' => $conf_imgp[3] );32 $imgpreview=array( 'width' => $conf_imgp[0], 'height' => $conf_imgp[1], 'title' => $conf_imgp[2], 'opacity' => $conf_imgp[3] , 'preloadImages' => $conf_imgp[4] ); 33 33 $template->assign(array( 34 34 'imgpreview' => $imgpreview -
extensions/imgpreview/maintain.inc.php
r13919 r13923 7 7 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 8 8 VALUES 9 ("imgpreview" , "400#600#true#true " , "max-width#max-height#title#opacity");';9 ("imgpreview" , "400#600#true#true#false" , "max-width#max-height#title#opacity#preloadImages");'; 10 10 pwg_query($q); 11 11 … … 31 31 load_conf_from_db(); 32 32 33 if (count(explode("#" , $conf['imgpreview']))!= 4)33 if (count(explode("#" , $conf['imgpreview']))!=5) 34 34 { 35 35 pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN (\'imgpreview\')');
Note: See TracChangeset
for help on using the changeset viewer.