3
1
Back

Ideas" cannot be undone. Continue? $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Awkward Zombie // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Girls with Slingshots // CTRL+ALT+DEL Sillies 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); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //also get blog entry $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

New Pull Request