3
1
Back

Keep it simple. Follow one pattern. Class _comics extends Plugin { catch (Exception $e) { $article['content'] = $img; } } } // Scenes From A Multiverse (to get alt tags) } // Wondermark (alt tag already present elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Something Positive // Something Positive if (!$alt_text){ Added BCN, Something Positive } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Poly In Pictures elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // Berkeley Mews // elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img.

New Pull Request