3
1
Back

Point at the first $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // PhD Unknown elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // PhD Unknown elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Scenes From A Multiverse (to get alt tags) } // Poorly Drawn Lines elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // Cyanide & Happiness elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] .= "
Alt: " . $article['id']; } return $article; } if(ADD_IDS){ $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // Softer World (alt tags we don't need to be fixed elsewhere.

New Pull Request