3
1
Back

SMD From 054c37512afd84e9f4dd43316902a76ae73fd917 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix for when invisiblebread has no bread elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Chainsawsuit // Poorly Drawn Lines // Berkeley Mews // elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Timothy Winchester (People I Know elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Invisible Bread (make the bread visible) $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Dilbert elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } main synth_tools/PSU/psu.diy 1077 lines From 3c7abf219614572e87f96c0e195a9732c02e7e99 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Update current state of project. Could make the hole in the Work.

New Pull Request