Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/templates/conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ You'll notice in the "logout" link above that a special path is used: {path='LOG

There are a handful of variables that are always available to conditionals.

### `logged_in_avatar_filename`
### `logged_in_avatar_height`
### `logged_in_avatar_width`

{if logged_in_avatar_filename}<img src="/avatars/{logged_in_avatar_filename}" width="{logged_in_avatar_width}" height="{logged_in_avatar_height}" />{/if}

### `logged_in_email`

{if logged_in_email $= 'example.com'} One of us! One of us! {/if}
Expand Down
28 changes: 20 additions & 8 deletions docs/templates/globals/single-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,30 @@ The email address for the site, as specified in [Email Configuration](control-pa

[TOC=3]

### `{logged_in_avatar_filename}`

The filename of avatar image for the currently logged-in user.

### `{logged_in_avatar_height}`

Height of avatar image for the currently logged-in user.

### `{logged_in_avatar_width}`

Width of avatar image for the currently logged-in user.

### `{logged_in_email}`

The email address for the currently logged-in user.

### `{logged_in_ip_address}`

This variable will be substituted with the IP address of the currently logged in user.

### `{logged_in_member_id}`

The Member ID for the currently logged-in user.

### `{logged_in_primary_role_id}`

The Primary Role ID number for the currently logged-in user.
Expand All @@ -275,14 +295,6 @@ The short name of the Primary Role for the currently logged-in user.

The Primary Role description for the currently logged-in user.

### `{logged_in_ip_address}`

This variable will be substituted with the IP address of the currently logged in user.

### `{logged_in_member_id}`

The Member ID for the currently logged-in user.

### `{logged_in_private_messages}`

The number of unread private messages for the currently logged-in user.
Expand Down