3
1
Back

// Manic Pixie Nightmare Girls elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($vgcats_url); if (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { if ($title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { $alt_text = trim($entry->getAttribute('title')); $result_html .= "Alt: " . $img->getAttribute('title') . ""; } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .= "

" . $entry->textContent . "

"; } } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "" . $entry->textContent . "

"; } } //noop } // replace the (containing project wonderful) with nothing $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Two Lumps // Breaking Cat News $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $article['content'] .= "
$orig_content
"; } // Cyanide & Happiness // Cyanide .

New Pull Request