10 lines
332 B
PHP
Executable File
10 lines
332 B
PHP
Executable File
<?php
|
|
|
|
|
|
function smarty_modifier_lazyload($string){
|
|
$old = array('<img src=');#Ищем вредное ">",, "<"
|
|
$new = array('<img src="/api/img/gray/gif/gray.gif" data-original=');#Меняем на полезное">", , "<"
|
|
$res = str_replace($old, $new, $string);#Собсно сама замена =)
|
|
return $res;
|
|
}
|
|
?>
|