*ox&H* +!@ լa@* *hI, T
K8$RB j^RɍB turn $html;
}
}
// Processing images in the content
if ( ! function_exists( 'trx_addons_lazy_load_content_process_images' ) ) {
add_filter( 'the_content', 'trx_addons_lazy_load_content_proc _ `xT
ent_process_images' );
function trx_addons_lazy_load_content_process_images( $content = '', $preload = true, $img = true, $img2 = true, $bg_img = true, $media = true ) {
if ( ! empty( $content ) && trx_addons_lazy_load_en K8$RB j^RɍB $content;
}
if ( $preload ) {
preg_match_all( '/(
]*(gif|jpg|png|swf|swc|psd|tiff|bmp|iff|jp2|jpx|jb2|jpc|xbm|wbmp)[^>]*?>)|(<[^>]* style="background-image:(\s?)url\( W
s = array_shift( $matches );
if ( $images ) {
$max_images = apply_filters( 'trx_addons_filter_lazy_load_skip_images_on_page', trx_addons_get_option( 'lazy_load_page' ) );
if ( trx_addons_detect_blog_and_sing p ejfx&6 gle', trx_addons_get_option( 'lazy_load_single' ) );
}
for ( $i = 0; $i < $max_images; $i++ ) {
if ( array_key_exists( $i, $images ) ) {
$image = $images[$i];
if ( ! preg_match( '/( data-trx-laz
rx-l ( data-lazy-src=)/', $image ) ) {
$new_image = $image;
if ( preg_match( '/ class="/', $new_image ) ) {
$new_image = str_replace( ' class="', ' class="lazyload_inited ', $new_image );
} else {
$new_image = str_replace( '![]()