3
1
Back

If (strpos($article["link"], "penny-arcade.com") !== 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 (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { $article['content'] .= "

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

"; } } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); Latest commits for branch sandwich Checkpoint before trying to implement chaining Add splits and labels to get what game it's about } // Scenes From A Multiverse (to get alt tags if both exist elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } Various updates, additions Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users $entries = $xpath->query($query); $result_html = ''; .

New Pull Request