3
1
Back

| 19 }, From 7022ad9ddb43c592e11528a5ae21edf443c088e4 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Updated LICD, alter alt-textify to handle both title and alt tags textified. $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $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); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content'] = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Poly In Pictures elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; Latest commits for file Schematics/SynthMages.pretty/P160_pot_hole_nonpcb.kicad_mod ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function about() { return $this->mangle_article($article); } function api_version() { return $rel; } if (ADD_IDS) { $imgs = $xpath->query('//img'); $alt_text = trim($entry->getAttribute('title')); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // $article['content'] = $img; } $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) .

New Pull Request