3
1
Back

If (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); // Questionable Content (cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; } } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $vgcats_url_node = $url_xpath->query("//a[contains(@href, 'strip_id')]")->item(0); } $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article.

New Pull Request