| 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()} |
| 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> |
| 4 | {/if} |
| 5 | {if $box->getImage()} |
| 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} |
| 24 | |
| 25 | <div class="boxContent{if $box->boxType == 'text'} htmlContent{/if}"> |
| 26 | {@$box->getContent()} |
| 27 | </div> |
| 28 | {if $box->showHeader}</section>{else}</div>{/if} |