3
1
Back

$new_element->appendChild($para_element); if ($alt_text && $alt_text != $article['title']){ $result_html .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); //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'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Dead Philosophers elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags if both exist elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } achewood, gwss fix, fix for when invisible bread has no bread Pain Train alt tag, Alice Grove (get bigger image) // Alice Grove (get bigger image) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath .

New Pull Request