3
1
Back

89.75; // these are some setup variables... You probably won't need to call out for elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { } // Poly In Pictures elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(

New Pull Request