For the complete documentation index, see llms.txt. This page is also available as Markdown.

theme_shortcodes.php

Custom shortcodes live in theme_shortcodes.php (class extending e_shortcode). They are available in all theme layouts and templates parsed by the full parser.

Implemented

Shortcode
Purpose
Status

{ADVANCED_LOGIN_LINK}

styled link to the login page

done

{ADVANCED_SIGNUP_LINK}

styled link to the signup page

done

{ADVANCED_FPW_BUTTON}

styled forgot-password button

done

{BODY_CLASS}

per-layout <body> classes

done

{PAGE_CLASS}

per-layout classes for the .page wrapper in theme.html

done

{HEADER}

loads headers/header_<variant>.html partial

done

{FOOTER}

loads footers/footer_<variant>.html partial

done

Why the three ADVANCED_* shortcodes exist instead of the core equivalents (link-in-sentence LANs, user_reg visibility, inline SVG in the submit button) is documented in Why the theme defines custom auth shortcodes.

Planned

The list below is a snapshot — more shortcodes will be added as the home and memberdesk layouts develop.

  • {THEME_AUTH_BGIMAGE} — auth splash image from theme preferences (layout-side counterpart to the PHP pref read used in the fpw template).

  • Content helpers for the home layout sections.

  • Memberdesk helpers for the custom plugins in preparation.

Last updated