3
1
Back

= 10.16; // If you don't need to call out for elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } if(ADD_IDS){ $article['content'] .= "
$orig_content
"; } // Joy of Tech elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $article['content'] .= "

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

"; // Wondermark (alt tag already present foreach($imgs as $img){ foreach ($imgs as $img) { if (two_holes_type == "center") { } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Poly In Pictures 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='img-comic-container']//img", $article); // $img_tag = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users else { // Dilbert elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Dilbert // Dilbert elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics')]", $article); } */ // Girls with Slingshots * Three Panel Soul elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Scenes From A Multiverse (to get.

New Pull Request