diff options
| author | 2013-06-15 19:42:02 +0200 | |
|---|---|---|
| committer | 2013-06-15 19:42:02 +0200 | |
| commit | d3078fb726639eed478a2a449b0a9043af04a756 (patch) | |
| tree | d0a848273d0f2ba7ec5908341539ffef055f8368 /lib | |
| parent | 4bda1d75aec180ee3845f74991f99a99ef2ae062 (diff) | |
Mise en place de la structure pour les différentes vues
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_text.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/lib_text.php b/lib/lib_text.php index 6e8f7b2bf..9792e191e 100644 --- a/lib/lib_text.php +++ b/lib/lib_text.php @@ -86,3 +86,11 @@ function parse_tags ($desc) { return $desc_parse; } + +function lazyimg($content) { + return preg_replace( + '/<img([^<]+)src=([\'"])([^"\']*)([\'"])([^<]*)>/i', + '<img$1src="' . Url::display('/data/grey.gif') . '" data-original="$3"$5>', + $content + ); +}
\ No newline at end of file |
