Image to Post - rss
This commit is contained in:
parent
1520e6cfe3
commit
badfaa6400
@ -5,7 +5,7 @@ class RSSImagesInfo extends ExtensionInfo
|
|||||||
public const KEY = "rss_images";
|
public const KEY = "rss_images";
|
||||||
|
|
||||||
public $key = self::KEY;
|
public $key = self::KEY;
|
||||||
public $name = "RSS for Images";
|
public $name = "RSS for Posts";
|
||||||
public $url = self::SHIMMIE_URL;
|
public $url = self::SHIMMIE_URL;
|
||||||
public $authors = self::SHISH_AUTHOR;
|
public $authors = self::SHISH_AUTHOR;
|
||||||
public $license = self::LICENSE_GPLV2;
|
public $license = self::LICENSE_GPLV2;
|
||||||
|
@ -11,10 +11,10 @@ class RSSImages extends Extension
|
|||||||
if (count($event->search_terms) > 0) {
|
if (count($event->search_terms) > 0) {
|
||||||
$search = url_escape(Tag::caret(Tag::implode($event->search_terms)));
|
$search = url_escape(Tag::caret(Tag::implode($event->search_terms)));
|
||||||
$page->add_html_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
$page->add_html_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
||||||
"title=\"$title - Images with tags: $search\" href=\"".make_link("rss/images/$search/1")."\" />");
|
"title=\"$title - Posts with tags: $search\" href=\"".make_link("rss/images/$search/1")."\" />");
|
||||||
} else {
|
} else {
|
||||||
$page->add_html_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
$page->add_html_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
||||||
"title=\"$title - Images\" href=\"".make_link("rss/images/1")."\" />");
|
"title=\"$title - Posts\" href=\"".make_link("rss/images/1")."\" />");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user