3
1
Back

"//div[@id='comic-img']//img", $article); // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog // XKCD (alt tags we don't need to call out for if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath .

New Pull Request