Commit | Line | Data |
---|---|---|
5d7bde5d AE |
1 | <{if $box->showHeader}section{else}div{/if} class="box{if $box->getImage()} boxWithImage{/if}{if $box->showEditButton()} boxWithEditButton{/if}{if $box->cssClassName} {$box->cssClassName}{/if}" data-box-identifier="{@$box->identifier}"> |
2 | {if $box->showEditButton()} | |
ab43711a | 3 | <a href="{link controller='BoxEdit' id=$box->boxID isACP=true}{/link}" class="boxEditButton jsTooltip" title="{lang}wcf.page.box.edit{/lang}">{icon name='pen-to-square'}</a> |
5d7bde5d | 4 | {/if} |
c14f5026 | 5 | {if $box->getImage()} |
bb6ef47e MW |
6 | <div class="boxImage"> |
7 | {if $box->hasLink()} | |
8 | <a href="{$box->getLink()}">{@$box->getImage()}</a> | |
9 | {else} | |
10 | {@$box->getImage()} | |
11 | {/if} | |
12 | </div> | |
13 | {/if} | |
14 | ||
15 | {if $box->showHeader} | |
16 | <h2 class="boxTitle"> | |
17 | {if $box->hasLink()} | |
18 | <a href="{$box->getLink()}">{$box->getTitle()}</a> | |
19 | {else} | |
20 | {$box->getTitle()} | |
21 | {/if} | |
22 | </h2> | |
23 | {/if} | |
55b402a0 | 24 | |
a6baf745 | 25 | <div class="boxContent{if $box->boxType == 'text'} htmlContent{/if}"> |
55b402a0 MW |
26 | {@$box->getContent()} |
27 | </div> | |
28 | {if $box->showHeader}</section>{else}</div>{/if} |