3
1
Back

{ $new_element->appendChild($para_element); if ($alt_text == $title_text){ } elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present foreach($imgs as $img){ foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = $matches[1]; $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { // Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Three Panel Soul elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // slightly.

New Pull Request