3
1
Back

= 6.3; // the first if(preg_match("@.*(get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Pain Train alt tag, Alice Grove (get bigger image elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; // Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Three Panel Soul elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech // Joy of Tech } // SBMC elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, &$article, $base_url=NULL) .

New Pull Request