taggedposts.tpl 2.75 KB
Newer Older
1
{if ($editing)}
Evonne Cheung's avatar
Evonne Cheung committed
2
<div class="shortcut nojs-hidden-block">
3
    <div{if (count($blogs) == 1)} class="hidden"{/if}>
Evonne Cheung's avatar
Evonne Cheung committed
4
        <label class="text">{str tag='shortcutaddpost' section='artefact.blog'}</label>
5
6
        <select id="blogselect_{$blockid}" class="select">{foreach from=$blogs item=blog}<option value="{$blog->id}"> {$blog->title} </option>{/foreach}</select>
        <input class="select" type="hidden" value="{$tagselect}">
7
        <a class="btn btnshortcut">{str tag='shortcutgo' section='artefact.blog'}</a>
8
    </div>
9
    <a class="btn btnshortcut {if (count($blogs) != 1)} hidden{/if}">{str tag='shortcutnewentry' section='artefact.blog'}</a>
10
</div>
11
{/if}
12

13
14
15
<p>{$blockheading|safe}</p>
{if $configerror}{$configerror}
{elseif $badtag && $badnotag}{str tag='notagsboth' section='blocktype.blog/taggedposts' arg1=$badtag arg2=$badnotag}
16
17
18
{elseif $badtag}{str tag='notags' section='blocktype.blog/taggedposts' arg1=$badtag}
{elseif $full}
<div id="blogdescription">
19
    <div id="postlist_{$blockid}" class="postlist fullwidth">
20
    {foreach from=$results item=post}
21
    <div class="post">
22
    {$post->html|safe}
23
24
25
        {if $post->commentcount != null}
        <div class="comments">
            {if $post->commentcount > 0}
26
27
28
                {if !$editing}<a id="block_0{$post->id}{$blockid}" class="commentlink" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$view}">{/if}
                {str tag=Comments section=artefact.comment} ({$post->commentcount})
                {if !$editing}</a>{/if}
29
30
31
32
33
            {else}
                {if $post->allowcomments}
                    <span class="nocomments">{str tag=Comments section=artefact.comment} ({$post->commentcount})</span>
                {/if}
            {/if}
34
            {if $post->allowcomments && !$editing}
35
36
37
38
39
40
41
42
43
                <a class="addcomment bar-before" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$view}">{str tag=addcomment section=artefact.comment}</a>
            {/if}
        </div>
        <div class="feedbacktablewrapper">
            <div id="feedbacktable_0{$post->id}{$blockid}" class="feedbacktable">
                {$post->comments->tablerows|safe}
            </div>
        </div>
        {/if}
44
    </div>
45
    {/foreach}
46
    </div>
47
48
49
50
</div>

{else}<ul class="taggedposts">{foreach from=$results item=post}
<li>
51
    <strong><a href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$view}">{$post->title}</a></strong>
52
53
    {str tag='postedin' section='blocktype.blog/taggedposts'}
    {if $viewowner}{$post->parenttitle}
54
    {else}<a href="{$WWWROOT}artefact/artefact.php?artefact={$post->parent}&view={$view}">{$post->parenttitle}</a>{/if}
55
    <span class="postdetails">{str tag='postedon' section='blocktype.blog/taggedposts'} {$post->displaydate}</span>
56
57
</li>
{/foreach}</ul>
58
{/if}