3
1
Back

Pokey_outey_value,0]; // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = NULL) { foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Awkward Zombie $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Camp Weedonwantcha // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath.

New Pull Request