Labels Milestones
BackRLRLR-- <- it's a 5-roll, I think this is far simpler than this foreach ($imgs as $img) { $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] .= "
" . $msg . ""; } } $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ $article['content'] .= "
" . $entry->textContent . "
"; } } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // And get blog entry $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "$orig_content
"; //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $entries = $xpath->query($query); $result_html = ''; $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive if (!$alt_text){ Added BCN, Something Positive elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE. New Pull Request