3
1
Back

Can even use a mix of the Stick elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // SatW elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // Girls with Slingshots elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Scenes From A Multiverse (to get alt tags if (preg_match("@.*()@", $article['content'], $matches)) { if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function get_xpath_dealie($link) { $abs = "$host$path/$rel"; /* replace '//' or.

New Pull Request