Labels Milestones
BackUpdates, additions /* dirty absolute URL */ $abs = "$host$path/$rel"; function rel2abs($rel, $base) { if (!$alt_text || strpos($article['title'], $title_text) !== False) { $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= "
ID: " . $article['id']; } return $article; } if(ADD_IDS){ $article['content'] .= "
$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Chainsawsuit elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] .= "
Error processing via _comics plugin!" . $e->getMessage(); } } // Awkward Zombie elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Assorted updates elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if(preg_match("@.*(