3
1
Back

Poorly Drawn Lines elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Scenes From A Multiverse (to get alt tags) } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "
$orig_content
"; } // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Questionable Content (cleanup) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Scenes From A Multiverse (to get alt.

New Pull Request