mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 13:16:45 +02:00
feat(shortcodes): add getProjectUrl
shortcode
This commit is contained in:
@@ -51,6 +51,16 @@ parsers()->shortcodes()->addHandler('getAbsoluteUrl', static function () {
|
||||
return getAbsoluteUrl();
|
||||
});
|
||||
|
||||
// Shortcode: getProjectUrl
|
||||
// Usage: (getProjectUrl)
|
||||
parsers()->shortcodes()->addHandler('getProjectUrl', static function () {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.url.enabled')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return getProjectUrl();
|
||||
});
|
||||
|
||||
// Shortcode: getUriString
|
||||
// Usage: (getUriString)
|
||||
parsers()->shortcodes()->addHandler('getUriString', static function () {
|
||||
|
Reference in New Issue
Block a user