3
1
Back

!== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Pain Train (to get alt tag elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { //No matches //No matches if ($img->getAttribute('title')) { $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } // Least I Could Do (wtf image size?) // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $img_tag = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } Various updates, additions elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); function mangle_article($article) { // slider pot slit module make_step(bottom_element="switch") { // Three Panel Soul elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { //noop elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath.

New Pull Request