{var $userID = $_modx->getPlaceholder('ProfileUserID')}
{var $isOwner = $_modx->getPlaceholder('ProfileIsOwner')}
{var $username = $_modx->getPlaceholder('ProfileUsername')}
{var $articleCount = $_modx->getPlaceholder('ProfileArticleCount')}
{var $totalContentCount = $_modx->getPlaceholder('ProfileTotalContentCount') ?: 0}
{var $hasArticles = $totalContentCount > 0}
{var $profileTabs = '!GetProfileTabs' | snippet : ['userId' => $userID]}
{'profile.breadcrumb' | chunk}
{'profile.header' | chunk : ['userID' => $userID]}
{* Use pre-loaded bookmarks data from header.meta.tpl *} {var $bookmarksData = $_modx->getPlaceholder('profileBookmarksData')} {* Tab Navigation *} {if $profileTabs && count($profileTabs) > 0} {var $tabs = $profileTabs} {include 'file:profile/profile.tabs.tpl'} {/if} {if $isOwner && $hasArticles} {set $statsJson = '!getUserResourceStats' | snippet : ['userId' => $userID]} {set $stats = $statsJson | fromJSON} {set $pageviews = $stats['pageviews'] ?: []} {if $pageviews && $pageviews['months'] && count($pageviews['months']) > 0}
{foreach $pageviews['months'] as $month}
{/foreach}
{/if}
{/if}
{if $hasArticles}
{else}
{if $isOwner}
{* Owner viewing their own empty profile - show welcome section *}
{'welcome.message' | chunk}
{else}
{* Visitor viewing someone else's empty profile *}
{/if}
{/if}
{if $hasArticles}
{/if}
{* Use pre-loaded bookmarks data from header.meta.tpl *} {var $bookmarksData = $_modx->getPlaceholder('profileBookmarksData')} {* Tab Navigation *} {if $profileTabs && count($profileTabs) > 0} {var $tabs = $profileTabs} {include 'file:profile/profile.tabs.tpl'} {/if} {if $isOwner && $hasArticles} {set $statsJson = '!getUserResourceStats' | snippet : ['userId' => $userID]} {set $stats = $statsJson | fromJSON} {set $pageviews = $stats['pageviews'] ?: []} {if $pageviews && $pageviews['months'] && count($pageviews['months']) > 0}
Your Stats Overview
See all
4-Month Views
{$pageviews['totalViews'] | number_format}
Views across the four months shown below
{$month.label}
{$month['views'] | number_format}
View{if $month['views'] != 1}s{/if}
| Image | Details | Year | Country | Published |
|---|
{$username} has no public activity yet.
Check back later to see if they've published any content.