Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / __box.tpl
1 <{if $box->showHeader}section{else}div{/if} class="box{if $box->hasImage()} boxWithImage{/if}{if $box->cssClassName} {$box->cssClassName}{/if}" data-box-identifier="{@$box->identifier}">
2 {if $box->hasImage()}
3 <div class="boxImage">
4 {if $box->hasLink()}
5 <a href="{$box->getLink()}">{@$box->getImage()}</a>
6 {else}
7 {@$box->getImage()}
8 {/if}
9 </div>
10 {/if}
11
12 {if $box->showHeader}
13 <h2 class="boxTitle">
14 {if $box->hasLink()}
15 <a href="{$box->getLink()}">{$box->getTitle()}</a>
16 {else}
17 {$box->getTitle()}
18 {/if}
19 </h2>
20 {/if}
21
22 <div class="boxContent">
23 {@$box->getContent()}
24 </div>
25 {if $box->showHeader}</section>{else}</div>{/if}