3
1
Back

($alt_text && !$title_text){ Various updates, additions $alt_element = $doc->createElement("i", $title_text); } else if (bottom_element=="switch") { } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] .= "
ID: " . $article['id']; } return $article; } Some comics supported elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Cyanide & Happiness elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Wondermark (alt tag elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src.

New Pull Request