channel->title; $channel['link'] = $xml->channel->link; $channel['description'] = $xml->channel->description; $channel['pubDate'] = $xml->channel->pubDate; $channel['timestamp'] = strtotime($xml->channel->pubDate); echo '
Article réservé aux abonnés
'; $pos_start=strpos($article_content, $SEARCH_SUB); if(!$pos_start) { DEBUG("article($cpt) : Non Abonne 2"); } else { DEBUG("article($cpt) : Abonne 2"); } } if($pos_start) { try { $figures = $doc->getElementsByTagName('figure'); if( NULL === $figures[0] ) { DEBUG("article($cpt) : No Image"); } else { $figure = DOMinnerHTML($figures[0]); $re = '/
Les plus lus<\/p>/'; $temp = preg_replace($re, '', $article_only); $article_only = $temp; $re = '/