3
1
Back

$matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { if (anchor_hole=="right" || anchor_hole=="both") { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] = $matches[1]; $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $img; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } return $result_html; } function get_img_tags($xpath, $query, $article.

New Pull Request