From e7b063d6e6005cbdb6b4f2be583ddd9b1a22be43 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 3 Apr 2016 17:20:24 +0200 Subject: [PATCH] Overhauled templates Frontend only, ACP still outdated --- .../templates/accountManagement.tpl | 24 +++-- com.woltlab.wcf/templates/avatarEdit.tpl | 24 +++-- com.woltlab.wcf/templates/cms.tpl | 58 ++++++------ com.woltlab.wcf/templates/dashboard.tpl | 48 +++++----- .../templates/deletedContentList.tpl | 44 ++++----- com.woltlab.wcf/templates/disclaimer.tpl | 24 +++-- com.woltlab.wcf/templates/emailActivation.tpl | 24 +++-- .../templates/emailNewActivationCode.tpl | 24 +++-- com.woltlab.wcf/templates/following.tpl | 42 +++++---- com.woltlab.wcf/templates/groupedUserList.tpl | 2 +- com.woltlab.wcf/templates/ignoredUsers.tpl | 42 +++++---- com.woltlab.wcf/templates/login.tpl | 22 ++--- com.woltlab.wcf/templates/lostPassword.tpl | 24 +++-- com.woltlab.wcf/templates/mail.tpl | 24 +++-- com.woltlab.wcf/templates/mediaManager.tpl | 8 +- com.woltlab.wcf/templates/membersList.tpl | 52 ++++++----- .../templates/moderationActivation.tpl | 80 +++++++++-------- com.woltlab.wcf/templates/moderationList.tpl | 42 +++++---- .../templates/moderationReport.tpl | 79 ++++++++-------- com.woltlab.wcf/templates/newPassword.tpl | 24 +++-- .../templates/notificationList.tpl | 41 +++++---- .../templates/notificationSettings.tpl | 26 +++--- .../templates/paidSubscriptionList.tpl | 30 +++---- .../templates/recentActivityList.tpl | 30 +++---- com.woltlab.wcf/templates/register.tpl | 24 +++-- .../templates/registerActivation.tpl | 24 +++-- .../templates/registerNewActivationCode.tpl | 24 +++-- com.woltlab.wcf/templates/searchResult.tpl | 44 +++++---- com.woltlab.wcf/templates/settings.tpl | 24 +++-- com.woltlab.wcf/templates/signatureEdit.tpl | 24 +++-- com.woltlab.wcf/templates/tagged.tpl | 42 +++++---- com.woltlab.wcf/templates/team.tpl | 30 +++---- com.woltlab.wcf/templates/userSearch.tpl | 24 +++-- com.woltlab.wcf/templates/usersOnlineList.tpl | 34 ++++--- .../install/files/style/layout/content.scss | 90 ++++++++++++++++++- wcfsetup/install/files/style/ui/message.scss | 1 - 36 files changed, 654 insertions(+), 569 deletions(-) diff --git a/com.woltlab.wcf/templates/accountManagement.tpl b/com.woltlab.wcf/templates/accountManagement.tpl index aa32c75768..fe438e86cc 100644 --- a/com.woltlab.wcf/templates/accountManagement.tpl +++ b/com.woltlab.wcf/templates/accountManagement.tpl @@ -13,7 +13,17 @@ {include file='header'}
-

{lang}wcf.user.accountManagement{/lang}

+
+

{lang}wcf.user.accountManagement{/lang}

+
+ + {hascontent} + + {/hascontent}
{include file='userNotice'} @@ -32,18 +42,6 @@ {assign var=__authProvider value=$__wcf->getUserProfileHandler()->getAuthProvider()} -
- {hascontent} - - {/hascontent} -
-
{if !$__authProvider}
diff --git a/com.woltlab.wcf/templates/avatarEdit.tpl b/com.woltlab.wcf/templates/avatarEdit.tpl index 8d83c650a0..62c21721b6 100644 --- a/com.woltlab.wcf/templates/avatarEdit.tpl +++ b/com.woltlab.wcf/templates/avatarEdit.tpl @@ -13,7 +13,17 @@ {include file='header'}
-

{lang}wcf.user.avatar.edit{/lang}

+
+

{lang}wcf.user.avatar.edit{/lang}

+
+ + {hascontent} + + {/hascontent}
{include file='userNotice'} @@ -28,18 +38,6 @@

{lang}wcf.global.success.edit{/lang}

{/if} -
- {hascontent} - - {/hascontent} -
-
diff --git a/com.woltlab.wcf/templates/cms.tpl b/com.woltlab.wcf/templates/cms.tpl index 1cee085e71..9361492c88 100644 --- a/com.woltlab.wcf/templates/cms.tpl +++ b/com.woltlab.wcf/templates/cms.tpl @@ -14,31 +14,37 @@ {if $page->isLandingPage}
-

{PAGE_TITLE|language}

- {hascontent}

{content}{PAGE_DESCRIPTION|language}{/content}

{/hascontent} +
+

{PAGE_TITLE|language}

+ {hascontent}

{content}{PAGE_DESCRIPTION|language}{/content}

{/hascontent} +
+ + {hascontent} + + {/hascontent}
-{else} - {if $content[title]} -
+{elseif $content[title]} +
+

{$content[title]}

-
- {/if} +
+ + {hascontent} + + {/hascontent} + {/if} {include file='userNotice'} -{hascontent} -
- -
-{/hascontent} - {if $content[content]} {if $page->pageType == 'text'}
@@ -51,17 +57,15 @@ {/if} {/if} -{hascontent} -
-
-{/hascontent} + {/hascontent} + {include file='footer'} diff --git a/com.woltlab.wcf/templates/dashboard.tpl b/com.woltlab.wcf/templates/dashboard.tpl index fbcd452f5f..e40e9b3c64 100644 --- a/com.woltlab.wcf/templates/dashboard.tpl +++ b/com.woltlab.wcf/templates/dashboard.tpl @@ -20,44 +20,50 @@ {if $__wcf->getPageMenu()->getLandingPage()->menuItem == 'wcf.user.dashboard'}
-

{PAGE_TITLE|language}

- {hascontent}

{content}{PAGE_DESCRIPTION|language}{/content}

{/hascontent} +
+

{PAGE_TITLE|language}

+ {hascontent}

{content}{PAGE_DESCRIPTION|language}{/content}

{/hascontent} +
+ + {hascontent} + + {/hascontent}
{else}
-

{lang}wcf.user.dashboard{/lang}

+
+

{lang}wcf.user.dashboard{/lang}

+
+ + {hascontent} + + {/hascontent}
{/if} {include file='userNotice'} -
- {hascontent} - - {/hascontent} -
-
{if $__boxContent|isset}{@$__boxContent}{/if}
-
+
{hascontent} -
+ {include file='footer'} diff --git a/com.woltlab.wcf/templates/deletedContentList.tpl b/com.woltlab.wcf/templates/deletedContentList.tpl index 7fb978837c..8b1734f1e6 100644 --- a/com.woltlab.wcf/templates/deletedContentList.tpl +++ b/com.woltlab.wcf/templates/deletedContentList.tpl @@ -27,24 +27,26 @@ {include file='header'}
-

{lang}wcf.moderation.deletedContent.{@$objectType}{/lang}

-
- -{include file='userNotice'} - -
- {pages print=true assign=pagesLinks controller='DeletedContentList' link="objectType=$objectType&pageNo=%d"} +
+

{lang}wcf.moderation.deletedContent.{@$objectType}{/lang}

+
{hascontent} -
+ + +{include file='userNotice'} + +{hascontent} +
+ {content}{pages print=true assign=pagesLinks controller='DeletedContentList' link="objectType=$objectType&pageNo=%d"}{/content} +
+{/hascontent} {if $items} {include file=$resultListTemplateName application=$resultListApplication} @@ -52,21 +54,21 @@

{lang}wcf.global.noItems{/lang}

{/if} -
- {@$pagesLinks} +
+ {hascontent} +
+ {content}{@$pagesLinks}{/content} +
+ {/hascontent} {hascontent} -
+ {include file='footer'} diff --git a/com.woltlab.wcf/templates/disclaimer.tpl b/com.woltlab.wcf/templates/disclaimer.tpl index f511a1a6da..d3be1292d9 100644 --- a/com.woltlab.wcf/templates/disclaimer.tpl +++ b/com.woltlab.wcf/templates/disclaimer.tpl @@ -11,24 +11,22 @@ {include file='header' __disableAds=true}
-

{lang}wcf.user.register.disclaimer{/lang}

-
- -{include file='userNotice'} - -{include file='formError'} - -
+
+

{lang}wcf.user.register.disclaimer{/lang}

+
+ {hascontent} -
+ + +{include file='userNotice'} + +{include file='formError'}
diff --git a/com.woltlab.wcf/templates/emailActivation.tpl b/com.woltlab.wcf/templates/emailActivation.tpl index 5e58bad51c..e100ad43fd 100644 --- a/com.woltlab.wcf/templates/emailActivation.tpl +++ b/com.woltlab.wcf/templates/emailActivation.tpl @@ -11,24 +11,22 @@ {include file='header'}
-

{lang}wcf.user.emailActivation{/lang}

-
- -{include file='userNotice'} - -{include file='formError'} - -
+
+

{lang}wcf.user.emailActivation{/lang}

+
+ {hascontent} -
+ + +{include file='userNotice'} + +{include file='formError'}
diff --git a/com.woltlab.wcf/templates/emailNewActivationCode.tpl b/com.woltlab.wcf/templates/emailNewActivationCode.tpl index 71d1905508..d89a784732 100644 --- a/com.woltlab.wcf/templates/emailNewActivationCode.tpl +++ b/com.woltlab.wcf/templates/emailNewActivationCode.tpl @@ -10,24 +10,22 @@ {include file='header'}
-

{lang}wcf.user.newActivationCode{/lang}

-
- -{include file='userNotice'} - -{include file='formError'} - -
+
+

{lang}wcf.user.newActivationCode{/lang}

+
+ {hascontent} -
+ + +{include file='userNotice'} + +{include file='formError'}
diff --git a/com.woltlab.wcf/templates/following.tpl b/com.woltlab.wcf/templates/following.tpl index ca88fed791..07f01f0aaf 100644 --- a/com.woltlab.wcf/templates/following.tpl +++ b/com.woltlab.wcf/templates/following.tpl @@ -20,24 +20,26 @@ {include file='header'}
-

{lang}wcf.user.following{/lang} {#$items}

-
- -{include file='userNotice'} - -
- {pages print=true assign=pagesLinks controller='Following' link="pageNo=%d"} +
+

{lang}wcf.user.following{/lang} {#$items}

+
{hascontent} -
+ + +{include file='userNotice'} + +{hascontent} +
+ {content}{pages print=true assign=pagesLinks controller='Following' link="pageNo=%d"}{/content} +
+{/hascontent} {if $objects|count}
@@ -65,19 +67,21 @@
-
- {@$pagesLinks} +
+ {hascontent} +
+ {content}{@$pagesLinks}{/content} +
+ {/hascontent} {hascontent} -
+ {else}

{lang}wcf.user.following.noUsers{/lang}

{/if} diff --git a/com.woltlab.wcf/templates/groupedUserList.tpl b/com.woltlab.wcf/templates/groupedUserList.tpl index 5832289603..03b3323358 100644 --- a/com.woltlab.wcf/templates/groupedUserList.tpl +++ b/com.woltlab.wcf/templates/groupedUserList.tpl @@ -19,7 +19,7 @@ {/if} {/foreach} -
+