Labels Milestones
BackLayout ttrss-plugin- _comics/init.php 483 lines From 84596d5a5ed3dcb31f8d011b430a2595f00d25a1 Mon Sep 17 00:00:00 2001 Subject: [PATCH] More repo cleanup, adopt github .gitignore file .gitattributes From 9f0e0a275be19d54acb7a510415f15c04cb49983 Mon Sep 17 00:00:00 2001 ttrss-plugin- _comics/init.php 407 lines elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { function about() { return 2; } } return $article; } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Wondermark (alt tag already present) // Wondermark (alt tag elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { if (!$alt_text || strpos($article['title'], $alt_text) !== False) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; } } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog entry $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "Alt: $alt_text"; } } Clean up code formatting; added a few comics; standardized appending alt/title text 2015-04-12 23:37:10 -07:00 Latest commits for file Images/retrigger.png Latest commits for branch fewer_panel_wires Move LED resistors next to transistors to save on panel wires 2eebdf7ecf Add four more switches/buttons, move LED drivers onto PCB Add a front-panel PCB. New Pull Request