3
1
Back

$img){ if ($img->getAttribute('title')) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } } // Timothy Winchester (People I Know foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] .= "

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

"; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Three Panel Soul * Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { .

New Pull Request