aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php11
-rw-r--r--tpl/daily.html2
-rw-r--r--tpl/dailyrss.html2
-rw-r--r--tpl/linklist.html4
4 files changed, 8 insertions, 11 deletions
diff --git a/index.php b/index.php
index eb7fd103..83c507bb 100644
--- a/index.php
+++ b/index.php
@@ -1943,13 +1943,11 @@ function buildLinkList($PAGE,$LINKSDB)
1943 $title = $link['title']; 1943 $title = $link['title'];
1944 $taglist = explode(' ',$link['tags']); 1944 $taglist = explode(' ',$link['tags']);
1945 uasort($taglist, 'strcasecmp'); 1945 uasort($taglist, 'strcasecmp');
1946
1947 $classLi = $i%2!=0 ? '' : 'publicLinkHightLight'; // This could really be done with just a css pseudoclass. 1946 $classLi = $i%2!=0 ? '' : 'publicLinkHightLight'; // This could really be done with just a css pseudoclass.
1948 1947 $link['description']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))));
1949 $link['description'] = nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); 1948 $link['class'] = ($link['private']==0 ? $classLi : 'private');
1950 $link['class'] = ($link['private']==0 ? $classLi : 'private'); 1949 $link['timestamp']=linkdate2timestamp($link['linkdate']);
1951 $link['localdate'] = linkdate2locale($link['linkdate']); 1950 $link['taglist']=$taglist;
1952 $link['taglist'] = $taglist;
1953 1951
1954 // Convert notes to absolute URLs 1952 // Convert notes to absolute URLs
1955 if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. 1953 if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this.
@@ -1958,7 +1956,6 @@ function buildLinkList($PAGE,$LINKSDB)
1958 } 1956 }
1959 1957
1960 $linkDisp[$keys[$i]] = $link; 1958 $linkDisp[$keys[$i]] = $link;
1961
1962 $i++; 1959 $i++;
1963 } 1960 }
1964 1961
diff --git a/tpl/daily.html b/tpl/daily.html
index c53e6f71..919795bb 100644
--- a/tpl/daily.html
+++ b/tpl/daily.html
@@ -30,7 +30,7 @@
30 </div> 30 </div>
31 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} 31 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
32 <div class="dailyEntryLinkdate"> 32 <div class="dailyEntryLinkdate">
33 <a href="?{$link.linkdate|smallHash}">{$link.localdate}</a> 33 <a href="?{$link.linkdate|smallHash}">{function="strftime('%c', $link.timestamp)"}</a>
34 </div> 34 </div>
35 {/if} 35 {/if}
36 {if="$link.tags"} 36 {if="$link.tags"}
diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html
index 436e1cd2..a9b11e18 100644
--- a/tpl/dailyrss.html
+++ b/tpl/dailyrss.html
@@ -1,6 +1,6 @@
1{loop="links"} 1{loop="links"}
2 <h3><a href="{$value.url}">{$value.title|htmlspecialchars}</a></h3> 2 <h3><a href="{$value.url}">{$value.title|htmlspecialchars}</a></h3>
3 <small>{if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{$value.localdate|htmlspecialchars} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}<br> 3 <small>{if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}<br>
4 {$value.url|htmlspecialchars}</small><br> 4 {$value.url|htmlspecialchars}</small><br>
5 {if="$value.thumbnail"}{$value.thumbnail}{/if}<br> 5 {if="$value.thumbnail"}{$value.thumbnail}{/if}<br>
6 {if="$value.description"}{$value.formatedDescription}{/if} 6 {if="$value.description"}{$value.formatedDescription}{/if}
diff --git a/tpl/linklist.html b/tpl/linklist.html
index 353eca52..766a80ce 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -44,7 +44,7 @@
44 <br> 44 <br>
45 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if} 45 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
46 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} 46 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
47 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> 47 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span>
48 {else} 48 {else}
49 <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> 49 <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
50 {/if} 50 {/if}
@@ -53,7 +53,7 @@
53 {/if} 53 {/if}
54 <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&amp;s=8&amp;d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}" 54 <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&amp;s=8&amp;d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
55 onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"> 55 onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}">
56 <img src="images/qrcode.png#" alt="QR-Code" title="{$value.localdate|htmlspecialchars}"></a></div> - 56 <img src="images/qrcode.png#" alt="QR-Code" title="{function="strftime('%c', $value.timestamp)"}"></a></div> -
57 <a href="{$value.url|htmlspecialchars}"><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br> 57 <a href="{$value.url|htmlspecialchars}"><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br>
58 {if="$value.tags"} 58 {if="$value.tags"}
59 <div class="linktaglist"> 59 <div class="linktaglist">