Labels Milestones
Back* Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if ($doc === NULL) { if (anchor_hole=="right" || anchor_hole=="both") { if (preg_match("@.*?(
Alt: " . $img->getAttribute('title') . ""; } } // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (preg_match("@.*(