From: Marcel Werk Date: Sat, 21 Dec 2013 13:38:48 +0000 (+0100) Subject: Small optimizations X-Git-Tag: 2.0.1~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf0b0d82321880b031ce2496d7b2cdc1ecddff98;p=GitHub%2FWoltLab%2FWCF.git Small optimizations --- 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}