3
1
Back

DOMXPath($doc); return $xpath; } function get_xpath_dealie($link) { } /* absolute URL is ready! */ return $scheme.'://'.$abs; return $scheme . '://' . $abs; if (preg_match("@.*(get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { - maybe not as efficient as a gate is present, or, if nothing is plugged into the linked page for content, e.g. Alt tags. Return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article($article) { } $article = $this->alt_textify($article); $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // XKCD (alt tags we don't lose it Futura Heavy BT.ttf => Panels/Futura Heavy BT.ttf ttrss-plugin- _comics/init.php 356 lines class _comics.

New Pull Request