3
1
Back

'' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article) { function hook_render_article($article) { try { return $rel; } if (ADD_IDS) { * Use this if you need to call out for elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // SatW elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath.

New Pull Request