Labels Milestones
BackA DAC and just need alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (!$alt_text || strpos($article['title'], $alt_text) !== False) { $alt_text = $entry->getAttribute('alt'); $alt_text = $entry->getAttribute('title'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // replace the