3
1
Back

If ($alt_text && !$title_text){ $text_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 $article; } if(ADD_IDS){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Dead Philosophers Dead Philosophers // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; } } // Questionable Content (cleanup) // Questionable Content (cleanup elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // only keep everything starting at the top if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function get_content($link) { /** * Use this.

New Pull Request