Settings', ); return array_merge( $links, $mylinks ); } /** * Function Name: lz_install * Description: Save data to database at the time of plugin install. * */ register_activation_hook(__FILE__, 'lz_install'); function lz_install() { $ifd_pixel = (get_option('ifd_pixel') != '') ? get_option('ifd_pixel') : '0'; update_option('ifd_pixel', $ifd_pixel); $ifd_duration = (get_option('ifd_duration') != '') ? get_option('ifd_duration') : '1000'; update_option('ifd_duration', $ifd_duration); $adlzylad_mobile = (get_option('cb_adlzylad_mobile') != '') ? get_option('cb_adlzylad_mobile') : "on"; update_option('cb_adlzylad_mobile', $adlzylad_mobile); } /** * Function Name: LZ_option_link * Description: Add a submenu under Settings tab. * */ function LZ_option_link() { add_options_page('Advanced lazy load', 'Advanced lazy load', 'manage_options', 'Advanced-lazy-load', 'Advancedlazyload_form'); } //the 'Advanced-lazy-load_form' content function ifmobileison(){ if(get_option('cb_adlzylad_mobile')=="on"){ echo "checked"; } } function Advancedlazyload_form() { /** * Check whether the form submitted or not. */ if (isset($_POST['option-save'])) { echo "
Options saved!
"; $ddsadsa = trim($_POST['ifd_pixel']); update_option('ifd_pixel', $ddsadsa); $duration = trim($_POST['ifd_duration']); update_option('ifd_duration', $duration); $skipclass = trim($_POST['ifd_adlaylad_skipclass']); update_option('ifd_adlaylad_skipclass', $skipclass); $skipURL = trim($_POST['ta_adlaylad_skipurl']); update_option('ta_adlaylad_skipurl', $skipURL); $All_mobile = trim($_POST['cb_adlzylad_mobile']); update_option('cb_adlzylad_mobile', $All_mobile); } ?>Version: 1.6.0
By using ths plugin for wordpress, it will reduce the loading time while opening your wordpress website
This is initial edition of Advanced lazy load, many features will be added in future versions, compatible with all current browsers.
Important - 1.6.0 - Recompiled the core function. In case you are experiencing any issues, you can roll back to stable version 1.5.1
Like it?
Please help to Rate a Five. Thank you!