3
1
Back

&& !$alt_text){ $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); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Girls with Slingshots // Girls with Slingshots // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Jesus & Mo elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) .

New Pull Request