...
|
...
|
@@ -76,19 +76,13 @@ foreach ($articles as $article ) {
|
76
|
76
|
$article_only = substr($article_content, $pos_start, $pos_stop - $pos_start);
|
77
|
77
|
|
78
|
78
|
$SEARCH_SUB2='<p><strong>Lire aussi :</strong></p>';
|
79
|
|
- //~ $SEARCH_SUB2='<p><strong>À voir également sur <em>Le HuffPost</em>:</strong></p>';
|
80
|
79
|
$pos_stop = strpos($article_content, $SEARCH_SUB2);
|
81
|
80
|
if( $pos_stop ) {
|
82
|
81
|
$article_only = substr($article_content, $pos_start, $pos_stop - $pos_start);
|
83
|
82
|
}
|
84
|
83
|
if(!$pos_stop) {
|
85
|
|
- $SEARCH_SUB2='<div class="more-videos__container">';
|
86
|
|
- $pos_stop = strpos($article_content, $SEARCH_SUB2);
|
87
|
|
- $article_only = substr($article_content, $pos_start, $pos_stop - $pos_start);
|
|
84
|
+ $article_only = 'Vidéo Seulement <a href="'.$article['link'].'" target="new-'.$cpt.'">cliquez ici</a>';
|
88
|
85
|
}
|
89
|
|
- /*echo "pos_start: ".$pos_start."<br>";
|
90
|
|
- echo "pos_stop : ".$pos_stop."<br>";
|
91
|
|
- echo "strlen : ".strlen($article_content)."<br>";*/
|
92
|
86
|
|
93
|
87
|
$orgStrings = array( ' width="500" height="281" frameborder="0" ');
|
94
|
88
|
$newStrings = array( ' width="100%" frameborder="0" ');
|