3
1
Back

Blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'uploads') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $article['content'] = $matches[1]; } } foreach($imgs as $img){ foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] = $img_tag . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Regarding the board that will be thinner than this } //No matches //No matches if ($img->getAttribute('title')) { $article['content'] .= $aftercomic; $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { // Girls with Slingshots elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Something Positive elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and.

New Pull Request