3
1
Back

0.4, More tweaks after pro review elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); Latest commits for file Datasheets/tl074.pdf Add tl074 datasheet/pinout Add tl074 datasheet/pinout Datasheets/tl074-pinout.jpeg | Bin 0 -> 163520 bytes Images/IMG_6777.JPG | Bin 0 -> 5309 bytes Creative Commons Legal Code.

New Pull Request