Labels Milestones
Back{ //also get the blog //also get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { // Wondermark (alt tag already present elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $article['content'] .= "$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $doc->saveXML(); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); // $xpath = new DOMDocument(); // replace the