Showing 1 changed files with 15 additions and 0 deletions
+15
sources/news-slate.fr.php
... ...
@@ -86,6 +86,7 @@ foreach ($articles as $article ) {
86 86
     '<div class="article-thumb-wrapper">',
87 87
     '<div class="article-thumb">',
88 88
     '<figure class="preload article-image">',
89
+    '<div class="article-content row">',
89 90
     '<h3> </h3>',
90 91
     '<h1>',
91 92
     '</h1>',
... ...
@@ -101,6 +102,7 @@ foreach ($articles as $article ) {
101 102
     '<div>',
102 103
     '<div>',
103 104
     '<figure>',
105
+    '<div>',
104 106
     '',
105 107
     '<h4>',
106 108
     '</h4>',
... ...
@@ -140,6 +142,19 @@ foreach ($articles as $article ) {
140 142
   $temp = preg_replace($re, '<img width="100%" src=', $article_only); 
141 143
   $article_only = $temp;
142 144
 
145
+  $re='/<span class="sharing-btn__numbers">(.+)<\/span>/';
146
+  $temp = preg_replace($re, '', $article_only); 
147
+  $article_only = $temp;
148
+  
149
+  $re='/<span class="sharing-btn__bg"><\/span>/';
150
+  $temp = preg_replace($re, '', $article_only); 
151
+  $article_only = $temp;
152
+  
153
+  $re='/<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" height="(.+?)" src="https:\/\/www\.youtube\.com\/embed\/(.+?)" width="(.+?)"><\/iframe>/';
154
+  //$temp = preg_replace($re, '<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" width="100%" src="https:\/\/www\.youtube\.com\/embed\/\\2"><\/iframe>', $article_only); 
155
+  $temp = preg_replace($re, '<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" width="100%" src="https://www.youtube.com/embed/\\2"></iframe>', $article_only); 
156
+  $article_only = $temp;
157
+
143 158
   $SEARCH='<div class="sharing-tools sharing-tools--align-center">';
144 159
   $posend = strpos($article_only,$SEARCH);
145 160
   if($posend) {