3
1
Back

"//div[@id='comic-1']//img", $article); // Pain Train (to get alt tag) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // h[p] //module title(string, size=9, halign="center", font="Futura XBlk BT:style=Extra Black"; // waves out } // Joy of Tech $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // SatW elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // only keep everything starting at the first if(preg_match("@.*(saveXML(); } // Three Panel Soul // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Poly In Pictures // Poly In Pictures // Poly In Pictures elseif.

New Pull Request