From da10377b3c263d96a46cf9101c202554343d2cd0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 29 May 2016 16:10:32 +0200 Subject: Rename configuration keys and fix GLOBALS in templates --- tpl/configure.html | 4 ++-- tpl/daily.html | 2 +- tpl/dailyrss.html | 2 +- tpl/editlink.html | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'tpl') diff --git a/tpl/configure.html b/tpl/configure.html index f99fa45b..ad9a2085 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -36,7 +36,7 @@ Security: + {if="$private_links_default"}checked{/if}> @@ -60,7 +60,7 @@ {if="$enable_rss_permalinks"}checked{/if}/> diff --git a/tpl/daily.html b/tpl/daily.html index 063dc89a..dde1f376 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -53,7 +53,7 @@ permalink - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} + {if="!$hide_timestamps || isLoggedIn()"}
{function="strftime('%c', $link.timestamp)"}
diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html index 4133ca3e..b14a3859 100644 --- a/tpl/dailyrss.html +++ b/tpl/dailyrss.html @@ -6,7 +6,7 @@ {$value.title} - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}
+ {if="!$hide_timestamps"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}
{$value.url}

{if="$value.thumbnail"}{$value.thumbnail}{/if}
{if="$value.description"}{$value.formatedDescription}{/if} diff --git a/tpl/editlink.html b/tpl/editlink.html index 14a2e6c8..441b5302 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -25,7 +25,7 @@ {$value} {/loop} - {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"} + {if="($link_is_new && $default_private_links) || $link.private == true"}  
{else} @@ -43,12 +43,10 @@ {if="$source !== 'firefoxsocialapi'"} {include="page.footer"} {/if} -{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn())"} -{/if} -- cgit v1.2.3