3
1
Back

0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function rel2abs($rel, $base) { function api_version() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } // Two Lumps elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($alt_text, $title_text) !== False) { $alt_text = trim($img->getAttribute('alt')); if (!$alt_text && !$title_text) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ Various updates, additions elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] .

New Pull Request