3
1
Back

Function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $article['content'] = $img_tag . $article['content']; $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Two Lumps // Breaking Cat News // Something Positive // Timothy Winchester (People I Know elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img.

New Pull Request