From bf0b0d82321880b031ce2496d7b2cdc1ecddff98 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 21 Dec 2013 14:38:48 +0100 Subject: [PATCH] Small optimizations --- .../templates/userInformationStatistics.tpl | 8 ++-- com.woltlab.wcf/templates/userSidebar.tpl | 42 +++++++++++-------- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/com.woltlab.wcf/templates/userInformationStatistics.tpl b/com.woltlab.wcf/templates/userInformationStatistics.tpl index b8bb82be5c..2363e03f15 100644 --- a/com.woltlab.wcf/templates/userInformationStatistics.tpl +++ b/com.woltlab.wcf/templates/userInformationStatistics.tpl @@ -1,11 +1,13 @@
{event name='statistics'} - {if MODULE_LIKE} + {if MODULE_LIKE && $user->likesReceived}
{lang}wcf.like.likesReceived{/lang}
{#$user->likesReceived}
{/if} -
{lang}wcf.user.activityPoint{/lang}
-
{#$user->activityPoints}
+ {if $user->activityPoints} +
{lang}wcf.user.activityPoint{/lang}
+
{#$user->activityPoints}
+ {/if}
\ No newline at end of file diff --git a/com.woltlab.wcf/templates/userSidebar.tpl b/com.woltlab.wcf/templates/userSidebar.tpl index c1942d5b28..16fcef9ee8 100644 --- a/com.woltlab.wcf/templates/userSidebar.tpl +++ b/com.woltlab.wcf/templates/userSidebar.tpl @@ -10,24 +10,32 @@ -
- - -
- {event name='statistics'} - -
{if $user->activityPoints}{lang}wcf.user.activityPoint{/lang}{else}{lang}wcf.user.activityPoint{/lang}{/if}
-
{#$user->activityPoints}
- - {if MODULE_LIKE} -
{lang}wcf.like.likesReceived{/lang}
-
{#$user->likesReceived}
- {/if} +{hascontent} +
+ -
{lang}wcf.user.profileHits{/lang}
- getProfileAge() > 1} title="{lang}wcf.user.profileHits.hitsPerDay{/lang}"{/if}>{#$user->profileHits} -
-
+
+ {content} + {event name='statistics'} + + {if MODULE_LIKE && $user->likesReceived} +
{lang}wcf.like.likesReceived{/lang}
+
{#$user->likesReceived}
+ {/if} + + {if $user->activityPoints} +
{if $user->activityPoints}{lang}wcf.user.activityPoint{/lang}{else}{lang}wcf.user.activityPoint{/lang}{/if}
+
{#$user->activityPoints}
+ {/if} + + {if $user->profileHits} +
{lang}wcf.user.profileHits{/lang}
+ getProfileAge() > 1} title="{lang}wcf.user.profileHits.hitsPerDay{/lang}"{/if}>{#$user->profileHits} + {/if} + {/content} +
+ +{/hascontent} {if $followingCount}
-- 2.20.1