Labels Milestones
Back94; // this is good practice, but ho-dang what a mess From 7022ad9ddb43c592e11528a5ae21edf443c088e4 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Am totally not using git correctly // Achewood (alt tag already present elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // And get blog entry $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "
" . $entry->textContent . "
"; $article['content'] .= "" . $entry->textContent . "
"; $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } } //Sites that provide images and just need alt tags textified. //Sites that provide images and just need alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = preg_replace("@