From 5dfe281d60e21fd59bfa780fad0aa177a8feaf14 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 15 Nov 2013 14:36:34 +0100 Subject: Supprime le fichier lib_text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seule la fonction lazyimg était utilisée, je l'ai déplacée dans lib_rss --- lib/lib_rss.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 7f22c8244..a27994e94 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -206,3 +206,16 @@ function dowload_favicon ($website, $id) { return $favicon_url; } + +/** + * Add support of image lazy loading + * Move content from src attribute to data-original + * @param content is the text we want to parse + */ +function lazyimg($content) { + return preg_replace( + '//i', + '', + $content + ); +} -- cgit v1.2.3