mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 08:11:08 +00:00
39 lines
722 B
PHP
39 lines
722 B
PHP
<?php
|
|
|
|
/*
|
|
* @Author pickplugins
|
|
* Copyright: 2015 pickplugins
|
|
*/
|
|
|
|
if ( ! defined('ABSPATH')) exit; // if direct access
|
|
|
|
if($lazy_load_enable=='yes'){
|
|
|
|
if( $grid_type=='filterable'){
|
|
|
|
}
|
|
else{
|
|
|
|
$html.= '<div id="post-grid-lazy-'.$post_id.'" class="post-grid-lazy"><img src="'.$lazy_load_image_src.'"/></div>';
|
|
$html .= "<script>
|
|
|
|
jQuery( window ).load(function() {
|
|
|
|
jQuery('#post-grid-lazy-".$post_id."').fadeOut();
|
|
jQuery('#post-grid-".$post_id."').fadeIn();
|
|
});
|
|
|
|
</script>";
|
|
|
|
|
|
$html .= '<style type="text/css">#post-grid-'.$post_id.'{display: none;}</style>';
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |