UrlProvider: Add Links to specify rendertype in allpages / category view
此提交包含在:
@@ -53,6 +53,11 @@ std::string UrlProvider::allPages()
|
||||
return config->linkallpages;
|
||||
}
|
||||
|
||||
std::string UrlProvider::allPages(std::string rendertype)
|
||||
{
|
||||
return replaceSingleVar(config->linkallpagesrendertype, "type", rendertype);
|
||||
}
|
||||
|
||||
std::string UrlProvider::allCats()
|
||||
{
|
||||
return config->linkallcats;
|
||||
@@ -121,6 +126,16 @@ std::string UrlProvider::category(std::string catname)
|
||||
{
|
||||
return replaceSingleVar(config->linkcategory, "category", catname);
|
||||
}
|
||||
|
||||
std::string UrlProvider::category(std::string catname, std::string rendertype)
|
||||
{
|
||||
Varreplacer replace("{");
|
||||
replace.addKeyValue("category", catname);
|
||||
replace.addKeyValue("type", rendertype);
|
||||
return replace.parse(config->linkcategoryrendertype);
|
||||
}
|
||||
|
||||
|
||||
std::string UrlProvider::login(std::string page)
|
||||
{
|
||||
return replaceOnlyPage(config->loginurl, page);
|
||||
|
新增問題並參考
封鎖使用者