3
1
Back

= trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ } elseif ($alt_text == $title_text){ } elseif (strpos($title_text, $alt_text) !== False) { $alt_text = $entry->getAttribute('title'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } Gunnerkrigg and cleanup of alt-tag-only sites 2015-03-24 12:20:47 -07:00 55ee65a5e9 Go to file f6c7924538 Messing around with panel alignment before printing Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OR PERFORMANCE.

New Pull Request