3
1
Back

Content (cleanup elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } 0 0 0 All-in-one module with lots of analog drum voices; based heavily.

New Pull Request