taggedposts.tpl 3.17 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{if ($editing)}
<div class="shortcut nojs-hidden-block">
    <div{if (count($blogs) == 1)} class="hidden"{/if}>
        <label class="text">{str tag='shortcutaddpost' section='artefact.blog'}</label>
        <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}">
        <a class="btn btnshortcut">{str tag='shortcutgo' section='artefact.blog'}</a>
    </div>
    <a class="btn btnshortcut {if (count($blogs) != 1)} hidden{/if}">{str tag='shortcutnewentry' section='artefact.blog'}</a>
</div>
{/if}

<p>{str tag='blockheading' section='blocktype.blog/taggedposts'}
{if $viewowner}{$tag} {str tag='by' section='artefact.blog'} <a href="{profile_url($viewowner)}">{$viewowner|display_name}</a>
{else}<a href="{$WWWROOT}tags.php?tag={$tag}&sort=name&type=text">{$tag}</a>{/if}</p>

{if $configerror}{str tag='configerror' section='blocktype.blog/taggedposts'}
{elseif $badtag}{str tag='notags' section='blocktype.blog/taggedposts' arg1=$badtag}
{elseif $full}
<div id="blogdescription">
Pat Kira's avatar
Pat Kira committed
21
    <div id="postlist_{$blockid}" class="postlist">
Naomi Guyer's avatar
Naomi Guyer committed
22
23
24
25
26
    {foreach from=$results item=post}
    <div class="post">
        <h3 class="title"><a href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$view}">{$post->title}</a></h3>
        <div class="postdetails">{$post->postedbyon}</div>
        <div class="detail">{$post->description|clean_html|safe}</div>
Pat Kira's avatar
Pat Kira committed
27
        <div class="tags"><strong>{str tag=tags}:</strong> {list_tags owner=$post->owner tags=$post->taglist}</div>
Naomi Guyer's avatar
Naomi Guyer committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
        {if $post->commentcount != null}
        <div class="comments">
            {if $post->commentcount > 0}
                <a id="block_0{$post->id}{$blockid}" class="commentlink" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$view}">{str tag=Comments section=artefact.comment} ({$post->commentcount})</a>
            {else}
                {if $post->allowcomments}
                    <span class="nocomments">{str tag=Comments section=artefact.comment} ({$post->commentcount})</span>
                {/if}
            {/if}
            {if $post->allowcomments}
                <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}
    </div>
    {/foreach}
    </div>
</div>

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