Added The Trenches; yet more code style tweaking
This commit is contained in:
parent
6298fd8aa3
commit
51a08380a9
1 changed files with 33 additions and 25 deletions
10
init.php
10
init.php
|
|
@ -50,7 +50,15 @@ class gdorn_comics extends Plugin {
|
|||
if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
|
||||
$xpath = $this->get_xpath_dealie($article['link']);
|
||||
$article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article);
|
||||
} elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) {
|
||||
}
|
||||
// The Trenches
|
||||
elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE &&
|
||||
strpos($article["title"], "Comic:") !== FALSE) {
|
||||
$xpath = $this->get_xpath_dealie($article['link']);
|
||||
$article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article);
|
||||
}
|
||||
// Cyanide & Happiness
|
||||
elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) {
|
||||
$xpath = $this->get_xpath_dealie($article['link']);
|
||||
$article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue