...
|
...
|
@@ -69,7 +69,17 @@ foreach ($articles as $article ) {
|
69
|
69
|
$pos_start += strlen($SEARCH_SUB1);
|
70
|
70
|
$SEARCH_SUB2='<a class="follow-us__correction"';
|
71
|
71
|
$pos_stop = strpos($article_content, $SEARCH_SUB2);
|
|
72
|
+ //~ echo "pos_start: ".$pos_start."<br>";
|
|
73
|
+ //~ echo "pos_stop : ".$pos_stop."<br>";
|
|
74
|
+ //~ echo "strlen : ".strlen($article_content)."<br>";
|
72
|
75
|
$article_only = substr($article_content, $pos_start, $pos_stop - $pos_start);
|
|
76
|
+
|
|
77
|
+ $SEARCH_SUB2='<p><strong>Lire aussi :</strong></p>';
|
|
78
|
+ //~ $SEARCH_SUB2='<p><strong>À voir également sur <em>Le HuffPost</em>:</strong></p>';
|
|
79
|
+ $pos_stop = strpos($article_content, $SEARCH_SUB2);
|
|
80
|
+ if( $pos_stop ) {
|
|
81
|
+ $article_only = substr($article_content, $pos_start, $pos_stop - $pos_start);
|
|
82
|
+ }
|
73
|
83
|
|
74
|
84
|
$orgStrings = array( ' width="500" height="281" frameborder="0" ');
|
75
|
85
|
$newStrings = array( ' width="100%" frameborder="0" ');
|