3
1
Back

//doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "Bonus comic:" . $aftercomic . "

"; // only keep everything starting at the first // only keep everything starting at the first $xpath = new DOMXPath($doc); } function rel2abs($rel, $base) { Various updates, additions /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } // Awkward Zombie elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Jesus & Mo elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Pain Train alt tag, Alice Grove (get bigger image) // Alice Grove (get bigger image) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "
Alt: $alt_text
"; } } module arrow_indicator() { } module arrow_indicator() { .

New Pull Request