3
1
Back

&& // Cyanide & Happiness elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Three Panel Soul elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches //No matches if ($img->getAttribute('title')) { // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $img_tag . $article['content']; } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { // Drugs and Wires.

New Pull Request