Template overhaul
authorMarcel Werk <burntime@woltlab.com>
Fri, 22 Apr 2016 14:58:44 +0000 (16:58 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 22 Apr 2016 14:58:44 +0000 (16:58 +0200)
templates/legalNotice.tpl

index 76b805a9d156876630f2ab50330b99c27c247c40..4733dd5eb4fc0cae7b2c806f576e0910203b54a6 100644 (file)
@@ -1,84 +1,70 @@
-{include file='documentHeader'}
+{capture assign='pageTitle'}{lang}wcf.legalNotice.title{/lang}{/capture}
 
-<head>
-       <title>{lang}wcf.legalNotice.title{/lang} - {PAGE_TITLE|language}</title>
-       
-       {include file='headInclude'}
-       
-       <link rel="canonical" href="{link controller='LegalNotice'}{/link}" />
-</head>
+{capture assign='contentTitle'}{lang}wcf.legalNotice.title{/lang}{/capture}
 
-<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
-
-{include file='header'}
+{capture assign='contentDescription'}{lang}wcf.legalNotice.description{/lang}{/capture}
 
-<header class="boxHeadline">
-       <h1>{lang}wcf.legalNotice.title{/lang}</h1>
-       <p>{lang}wcf.legalNotice.description{/lang}</p>
-</header>
+{capture assign='headContent'}
+       <link rel="canonical" href="{link controller='LegalNotice'}{/link}" />
+{/capture}
 
-{include file='userNotice'}
+{include file='header'}
 
-<div class="container containerPadding marginTop">
-       <fieldset>
-               <legend>{lang}wcf.legalNotice.general{/lang}</legend>
+<section class="section">
+       <h2 class="sectionTitle">{lang}wcf.legalNotice.general{/lang}</h2>
+       
+       <dl>
+               {if LEGAL_NOTICE_ADDRESS}
+                       <dt>{lang}wcf.legalNotice.address{/lang}</dt>
+                       <dd>{@LEGAL_NOTICE_ADDRESS|language|newlineToBreak}</dd>
+               {/if}
                
-               <dl>
-                       {if LEGAL_NOTICE_ADDRESS}
-                               <dt>{lang}wcf.legalNotice.address{/lang}</dt>
-                               <dd>{@LEGAL_NOTICE_ADDRESS|language|newlineToBreak}</dd>
-                       {/if}
-                       
-                       {if $encodedEmailAddress}
-                               <dt>{lang}wcf.legalNotice.emailAddress{/lang}</dt>
-                               <dd><a href="mailto:{@$encodedEmailAddress}">{@$encodedEmailAddress}</a></dd>
-                       {/if}
-                       
-                       {if LEGAL_NOTICE_PHONE}
-                               <dt>{lang}wcf.legalNotice.phone{/lang}</dt>
-                               <dd>{LEGAL_NOTICE_PHONE}</dd>
-                       {/if}
-                       
-                       {if LEGAL_NOTICE_FAX}
-                               <dt>{lang}wcf.legalNotice.fax{/lang}</dt>
-                               <dd>{LEGAL_NOTICE_FAX}</dd>
-                       {/if}
-                       
-                       {if LEGAL_NOTICE_REPRESENTATIVE}
-                               <dt>{lang}wcf.legalNotice.representative{/lang}</dt>
-                               <dd>{LEGAL_NOTICE_REPRESENTATIVE}</dd>
-                       {/if}
-                       
-                       {if LEGAL_NOTICE_REGISTER}
-                               <dt>{lang}wcf.legalNotice.register{/lang}</dt>
-                               <dd>{LEGAL_NOTICE_REGISTER}</dd>
-                       {/if}
-                       
-                       {if LEGAL_NOTICE_VAT_ID}
-                               <dt>{lang}wcf.legalNotice.vatID{/lang}</dt>
-                               <dd>{LEGAL_NOTICE_VAT_ID}</dd>
-                       {/if}
-               </dl>
+               {if $encodedEmailAddress}
+                       <dt>{lang}wcf.legalNotice.emailAddress{/lang}</dt>
+                       <dd><a href="mailto:{@$encodedEmailAddress}">{@$encodedEmailAddress}</a></dd>
+               {/if}
                
-               {event name='generalFields'}
-       </fieldset>
-       
-       {if LEGAL_NOTICE_ADDITIONAL_TEXT}
-               <fieldset>
-                       <legend>{lang}wcf.legalNotice.additionalText{/lang}</legend>
-                       
-                       <div class="htmlContent">
-                               {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language|newlineToBreak}{/if}
-                       </div>
-                       
-                       {event name='additionalTextFields'}
-               </fieldset>
-       {/if}
+               {if LEGAL_NOTICE_PHONE}
+                       <dt>{lang}wcf.legalNotice.phone{/lang}</dt>
+                       <dd>{LEGAL_NOTICE_PHONE}</dd>
+               {/if}
+               
+               {if LEGAL_NOTICE_FAX}
+                       <dt>{lang}wcf.legalNotice.fax{/lang}</dt>
+                       <dd>{LEGAL_NOTICE_FAX}</dd>
+               {/if}
+               
+               {if LEGAL_NOTICE_REPRESENTATIVE}
+                       <dt>{lang}wcf.legalNotice.representative{/lang}</dt>
+                       <dd>{LEGAL_NOTICE_REPRESENTATIVE}</dd>
+               {/if}
+               
+               {if LEGAL_NOTICE_REGISTER}
+                       <dt>{lang}wcf.legalNotice.register{/lang}</dt>
+                       <dd>{LEGAL_NOTICE_REGISTER}</dd>
+               {/if}
+               
+               {if LEGAL_NOTICE_VAT_ID}
+                       <dt>{lang}wcf.legalNotice.vatID{/lang}</dt>
+                       <dd>{LEGAL_NOTICE_VAT_ID}</dd>
+               {/if}
+       </dl>
        
-       {event name='fieldsets'}
-</div>
+       {event name='generalFields'}
+</section>
 
-{include file='footer'}
+{if LEGAL_NOTICE_ADDITIONAL_TEXT}
+       <section class="section">
+               <h2 class="sectionTitle">{lang}wcf.legalNotice.additionalText{/lang}</h2>
+               
+               <div class="htmlContent">
+                       {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language|newlineToBreak}{/if}
+               </div>
+               
+               {event name='additionalTextFields'}
+       </section>
+{/if}
 
-</body>
-</html>
+{event name='sections'}
+
+{include file='footer'}