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

features added :

  • preload images option
File:
1 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        )
Note: See TracChangeset for help on using the changeset viewer.