3
1
Back

Trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if ($doc === NULL) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Drugs and Wires elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { //also append the blarg post because that's small, interesting, } //and sometimes necessary for old fogeys.

New Pull Request