Changeset 13923


Ignore:
Timestamp:
Apr 5, 2012, 7:08:25 PM (8 years ago)
Author:
flop25
Message:

features added :

  • preload images option
Location:
extensions/imgpreview
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • extensions/imgpreview/admin/admin.php

    r11948 r13923  
    2020        $newconf_plugin .= '#';
    2121        $newconf_plugin .= (isset($_POST['opacity'])) ? "true" : "false";
     22        $newconf_plugin .= '#';
     23        $newconf_plugin .= (isset($_POST['preloadImages'])) ? "true" : "false";
    2224        conf_update_param('imgpreview', pwg_db_real_escape_string($newconf_plugin));                           
    2325        array_push($page['infos'], l10n('imgp_conf_updated'));
     
    2830$val_title=(isset($conf_imgp[2]) and $conf_imgp[2]=="true") ? "checked" : "";
    2931$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" : "";
    3033$template->assign(
    3134        array(
     
    3437                'SHOW_TITTLE' => $val_title,
    3538                'OPACITY' => $val_opacity,
     39                'preloadImages' => $val_preloadImages,
    3640                'PWG_TOKEN' => get_pwg_token()
    3741        )
  • extensions/imgpreview/admin/admin.tpl

    r11948 r13923  
    1414    {'imgp_opacity'|@translate}<input type="checkbox" name="opacity" {$OPACITY}><br />
    1515    <br />
     16    {'imgp_preloadImages'|@translate}<input type="checkbox" name="preloadImages" {$preloadImages}><br />
     17    <br />
    1618    <input name="envoi_config" type="hidden" value="imgpreview" />
    1719    <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
  • extensions/imgpreview/css_js.tpl

    r13921 r13923  
    88                srcAttr: 'imgsrc',
    99                considerBorders:'true',
     10    {/literal}{if $imgpreview.preloadImages=="true"}preloadImages: true,{/if}{literal}
    1011    // When container is shown:
    1112    onShow: function(link){
  • extensions/imgpreview/js/imgpreview.js

    r12004 r13923  
    4545            // Where to retrieve the image from:
    4646            srcAttr: 'href',
    47                                                 considerBorders:'false'
     47            considerBorders:'false'
    4848           
    4949        }, userDefinedSettings),
  • extensions/imgpreview/language/cs_CZ/plugin.lang.php

    r11949 r13923  
    88$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    99$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     10$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1011$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1112<ul>
  • extensions/imgpreview/language/de_DE/plugin.lang.php

    r11949 r13923  
    99$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    1010$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     11$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1112$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1213<ul>
  • extensions/imgpreview/language/en_UK/plugin.lang.php

    r11949 r13923  
    44$lang['imgp_showtitle'] = 'Display the picture name';
    55$lang['imgp_opacity'] = 'Opacity on mouseover';
     6$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';
    67$lang['imgp_send'] = 'Submit !';
    78
  • extensions/imgpreview/language/es_ES/plugin.lang.php

    r11949 r13923  
    99$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    1010$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     11$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1112$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1213<ul>
  • extensions/imgpreview/language/fr_FR/plugin.lang.php

    r11948 r13923  
    44$lang['imgp_showtitle'] = 'Afficher le nom de l\'image';
    55$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)';
    67$lang['imgp_send'] = 'Envoyer !';
    78
  • extensions/imgpreview/language/hu_HU/plugin.lang.php

    r11950 r13923  
    88$lang['imgp_showtitle'] = 'Kép nevének megjelenítése';
    99$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 **/
    1011$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -a bővítmény készítője ajánlja :
    1112<ul>
  • extensions/imgpreview/language/it_IT/plugin.lang.php

    r12002 r13923  
    44$lang['imgp_showtitle'] = 'Visualizzare il nome dell\'immagine';
    55$lang['imgp_opacity'] = 'Effetto trasparente durante il sorvolo';
     6$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    67$lang['imgp_send'] = 'Invio!';
    78
  • extensions/imgpreview/language/lv_LV/plugin.lang.php

    r11949 r13923  
    22$lang['imgp_max_width'] = 'attēla maksimālais platums';
    33$lang['imgp_max_height'] = 'attēla maksimālais augstums';
     4$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    45$lang['imgp_send'] = 'Iesniegt !';
    56
  • extensions/imgpreview/language/nl_NL/plugin.lang.php

    r11949 r13923  
    1111$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    1212$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     13$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1314$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1415<ul>
  • extensions/imgpreview/language/pl_PL/plugin.lang.php

    r11949 r13923  
    99$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    1010$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     11$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1112$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1213<ul>
  • extensions/imgpreview/language/ru_RU/plugin.lang.php

    r11949 r13923  
    77$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    88$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     9$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    910$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1011<ul>
  • extensions/imgpreview/language/tr_TR/plugin.lang.php

    r11949 r13923  
    99$lang['imgp_showtitle'] = 'Display the picture name';/** TODO **/
    1010$lang['imgp_opacity'] = 'Opacity on mouseover';/** TODO **/
     11$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    1112$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> -the creator of this plugin- recommends :
    1213<ul>
  • extensions/imgpreview/language/uk_UA/plugin.lang.php

    r13205 r13923  
    77$lang['imgp_showtitle'] = 'Відображення назви світлини';/** TODO **/
    88$lang['imgp_opacity'] = 'Прозорість при наведенні курсору миші';/** TODO **/
     9$lang['imgp_preloadImages'] = 'Preload the pictures (not recommend on slow host)';/** TODO **/
    910$lang['imgp_howitworks'] = '<a href="http://www.planete-flop.fr">Flop25</a> - автор цього плаґіну, рекомендує :
    1011<ul>
  • extensions/imgpreview/main.inc.php

    r13921 r13923  
    3030
    3131        $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] );
    3333        $template->assign(array(
    3434                'imgpreview' => $imgpreview
  • extensions/imgpreview/maintain.inc.php

    r13919 r13923  
    77INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    88        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");';
    1010    pwg_query($q);
    1111
     
    3131                load_conf_from_db();
    3232
    33                 if (count(explode("#" , $conf['imgpreview']))!=4)
     33                if (count(explode("#" , $conf['imgpreview']))!=5)
    3434                {
    3535                        pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN (\'imgpreview\')');
Note: See TracChangeset for help on using the changeset viewer.