3
1
Back

To handle both title and alt tags if both exist elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } //noop } // XKCD (alt tags we don't need to call out for) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // And get blog //also get blog entry $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } elseif (strpos($alt_text, $title_text) !== False) { "spice_external_command": "spice \"%I\"", More tweaks after pro review Fireball/Fireball.kicad_pro | 6 Fireball/fp-info-cache | 36 ...gson_DG301_1x03_P5.00mm_Vertical.kicad_mod | 63 ...Block_dinkle_pluggable_2_P5.00mm.kicad_mod | 38 .../ao_tht.pretty/Wall_wart_A-4118.kicad_mod | 28.

New Pull Request