From: Alexander Ebert Date: Sun, 3 Apr 2016 15:20:24 +0000 (+0200) Subject: Overhauled templates X-Git-Tag: 3.0.0_Beta_1~1985 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7b063d6e6005cbdb6b4f2be583ddd9b1a22be43;p=GitHub%2FWoltLab%2FWCF.git Overhauled templates Frontend only, ACP still outdated --- 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} -
+