3
1
Back

'//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // Scenes From A Multiverse (to get alt tags textified. } //Sites that provide images and just need alt tags in feedburner (if there are quotes) // Doghouse Diaries, which has broken alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $article['content'] = $img_tag . $article['content']; // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Three Panel Soul elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Pain Train alt tag, Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'png')]", $article); $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // Wondermark (alt tag already present) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { } /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ } function.

New Pull Request