3
1
Back

Amplifier to handle both title and alt tags in feedburner (if there are quotes) elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } return $article; } if(ADD_IDS){ $article['content'] .= "
Alt: " . $article['id']; } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function.

New Pull Request