3
1
Back

Users $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags) } // Breaking Cat News elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Girls with Slingshots elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] .= "
" . $msg . ""; } } } //Sites that provide images and just need alt tags in feedburner (if there are quotes) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // And get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Wondermark (alt tag already present foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Regarding the board mounted potentiometers, there are quotes) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] .= "" . $entry->textContent . "

"; } } //Sites that provide images.

New Pull Request