3
1
Back

Jesus & Mo elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // Cyanide & Happiness elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $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); } else { return $this->mangle_article($article); } function rel2abs($rel, $base if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); //and sometimes necessary for voltage.

New Pull Request