Labels Milestones
Back_comics/init.php 264 lines define('ADD_IDS', True); define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; // Cyanide & Happiness elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } module audio_jack_3_5mm() { } // Softer World (alt tags we don't need to be.
New Pull Request