Vulcan\UserDocs\Parsers\Shortcode
Synopsis
class Shortcode
{
- // methods
- public static void registerShortcodes()
- public static DBHTMLText|string code()
- public static DBHTMLText|string codetab()
- public static DBHTMLText|string logged_in()
- public static DBHTMLText|string not_logged_in()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Methods
public
- code()
- codetab()
- logged_in() — Only show contents of shortcode if the user is currently logged in
- not_logged_in() — Only show contents of shortcode if the user is not currently logged in
- registerShortcodes() — Dynamically register all methods in this class as a shortcode. The method name will become the shortcode, for example a function with the name of "code" will be registered as [code][/code]