3
1
Back

$xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { // Girls with Slingshots // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tag) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } Clean up code formatting; added a few comics; standardized appending alt/title text //also get the blog $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = preg_replace('#(width|height)="150"#', .

New Pull Request