3
1
Back

Lines Clean up code formatting; added a few comics; standardized appending alt/title text elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); //also get blog entry $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $article['id']; } return $article; } function hook_render_article_cdm($article) { return array( $html, $content_type ); } module arrow_indicator() { } //Sites that provide images and just need alt tags in feedburner (if there are quotes) // Doghouse Diaries, which has broken alt tags in feedburner (if there are quotes elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] .= $aftercomic; } } // } // } elseif (strpos($title_text, $alt_text) !== False) { $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } } // Three Panel Soul $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); //also get.

New Pull Request