Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save badabingbreda/6df5c5ec8066811e6a64fe5ff8e6a3e6 to your computer and use it in GitHub Desktop.
Save badabingbreda/6df5c5ec8066811e6a64fe5ff8e6a3e6 to your computer and use it in GitHub Desktop.
Toolbox Docs: Plugin Development Alias Module Example
{% set userid = __node__.starter_user|default( function( 'get_current_user_id' ) ) %}
{% set userdata = User( userid ) %}
<div class="uk-tile uk-tile-muted uk-padding-small uk-grid-small" uk-grid>
<div class="uk-width-1-1 uk-width-1-3@s">
<img data-src="{{userdata.avatar}}" uk-img>
</div>
<div class="uk-width-1-1 uk-width-2-3@s">
<h3>{{userdata.user_nicename}}</h3>
<p>{{userdata.description?'About the author:<br>'~userdata.description:'no description given.'}}</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment