aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/linklist.html
blob: c7de5b87053c6ace29cc39f1d4d20ad2b393ceab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
<html>
<head>{include="includes"}</head>
<body>
<div id="pageheader">
	{include="page.header"}
	<div id="headerform" style="width:100%; white-space:nowrap;";>
	    <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form>
	    <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="searchtags" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form>
	</div>
</div>

<div id="linklist">

    {include="linklist.paging"}

    {if="$search_type=='fulltext'"}
        <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
    {/if}
    {if="$search_type=='tags'"}
        <div id="searchcriteria">{$result_count} results for tags <i>
        {loop="search_crits"}
            <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span>
        {/loop}</i></div>
    {/if}

    <ul>
        {loop="links"}
        <li{if="$value.class"} class="{$value.class}"{/if}>
            <div class="thumbnail">{$value.url|thumbnail}</div>
            <div class="linkcontainer">
                <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
                {if="isLoggedIn()"}
                    <form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form>
                    <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
                    <input type="hidden" name="token" value="{$token}"><input type="hidden" name="delete_link"><input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();"></form>
                {/if}
                <br>
                {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
                {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
                    <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
                {else}
                    <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
                {/if}
                <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br>
                {if="$value.tags"}
                    <div class="linktaglist">
                    {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|htmlspecialchars}">{$value|htmlspecialchars}</a></span> {/loop}
                    </div>
                {/if}
            </div>
        </li>
    {/loop}
    </ul>

    {include="linklist.paging"}

</div>

    {include="page.footer"}
</body>
</html>