1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Optional {NEWS_PAGINATION} shortcode added.

This commit is contained in:
Cameron
2021-06-14 14:42:17 -07:00
parent 4e75903292
commit a1e7d29661
2 changed files with 53 additions and 21 deletions

View File

@@ -1202,6 +1202,17 @@ class news_shortcodes extends e_shortcode
}
/** New in v2.3 {NEWS_PAGINATION} */
function sc_news_pagination($parm=null)
{
$params = e107::getRegistry('core/news/pagination');
return e107::getParser()->parseTemplate("{NEXTPREV=".$params."}");
}
/**
* @example {NEWS_NAV_NEXT}
* @return string|null