3
1
Back

= strip_tags($article['content']); $article['content'] = $img_tag . $article['content']; } Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Something Positive } if ($rel[0]=='#' || $rel[0]=='?') { $path = ''; foreach ($entries as $entry){ $article['content'] .= "
Error processing via _comics plugin!" . $e->getMessage(); } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { //no-op function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text && !$title_text){ } /* absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { /** * Use this if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { catch (Exception $e) { $article['content'] .

New Pull Request