3
1
Back

7022ad9ddb43c592e11528a5ae21edf443c088e4 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add splits and labels to get what game it's about $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Dilbert // Dilbert elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Three Panel Soul * Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = new DOMXPath($doc); return $xpath; } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL */ /* replace '//' or.

New Pull Request