3
1
Back

$img){ $article['content'] .= $aftercomic; $article['content'] .= "Error processing via _comics plugin!" . $e->getMessage(); function mangle_article($article) { Added BCN, Something Positive if (!$alt_text){ Added BCN, Something Positive elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== 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[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] .= "
Alt: $alt_text
"; } } Clean up code formatting; added a few comics.

New Pull Request