3
1
Back

Get blog entry $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

"; } } } // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link.

New Pull Request