Labels Milestones
BackLines class _comics extends Plugin { function about() { return $rel; } if (TimerKnob==1) intersection } // Dead Philosophers elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog entry $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags foreach($imgs as $img){ // Softer World (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } } if (TimerKnob==1) intersection } // Dilbert elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($rel[0]=='#' || $rel[0]=='?') { $path = ''; $orig_src = $entry->getAttribute('src'); $result_html .= "Alt: $alt_text"; Image of caxia score Image of caxia score 531ebcae92 Add html test version ec67859b1c2779470b99801ce69f8850b83fa3e1
New Pull Request