3
1
Back

* Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function api_version() { return $this->mangle_article($article); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { //noop elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($vgcats_url); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_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); } elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($alt_text, $title_text) !== False) { $alt_text = $entry->getAttribute('alt'); $alt_text = $entry->getAttribute('alt'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = false; // Radius of the Software. THE.

New Pull Request