3
1
Back

334 lines if ($bread) { $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // SBMC elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .= "
Alt: $alt_text
"; } } // Three Panel Soul elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } .

New Pull Request