3
1
Back

'uploads') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible if (preg_match("@.*(get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Drugs and Wires elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== 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); } // Cyanide & Happiness elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element .

New Pull Request