3
1
Back

Dilbert elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Wondermark (alt tag already present foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // SatW elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Three Panel Soul elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Poly In Pictures } // Two Lumps // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { //No matches //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) { if (!$alt_text || strpos($article['title'], $title_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text.

New Pull Request