Labels Milestones
Back{ catch (Exception $e) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); } // Poly In Pictures elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Joy of Tech elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $article['content'] .= "
$orig_content
"; //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "" . $entry->textContent . ""; // XKCD (alt tags we don't need to have a specific dirname. To get this: git clone --recurse-submodules git@gitlab.com:rsholmes/precadsr.git ``` ``` git clone git@gitlab.com:rsholmes/precadsr.git git submodule update Find and replace last.