mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
增加ATOM订阅
This commit is contained in:
@@ -22,6 +22,10 @@ class Site
|
||||
{
|
||||
return get_system_config('site_name');
|
||||
}
|
||||
public static function author()
|
||||
{
|
||||
return get_system_config('default_author');
|
||||
}
|
||||
|
||||
public static function indexUrl()
|
||||
{
|
||||
@@ -42,4 +46,21 @@ class Site
|
||||
{
|
||||
return get_system_config('site_keywords');
|
||||
}
|
||||
|
||||
public static function sitemapUrl()
|
||||
{
|
||||
return Request::scheme() . '://' . get_system_config('main_domain', Request::host()) . '/sitemap.xml';
|
||||
}
|
||||
public static function rss1Url()
|
||||
{
|
||||
return Request::scheme() . '://' . get_system_config('main_domain', Request::host()) . '/rss1.xml';
|
||||
}
|
||||
public static function rss2Url()
|
||||
{
|
||||
return Request::scheme() . '://' . get_system_config('main_domain', Request::host()) . '/rss2.xml';
|
||||
}
|
||||
public static function atomUrl()
|
||||
{
|
||||
return Request::scheme() . '://' . get_system_config('main_domain', Request::host()) . '/atom.xml';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user