View file sys/themes/web_blue/tpl/listing.post.tpl

File size: 2.67Kb
{if $hightlight}
    {assign var="div" value="post_hightlight"}
{else}
    {assign var="div" value="post"}
{/if}


{capture assign="post_time"}
    {if $time}
        <span class="post_time">{$time}</span>
    {/if}
{/capture}

{capture assign="post_counter"}
    {if $counter}
        <span class="post_counter">{$counter}</span>
    {/if}
{/capture}

{capture assign="post_actions"}
    {section name=i loop=$actions}
        <span class="post_action"><a href="{$actions[i].url}"><img src="{$actions[i].icon}" alt="" /></a></span>
            {/section}
        {/capture}

<div id="{$id}" class="sortable">
    <div class="{$div}" {if $url}onmousedown="link.onmousedown(this)" onmousemove="link.onmousemove()" onmouseup="link.onmouseup('{$url}', event)"{/if}>
        <table cellspacing="0" callpadding="0" width="100%">

            {if $image}
                <tr>
                    <td class="post_image" rowspan="4">
                        <img src="{$image}" alt="" />
                    </td>
                    <td class="post_title">
                        {$title}
                        {$post_counter}
                    </td>

                    <td class="post_title_right">

                        {$post_time}
                        {$post_actions}
                    </td>
                </tr>
            {elseif $icon}
                <tr>
                    <td class="post_icon">
                        <img src="{$icon}" alt="" />
                    </td>
                    <td class="post_title">
                        {$title}
                        {$post_counter}
                    </td>

                    <td class="post_title_right">

                        {$post_time}
                        {$post_actions}
                    </td>
                </tr>
            {else}
                <tr>
                    <td class="post_title">
                        {$title}
                        {$post_counter}
                    </td>

                    <td class="post_title_right">
                        {$post_time}
                        {$post_actions}
                    </td>
                </tr>
            {/if}

            {if $content}
                <tr>
                    <td class="post_content" colspan="10">
                        {$content}
                    </td>
                </tr>
            {/if}

            {if $bottom}
                <tr>
                    <td class="post_bottom" colspan="10">
                        {$bottom}
                    </td>
                </tr>
            {/if}


        </table>
    </div>
</div>