3
1
Back

[h_margin + working_width/4, row_1, 0]; fm_in = [h_margin+working_width/8, row_3, 0]; manual_2 = [left_col, row_2, 0]; } // SBMC elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $article['content'] .= "

" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } Added The Trenches; yet more code style tweaking Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Achewood (alt tag) elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // } // Invisible Bread (make the bread visible if (preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } // Wondermark (alt tag already present elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog // XKCD (alt tags we.

New Pull Request