3
1
Back

Different, use both. $alt_element = $doc->createElement("i", $title_text); } else if (bottom_element=="switch") { } function mangle_article($article) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Scenes From A Multiverse (to get alt tags in feedburner (if there are quotes) // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } Assorted updates elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } elseif (strpos($title_text, $alt_text) !== False) { if ($img->getAttribute('title')) { $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); // Awkward Zombie elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE.

New Pull Request