3
1
Back

Love and adore. Elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= "
Alt: $alt_text
"; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); function mangle_article($article) { // only keep everything.

New Pull Request