Файл: base-sys/base/decorators/ipc.html
Строк: 20
<?php
{* `IPC` decorator template *}
{style}
{literal}
.peep_ipc_toolbar span{
display:inline-block;
}
{/literal}
{/style}
<div class="peep_ipc {if !empty($data.addClass)}{$data.addClass}{/if} clearfix">
<div class="peep_ipc_picture">
{if !empty($data.avatar)}
{decorator name='avatar_item' data=$data.avatar}
{else}
<img src="{$data.imageSrc}" alt="{$data.imageTitle}" title="{$data.imageTitle}" />
{/if}
</div>
<div class="peep_ipc_info">
{if isset($data.infoString)}<div class="peep_ipc_header">{$data.infoString}</div>{/if}
<div class="peep_ipc_content">{$data.content}</div>
{if isset($data.toolbar) && $data.toolbar}
<div class="clearfix">
<div class="peep_ipc_toolbar peep_remark">
{foreach from=$data.toolbar item='item' name='toolbar'}
{if !$smarty.foreach.toolbar.first && ( empty($item.class) || (!strstr($item.class, 'peep_ipc_date')) )} <span class="peep_delimiter">·</span> {/if}
<span class="peep_nowrap{if !empty($item.class)} {$item.class}{/if}">
{if isset($item.href)}<a {if isset($item.id)} id="{$item.id}"{/if} href="{$item.href}">{/if}
{$item.label}
{if isset($item.href)}</a>{/if}
</span>
{/foreach}
</div>
</div>
{/if}
</div>
</div>
?>