3
1
Back

$article; } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Two Lumps // Two Lumps elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // } // Three Panel Soul elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } } if(ADD_IDS){ $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2.

New Pull Request