3
1
Back

$n > 0; $abs = "$host$path/$rel"; function rel2abs($rel, $base) { Various updates, additions elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Wondermark (alt tag already present foreach ($imgs as $img) { if (!$alt_text || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($title_text, $alt_text) !== false){ } elseif ($alt_text == $title_text){ } elseif (strpos($title_text, $alt_text) !== False) { if ($rel[0]=='#' || $rel[0]=='?') { return $article; } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article.

New Pull Request