Showing 1 changed files with 7 additions and 0 deletions
+7
sources/news-slate.fr.php
... ...
@@ -67,9 +67,11 @@ foreach ($articles as $article ) {
67 67
 
68 68
   $orgStrings = array( ' href="/',
69 69
     ' src="/sites/',
70
+    '-src="/sites/',
70 71
     '<img src=');
71 72
   $newStrings = array( ' href="http://www.slate.fr/',
72 73
     ' src="http://www.slate.fr/sites/',
74
+    '-src="http://www.slate.fr/sites/',
73 75
     '<img width="100%" src=' );
74 76
   $article_only  = str_replace($orgStrings, $newStrings, $article_only);
75 77
   
... ...
@@ -122,6 +124,11 @@ foreach ($articles as $article ) {
122 124
   $temp = preg_replace($re, '<div>', $article_only); 
123 125
   $article_only = $temp;
124 126
 
127
+  $re='/<img class="image image--full lazyload" data-full-src=/';
128
+  $temp = preg_replace($re, '<img width="100%" src=', $article_only); 
129
+  $article_only = $temp;
130
+
131
+
125 132
   $SEARCH='<div class="article_insert notice">';
126 133
   $posend = strpos($article_only,$SEARCH);
127 134
   if($posend) {