From ccced7d8e87a705a2a2cae67c134a96839e49910 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Fri, 3 Feb 2023 13:58:56 +0200 Subject: [PATCH] Added global variables for logged in user's avatar; #2583 {logged_in_avatar_filename}, {logged_in_avatar_width}, {logged_in_avatar_height} --- docs/templates/conditionals.md | 6 +++++ docs/templates/globals/single-variables.md | 28 +++++++++++++++------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/docs/templates/conditionals.md b/docs/templates/conditionals.md index 526fc5f4d..23522a2ba 100755 --- a/docs/templates/conditionals.md +++ b/docs/templates/conditionals.md @@ -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}{/if} + ### `logged_in_email` {if logged_in_email $= 'example.com'} One of us! One of us! {/if} diff --git a/docs/templates/globals/single-variables.md b/docs/templates/globals/single-variables.md index 9cbb9f86c..345c0efe8 100755 --- a/docs/templates/globals/single-variables.md +++ b/docs/templates/globals/single-variables.md @@ -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. @@ -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.