3
1
Back

Define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { function api_version() { * Inserts text captions from any image with an alt or title tag. Function alt_textify($article, $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "
" . $msg . ""; } } // Hole for shaft center=true); // Flat for D-shaped hole } // Dilbert elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); // And get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $img; } Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users if (preg_match("@.*(

New Pull Request