diff options
Diffstat (limited to 'tpl/vintage')
-rw-r--r-- | tpl/vintage/configure.html | 31 | ||||
-rw-r--r-- | tpl/vintage/daily.html | 9 | ||||
-rw-r--r-- | tpl/vintage/dailyrss.html | 4 | ||||
-rw-r--r-- | tpl/vintage/includes.html | 20 | ||||
-rw-r--r-- | tpl/vintage/linklist.html | 12 | ||||
-rw-r--r-- | tpl/vintage/picwall.html | 8 | ||||
-rw-r--r-- | tpl/vintage/thumbnails.html | 28 | ||||
-rw-r--r-- | tpl/vintage/tools.html | 32 |
8 files changed, 97 insertions, 47 deletions
diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html index 479284eb..f1892fa1 100644 --- a/tpl/vintage/configure.html +++ b/tpl/vintage/configure.html | |||
@@ -59,14 +59,6 @@ | |||
59 | </tr> | 59 | </tr> |
60 | 60 | ||
61 | <tr> | 61 | <tr> |
62 | <td><b>Redirector</b></td> | ||
63 | <td> | ||
64 | <input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br> | ||
65 | (e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER) | ||
66 | </td> | ||
67 | </tr> | ||
68 | |||
69 | <tr> | ||
70 | <td><b>Security:</b></td> | 62 | <td><b>Security:</b></td> |
71 | <td> | 63 | <td> |
72 | <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection" | 64 | <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection" |
@@ -128,6 +120,29 @@ | |||
128 | <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" /> | 120 | <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" /> |
129 | </td> | 121 | </td> |
130 | </tr> | 122 | </tr> |
123 | <tr> | ||
124 | <td valign="top"><b>Enable thumbnails</b></td> | ||
125 | <td> | ||
126 | <select name="enableThumbnails" id="enableThumbnails" class="align"> | ||
127 | <option value="all" {if="$thumbnails_mode=='all'"}selected{/if}> | ||
128 | {'All'|t} | ||
129 | </option> | ||
130 | <option value="common" {if="$thumbnails_mode=='common'"}selected{/if}> | ||
131 | {'Only common media hosts'|t} | ||
132 | </option> | ||
133 | <option value="none" {if="$thumbnails_mode=='none'"}selected{/if}> | ||
134 | {'None'|t} | ||
135 | </option> | ||
136 | </select> | ||
137 | <label for="enableThumbnails"> | ||
138 | {if="! $gd_enabled"} | ||
139 | {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t} | ||
140 | {elseif="$thumbnails_enabled"} | ||
141 | <a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a> | ||
142 | {/if} | ||
143 | </label> | ||
144 | </td> | ||
145 | </tr> | ||
131 | 146 | ||
132 | <tr> | 147 | <tr> |
133 | <td></td> | 148 | <td></td> |
diff --git a/tpl/vintage/daily.html b/tpl/vintage/daily.html index ede35910..71d84475 100644 --- a/tpl/vintage/daily.html +++ b/tpl/vintage/daily.html | |||
@@ -68,8 +68,12 @@ | |||
68 | <div class="dailyEntryTitle"> | 68 | <div class="dailyEntryTitle"> |
69 | <a href="{$link.real_url}">{$link.title}</a> | 69 | <a href="{$link.real_url}">{$link.title}</a> |
70 | </div> | 70 | </div> |
71 | {if="$link.thumbnail"} | 71 | {if="$thumbnails_enabled && !empty($link.thumbnail)"} |
72 | <div class="dailyEntryThumbnail">{$link.thumbnail}</div> | 72 | <div class="dailyEntryThumbnail"> |
73 | <img data-src="{$link.thumbnail}#" class="b-lazy" | ||
74 | src="" | ||
75 | alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" /> | ||
76 | </div> | ||
73 | {/if} | 77 | {/if} |
74 | <div class="dailyEntryDescription">{$link.formatedDescription}</div> | 78 | <div class="dailyEntryDescription">{$link.formatedDescription}</div> |
75 | 79 | ||
@@ -97,5 +101,6 @@ | |||
97 | <div id="closing"><img src="img/squiggle_closing.png" width="66" height="61" alt="-"></div> | 101 | <div id="closing"><img src="img/squiggle_closing.png" width="66" height="61" alt="-"></div> |
98 | </div> | 102 | </div> |
99 | {include="page.footer"} | 103 | {include="page.footer"} |
104 | <script src="js/thumbnails.min.js?v={$version_hash}"></script> | ||
100 | </body> | 105 | </body> |
101 | </html> | 106 | </html> |
diff --git a/tpl/vintage/dailyrss.html b/tpl/vintage/dailyrss.html index ddbd6c5e..f589b06e 100644 --- a/tpl/vintage/dailyrss.html +++ b/tpl/vintage/dailyrss.html | |||
@@ -4,11 +4,11 @@ | |||
4 | <link>{$absurl}</link> | 4 | <link>{$absurl}</link> |
5 | <pubDate>{$rssdate}</pubDate> | 5 | <pubDate>{$rssdate}</pubDate> |
6 | <description><![CDATA[ | 6 | <description><![CDATA[ |
7 | {loop="$links"} | 7 | {loop="links"} |
8 | <h3><a href="{$value.url}">{$value.title}</a></h3> | 8 | <h3><a href="{$value.url}">{$value.title}</a></h3> |
9 | <small>{if="!$hide_timestamps"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br> | 9 | <small>{if="!$hide_timestamps"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br> |
10 | {$value.url}</small><br> | 10 | {$value.url}</small><br> |
11 | {if="$value.thumbnail"}{$value.thumbnail}{/if}<br> | 11 | {if="$value.thumbnail"}<img src="{$index_url}{$value.thumbnail}#" alt="thumbnail" />{/if}<br> |
12 | {if="$value.description"}{$value.formatedDescription}{/if} | 12 | {if="$value.description"}{$value.formatedDescription}{/if} |
13 | <br><br><hr> | 13 | <br><br><hr> |
14 | {/loop} | 14 | {/loop} |
diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 410b466b..2efb6b10 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html | |||
@@ -12,3 +12,23 @@ | |||
12 | {/loop} | 12 | {/loop} |
13 | {if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if} | 13 | {if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if} |
14 | <link rel="search" type="application/opensearchdescription+xml" href="?do=opensearch#" title="Shaarli search - {$shaarlititle|htmlspecialchars}"/> | 14 | <link rel="search" type="application/opensearchdescription+xml" href="?do=opensearch#" title="Shaarli search - {$shaarlititle|htmlspecialchars}"/> |
15 | {if="! empty($links) && count($links) === 1"} | ||
16 | {$link=reset($links)} | ||
17 | <meta property="og:title" content="{$link.title}" /> | ||
18 | <meta property="og:type" content="article" /> | ||
19 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | ||
20 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | ||
21 | <meta property="og:description" content="{function="mb_substr(strip_tags($ogDescription), 0, 300)"}" /> | ||
22 | {if="$link.thumbnail"} | ||
23 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | ||
24 | {/if} | ||
25 | {if="!$hide_timestamps || $is_logged_in"} | ||
26 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | ||
27 | {if="$link.updated"} | ||
28 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | ||
29 | {/if} | ||
30 | {/if} | ||
31 | {loop="link.taglist"} | ||
32 | <meta property="article:tag" content="{$value}" /> | ||
33 | {/loop} | ||
34 | {/if} | ||
diff --git a/tpl/vintage/linklist.html b/tpl/vintage/linklist.html index 1ca51be3..dcb14e90 100644 --- a/tpl/vintage/linklist.html +++ b/tpl/vintage/linklist.html | |||
@@ -80,7 +80,16 @@ | |||
80 | {loop="$links"} | 80 | {loop="$links"} |
81 | <li{if="$value.class"} class="{$value.class}"{/if}> | 81 | <li{if="$value.class"} class="{$value.class}"{/if}> |
82 | <a id="{$value.shorturl}"></a> | 82 | <a id="{$value.shorturl}"></a> |
83 | <div class="thumbnail">{$value.url|thumbnail}</div> | 83 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} |
84 | <div class="thumbnail"> | ||
85 | <a href="{$value.real_url}"> | ||
86 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} | ||
87 | <img data-src="{$value.thumbnail}#" class="b-lazy" | ||
88 | src="" | ||
89 | alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" /> | ||
90 | </a> | ||
91 | </div> | ||
92 | {/if} | ||
84 | <div class="linkcontainer"> | 93 | <div class="linkcontainer"> |
85 | {if="$is_logged_in"} | 94 | {if="$is_logged_in"} |
86 | <div class="linkeditbuttons"> | 95 | <div class="linkeditbuttons"> |
@@ -145,6 +154,7 @@ | |||
145 | </div> | 154 | </div> |
146 | 155 | ||
147 | {include="page.footer"} | 156 | {include="page.footer"} |
157 | <script src="js/thumbnails.min.js"></script> | ||
148 | 158 | ||
149 | </body> | 159 | </body> |
150 | </html> | 160 | </html> |
diff --git a/tpl/vintage/picwall.html b/tpl/vintage/picwall.html index 29688914..b3a16791 100644 --- a/tpl/vintage/picwall.html +++ b/tpl/vintage/picwall.html | |||
@@ -15,7 +15,11 @@ | |||
15 | <div id="picwall_container"> | 15 | <div id="picwall_container"> |
16 | {loop="$linksToDisplay"} | 16 | {loop="$linksToDisplay"} |
17 | <div class="picwall_pictureframe"> | 17 | <div class="picwall_pictureframe"> |
18 | {$value.thumbnail}<a href="{$value.real_url}"><span class="info">{$value.title}</span></a> | 18 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} |
19 | <img data-src="{$value.thumbnail}#" class="b-lazy" | ||
20 | src="" | ||
21 | alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" /> | ||
22 | <a href="{$value.real_url}"><span class="info">{$value.title}</span></a> | ||
19 | {loop="$value.picwall_plugin"} | 23 | {loop="$value.picwall_plugin"} |
20 | {$value} | 24 | {$value} |
21 | {/loop} | 25 | {/loop} |
@@ -34,6 +38,6 @@ | |||
34 | 38 | ||
35 | {include="page.footer"} | 39 | {include="page.footer"} |
36 | 40 | ||
37 | <script src="js/picwall.min.js"></script> | 41 | <script src="js/thumbnails.min.js"></script> |
38 | </body> | 42 | </body> |
39 | </html> | 43 | </html> |
diff --git a/tpl/vintage/thumbnails.html b/tpl/vintage/thumbnails.html new file mode 100644 index 00000000..79aebf8d --- /dev/null +++ b/tpl/vintage/thumbnails.html | |||
@@ -0,0 +1,28 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head>{include="includes"}</head> | ||
4 | <body> | ||
5 | <div id="pageheader"> | ||
6 | {include="page.header"} | ||
7 | </div> | ||
8 | |||
9 | <div class="center thumbnails-update-container"> | ||
10 | <div class="thumbnail-placeholder" style="width: {$thumbnails_width}px; height: {$thumbnails_height}px;"></div> | ||
11 | |||
12 | <div class="thumbnail-link-title"></div> | ||
13 | |||
14 | <div class="progressbar"> | ||
15 | <div></div> | ||
16 | </div> | ||
17 | |||
18 | <div class="progress-counter"> | ||
19 | <span class="progress-current">0</span> / <span class="progress-total">{$ids|count}</span> | ||
20 | </div> | ||
21 | </div> | ||
22 | |||
23 | <input type="hidden" name="ids" value="{function="implode($ids, ',')"}" /> | ||
24 | |||
25 | {include="page.footer"} | ||
26 | <script src="js/thumbnails_update.min.js?v={$version_hash}"></script> | ||
27 | </body> | ||
28 | </html> | ||
diff --git a/tpl/vintage/tools.html b/tpl/vintage/tools.html index 3194844a..1cef726e 100644 --- a/tpl/vintage/tools.html +++ b/tpl/vintage/tools.html | |||
@@ -55,13 +55,6 @@ | |||
55 | </span> | 55 | </span> |
56 | </a><br><br> | 56 | </a><br><br> |
57 | 57 | ||
58 | {if="$sslenabled"} | ||
59 | <a class="smallbutton" onclick="activateFirefoxSocial(this)"><b>✚Add to Firefox social</b></a> | ||
60 | <a href="#"> | ||
61 | <span>⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.</span> | ||
62 | </a><br><br> | ||
63 | {/if} | ||
64 | |||
65 | {loop="$tools_plugin"} | 58 | {loop="$tools_plugin"} |
66 | {$value} | 59 | {$value} |
67 | {/loop} | 60 | {/loop} |
@@ -69,31 +62,6 @@ | |||
69 | <div class="clear"></div> | 62 | <div class="clear"></div> |
70 | 63 | ||
71 | <script> | 64 | <script> |
72 | {if="$sslenabled"} | ||
73 | function activateFirefoxSocial(node) { | ||
74 | var loc = location.href; | ||
75 | var baseURL = loc.substring(0, loc.lastIndexOf("/")); | ||
76 | |||
77 | // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. | ||
78 | var data = { | ||
79 | name: "{$shaarlititle}", | ||
80 | description: "The personal, minimalist, super-fast, no-database delicious clone.", | ||
81 | author: "Shaarli", | ||
82 | version: "1.0.0", | ||
83 | |||
84 | iconURL: baseURL + "/img/favicon.ico", | ||
85 | icon32URL: baseURL + "/img/favicon.ico", | ||
86 | icon64URL: baseURL + "/img/favicon.ico", | ||
87 | |||
88 | shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", | ||
89 | homepageURL: baseURL | ||
90 | }; | ||
91 | node.setAttribute("data-service", JSON.stringify(data)); | ||
92 | |||
93 | var activate = new CustomEvent("ActivateSocialFeature"); | ||
94 | node.dispatchEvent(activate); | ||
95 | } | ||
96 | {/if} | ||
97 | function alertBookmarklet() { | 65 | function alertBookmarklet() { |
98 | alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...'); | 66 | alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...'); |
99 | return false; | 67 | return false; |