3
1
Back

It, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function about() { return $base.$rel; } extract(parse_url($base)); $path = ''; function get_xpath_dealie($link) { } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $matches[1]; } } if(ADD_IDS){ $article['content'] .= $aftercomic; } } // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Drugs and Wires elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } } foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Poly In Pictures elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Wondermark (alt tag already present foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } Some comics supported elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Berkeley Mews // elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath.

New Pull Request