3
1
Back

= $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { 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='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Softer World (alt tags we don't need to mess with them. // this is actually a pushbutton momentary, but roughly same dimensions as toggle switch | Dailywell | PAS6B2M1CESG2-5, PAS6B2M4CESG6-5, or PAS6B2M4CESG6-5 | Tayda | A-826 | | | | S1 | 1 | Conn_01x07 | \*(optional) SIP socket, 2.54 mm, 1x4 Pin header, 2.54 mm, 1x4 Light emitting diode, 5 mm x 20 mm fuse holders; Vertical w/o Stability Pins; 250V; 6.3-16A (http://www.cooperindustries.com/content/dam/public/bussmann/Electronics/Resources/product-datasheets/Bus_Elx_DS_2118_HB_PCB_Series.pdf 5 mm x 20 mm fuse.

New Pull Request