3
1
Back

& wires, pilotside 2018-11-20 08:29:13 -08:00 // Eat That Toast elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Camp Weedonwantcha elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img_tag . $article['content']; } Various updates, additions $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Drugs and Wires elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } Dead Philosophers elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // And get blog //also get blog entry $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites.

New Pull Request