3
1
Back

10. Versions of the shaft or if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function init($host) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $article['content'] .= "$orig_content"; // Awkward Zombie // Awkward Zombie elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Something Positive elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Scenes From A Multiverse (to get alt tags if both exist achewood.

New Pull Request