blogpost_renderfull.tpl 1.98 KB
Newer Older
1
{**
2
3
* This template displays a blog post.
*}
4
{if $published}
Evonne Cheung's avatar
Evonne Cheung committed
5
<div id="blogpost">
6
    {if $artefacttitle}<h3 class="title">{$artefacttitle|safe}</h3>{/if}
7
    <div class="postdetails">{$postedbyon}</div>
8
9
    {$artefactdescription|clean_html|safe}
    {if isset($attachments)}
10
        {if $artefacttags}<div class="tags">{str tag=tags}: {list_tags owner=$artefactowner tags=$artefacttags}</div>{/if}
11
        <table class="cb attachments fullwidth" id="blockinstance-attachments-{$postid}{if $blockid}-{$blockid}{/if}">
12
13
14
15
16
            <thead class="expandable-head">
                <tr>
                    <td colspan="2">
                        <a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
                        <span class="fr">
17
                            <img class="fl" alt="{str tag=attachments section=artefact.blog}" src="{theme_image_url attachment}">
18
19
20
21
22
23
24
25
                            {$attachments|count}
                        </span>
                    </td>
                </tr>
            </thead>
            <tbody class="expandable-body">
                {foreach from=$attachments item=item}
                    <tr class="{cycle values='r0,r1'}">
26
                        <td class="icon-container"><img src="{$item->iconpath}" alt=""></td>
27
                        <td>
28
29
                            <h3 class="title"><a href="{$item->viewpath}">{$item->title}</a> <span class="description">({$item->size}) - <a href="{$item->downloadpath}">{str tag=Download section=artefact.file}</a></span></h3>
                            <div class="detail">{$item->description}</div>
30
31
32
33
34
35
36
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    {/if}
    {if $license}
37
    <div class="postlicense">
38
        {$license|safe}
39
    </div>
40
    {/if}
41
</div>
42
43
44
<script type="application/javascript">
setupExpanders($j('#blockinstance-attachments-{$postid}-{$blockid}'));
</script>
45
46
47
48
49
{else}
<div>
{$notpublishedblogpost|safe}
</div>
{/if}