diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-02-28 14:08:45 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-08-07 12:17:36 +0200 |
commit | 348e1587ea23408954568f8c3ed6c0defa5d2f89 (patch) | |
tree | 65261e0f3a8d291ff31bdddce39cda5281bf9700 /tpl/default/linklist.html | |
parent | 4d7cd1b0e2ff3c4ac5df03774640164f681b5e96 (diff) | |
download | Shaarli-348e1587ea23408954568f8c3ed6c0defa5d2f89.tar.gz Shaarli-348e1587ea23408954568f8c3ed6c0defa5d2f89.tar.zst Shaarli-348e1587ea23408954568f8c3ed6c0defa5d2f89.zip |
Linklist template
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r-- | tpl/default/linklist.html | 173 |
1 files changed, 102 insertions, 71 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index c42245e4..2694edfe 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -1,99 +1,130 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | {include="includes"} | 4 | {include="includes"} |
5 | </head> | 5 | </head> |
6 | <body> | 6 | <body> |
7 | {include="page.header"} | 7 | {include="page.header"} |
8 | 8 | ||
9 | <!--{loop="$plugins_header.fields_toolbar"} | 9 | <!--{loop="$plugins_header.fields_toolbar"} |
10 | {$value} | 10 | {$value} |
11 | {/loop}--> | 11 | {/loop}--> |
12 | 12 | ||
13 | <div id="linklist"> | 13 | <div id="linklist"> |
14 | 14 | ||
15 | {include="linklist.paging"} | 15 | {include="linklist.paging"} |
16 | 16 | ||
17 | <div id="plugin_zone_start_linklist" class="plugin_zone"> | 17 | <div id="plugin_zone_start_linklist" class="plugin_zone"> |
18 | {loop="$plugin_start_zone"} | 18 | {loop="$plugin_start_zone"} |
19 | {$value} | 19 | {$value} |
20 | {/loop} | 20 | {/loop} |
21 | </div> | 21 | </div> |
22 | 22 | ||
23 | {if="count($links)==0"} | 23 | <!-- TODO: Search results. --> |
24 | <div id="searchcriteria">Nothing found.</i></div> | 24 | {if="count($links)==0"} |
25 | {else} | 25 | <div id="searchcriteria">Nothing found.</div> |
26 | {if="$search_type=='fulltext'"} | 26 | {else} |
27 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> | 27 | {if="$search_type=='fulltext'"} |
28 | {/if} | 28 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> |
29 | {if="$search_type=='tags'"} | ||
30 | <div id="searchcriteria">{$result_count} results for tags <i> | ||
31 | {loop="search_crits"} | ||
32 | <span class="linktag" title="Remove tag"> | ||
33 | <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a> | ||
34 | </span> | ||
35 | {/loop}</i></div> | ||
36 | {/if} | ||
37 | {/if} | 29 | {/if} |
38 | <ul> | 30 | {if="$search_type=='tags'"} |
39 | {loop="links"} | 31 | <div id="searchcriteria">{$result_count} results for tags <i> |
40 | <li{if="$value.class"} class="{$value.class}"{/if}> | 32 | {loop="search_crits"} |
41 | <a id="{$value.shorturl}"></a> | 33 | <span class="linktag" title="Remove tag"> |
42 | <div class="thumbnail">{$value.url|thumbnail}</div> | 34 | <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a> |
43 | <div class="linkcontainer"> | 35 | </span> |
44 | {if="isLoggedIn()"} | 36 | {/loop}</i></div> |
45 | <div class="linkeditbuttons"> | 37 | {/if} |
46 | <form method="GET" class="buttoneditform"> | 38 | {/if} |
47 | <input type="hidden" name="edit_link" value="{$value.linkdate}"> | 39 | <div class="pure-g"> |
48 | <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"> | 40 | <div class="pure-u-2-24"></div> |
49 | </form><br> | 41 | <div class="pure-u-20-24"> |
50 | <form method="POST" class="buttoneditform"> | 42 | {loop="links"} |
51 | <input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | 43 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> |
52 | <input type="hidden" name="token" value="{$token}"> | 44 | |
53 | <input type="hidden" name="delete_link"> | 45 | <div class="linklist-item-title"> |
54 | <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" | 46 | {if="isLoggedIn()"} |
55 | class="button_delete" onClick="return confirmDeleteLink();"> | 47 | <div class="linklist-item-editbuttons"> |
56 | </form> | 48 | <a href="#" title="Fold" class="fold-button"><i class="fa fa-chevron-up"></i></a> |
57 | </div> | 49 | <a href="?edit_link={$value.linkdate}" title="Edit"><i class="fa fa-pencil-square-o"></i></a> |
58 | {/if} | 50 | <a href="?delete_link={$value.linkdate}&token={$token}" title="Delete"><i class="fa fa-trash"></i></a> |
59 | <span class="linktitle"> | 51 | </div> |
60 | <a href="{$value.real_url}">{$value.title}</a> | 52 | {/if} |
61 | </span> | 53 | |
62 | <br> | 54 | <h2> |
63 | {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if} | 55 | <a href="{$value.real_url}" id="{$value.shorturl}"> |
64 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | 56 | {if="strpos($value.url, $value.shorturl) === false"} |
65 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span> | 57 | <i class="fa fa-external-link"></i> |
66 | {else} | 58 | {else} |
67 | <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span> | 59 | <i class="fa fa-sticky-note"></i> |
68 | {/if} | 60 | {/if} |
69 | 61 | ||
70 | {loop="$value.link_plugin"} | 62 | {if="$value.private"} |
71 | <span>{$value}</span> - | 63 | <span class="label label-private">Private</span> |
72 | {/loop} | ||
73 | |||
74 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> | ||
75 | {if="$value.tags"} | ||
76 | <div class="linktaglist"> | ||
77 | {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} | ||
78 | </div> | ||
79 | {/if} | 64 | {/if} |
80 | 65 | ||
66 | {$value.title} | ||
67 | </a> | ||
68 | </h2> | ||
69 | </div> | ||
70 | |||
71 | <div class="linklist-item-thumbnail">{$value.url|thumbnail}</div> | ||
81 | 72 | ||
73 | {if="$value.description"} | ||
74 | <div class="linklist-item-description"> | ||
75 | {$value.description} | ||
82 | </div> | 76 | </div> |
83 | </li> | 77 | {/if} |
84 | {/loop} | 78 | |
85 | </ul> | 79 | <div class="linklist-item-infos"> |
80 | {if="$value.tags"} | ||
81 | <div class="linklist-item-tags"> | ||
82 | <i class="fa fa-tags"></i> | ||
83 | {loop="value.taglist"} | ||
84 | <span class="label label-tag" title="Add tag"> | ||
85 | <a href="?addtag={$value|urlencode}">{$value}</a> | ||
86 | </span> | ||
87 | {/loop} | ||
88 | </div> | ||
89 | {/if} | ||
86 | 90 | ||
87 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | 91 | <div class="pure-g"> |
88 | {loop="$plugin_end_zone"} | 92 | <div class="pure-u-lg-5-8 pure-u-sm-1"> |
89 | {$value} | 93 | <a href="?{$value.shorturl}" title="Permalink"> |
90 | {/loop} | 94 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} |
95 | <span class="linkdate"> | ||
96 | <i class="fa fa-clock-o"></i> | ||
97 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"} · | ||
98 | </span> | ||
99 | {/if} | ||
100 | permalink · | ||
101 | </a> | ||
102 | |||
103 | {loop="$value.link_plugin"} | ||
104 | <span>{$value}</span> · | ||
105 | {/loop} | ||
106 | </div> | ||
107 | <div class="linklist-item-infos-url pure-u-lg-3-8 pure-u-sm-1"> | ||
108 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a> | ||
109 | </div> | ||
110 | </div> | ||
111 | </div> | ||
112 | </div> | ||
113 | {/loop} | ||
91 | </div> | 114 | </div> |
115 | </div> | ||
116 | </div> | ||
117 | |||
118 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | ||
119 | {loop="$plugin_end_zone"} | ||
120 | {$value} | ||
121 | {/loop} | ||
122 | </div> | ||
92 | 123 | ||
93 | {include="linklist.paging"} | 124 | {include="linklist.paging"} |
94 | 125 | ||
95 | </div> | 126 | </div> |
96 | 127 | ||
97 | {include="page.footer"} | 128 | {include="page.footer"} |
98 | </body> | 129 | </body> |
99 | </html> | 130 | </html> |