3
1
Back

$img){ if ($img->getAttribute('title')) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } Gunnerkrigg and cleanup of alt-tag-only sites Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(

New Pull Request