Labels Milestones
Back!$title_text){ } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function init($host) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // PhD Unknown elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] .= "
" . $entry->textContent . "
"; } } } //Sites that provide images and just need alt tags foreach($imgs as $img){ // Questionable Content (cleanup) elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // And get blog entry $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } // replace the