3
1
Back

$alt_text) !== False) { if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Breaking Cat News elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $matches[1]; $img = $matches[1]; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // And get blog $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt.