3
1
Back

"//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // SatW elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $doc = new DOMDocument(); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($title_text, $alt_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few comics; standardized appending alt/title text 2015-04-12 23:37:10 -07:00 Latest commits for branch pcb_finalization re-re-remove the mysterious extra trace Binary files /dev/null and b/Examples/EG_MANUAL.pdf differ Binary files a/3D Printing/AD&D 1e spell names in Filmoscope Quentin/MIRROR IMAGE.png create mode 100644 Images/precadsr-panel.png d="M 0,0 H 167 V 458 H 0 Z" /> d="M 0,0 5,-5 -12.5,0 5,5 Z" d="M 0,457.02 H 166 V 0.02 H 0 40 Y Y 1 F N DEF ao_symbols_Graphic GRAF 0 40 Y N 1 F N DEF SW_DP3T SW 0 0 Y N 1 F N DEF SW_SPST_Temperature SW 0 40 Y N 1 F N DEF Synth_power_2x5 J 0 40 Y Y 1 F N DEF R 0 0 Y N 2 F N DEF SW_DIP_x10 SW 0 40 Y N 1 F N DEF SW_Reed_SPDT SW 0 40 Y N 1 F N DEF power_GND #PWR 0 0 Y N 1 F N DEF MountingHole H 0 Z" /> d="M 0,458 H 166.141 V.

New Pull Request