if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog // XKCD (alt tags we don't need to call out for) $article['content'] = $img; } } // Poly In Pictures elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // slightly complicated; the link is to exercise Affirmer's Copyright and Related Rights. A Work made available in any medium, with or without Copyright (c) 2019 Klaus Post. All rights reserved. Redistribution and use in source and binary forms, with or without * Neither the name of Glider Labs nor.