3
1
Back

// there's both alt and title texts, they're both different, use both. } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $alt_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Drugs and Wires elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) .

New Pull Request