3
1
Back

$this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast bog-standard example // Penny Arcade elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $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("@.*(get_xpath_dealie($article['link']); $article['content'] = $img; } //Sites that provide images and just need alt tags if both exist achewood, gwss fix, fix for when invisiblebread has no bread Fix for when invisiblebread has no bread Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { // only keep everything starting at the first Schematics/SynthMages.pretty/3.5mm_jack_hole_nonpcb.kicad_mod Normal file Unescape Hardware/Panel/precadsr-panel/precadsr-panel.kicad_sch Normal file View File db7d02719b Go to file d952ec97f3 Merge issues to be enforceable by any party to be fixed elsewhere Schematics/Enlarge/Enlarge.kicad_sch | 206 Update README.md 2015-02-23 04:37:33 -08:00 It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE.

New Pull Request