3
1
Back

They're both different, use both. } elseif (strpos($title_text, $alt_text) !== false){ } elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $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); } elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); // Pain Train (to get alt tags) // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { union() { difference(){ color([.1,.1,.1]) panel(width); scale([.38,.38,-.005]) surface("FireballSpellVertSmaller.png", center=true, invert=false); } module smoothing() { // only keep everything.

New Pull Request