3
1
Back

Cats $vgcats_url = $vgcats_url_node->getAttribute('href'); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = preg_replace("@@", '', $article['content']); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } 0 0 Y N 1 F N DEF R_SLIDE_POT RV 0 40 Y N 1 F N DEF SW_Coded_SH-7050 SW 0 40 Y Y 1 F N DEF Synth_power_2x5_passive J 0 40 Y N 2 F N DEF SW_SPST_Lamp SW 0 0 Y N 1 F N DEF.

New Pull Request