3
1
Back

Tech // Joy of Tech Scenes From A Multiverse Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // Scenes From A Multiverse (to get alt tag) // Pain Train (to get alt tags if both exist elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Alt: " . $article['id']; } return $article; } $article = $this->alt_textify($article); if (ADD_IDS) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Various updates, additions /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array Panels/Font files/Quentincaps.ttf | Bin 0 -> 70804 bytes README.md | 12 delete mode.

New Pull Request