3
1
Back

Legible Moar VCOs Tons of these, though we do know we need to call out for foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { if (strpos($article["content"], "bonus panel!") !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "Alt: " . $article['id']; } return $article; } function rel2abs($rel, $base) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { // Two Lumps elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { // Alice Grove (get bigger image elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog entry $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads.

New Pull Request