3
1
Back

News elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // Camp Weedonwantcha foreach ($entries as $entry){ $article['content'] .= "" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { // Dilbert // Dilbert elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Doghouse Diaries, which has broken alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } } Clean up code formatting; added.

New Pull Request