3
1
Back

(Divot==2 } if ($alt_text && !$title_text){ $text_element = $doc->createElement("i", $alt_text); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // SBMC elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } 0 0 Y N 2 F N DEF R 0 0 Y N 1 F N.

New Pull Request