aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-18 21:48:24 +0200
committerArthurHoaro <arthur@hoa.ro>2016-06-11 09:30:56 +0200
commit684e662a58b02bde225e44d3677987b6fc3adf0b (patch)
treedb0d4ca1d9b53341cc108b0e7671ffde0e9caee9 /tpl
parent59404d7909b21682ec0782778452a8a70e38b25e (diff)
downloadShaarli-684e662a58b02bde225e44d3677987b6fc3adf0b.tar.gz
Shaarli-684e662a58b02bde225e44d3677987b6fc3adf0b.tar.zst
Shaarli-684e662a58b02bde225e44d3677987b6fc3adf0b.zip
Replace $GLOBALS configuration with the configuration manager in the whole code base
Diffstat (limited to 'tpl')
-rw-r--r--tpl/configure.html8
-rw-r--r--tpl/page.header.html4
2 files changed, 6 insertions, 6 deletions
diff --git a/tpl/configure.html b/tpl/configure.html
index b7f87c68..f99fa45b 100644
--- a/tpl/configure.html
+++ b/tpl/configure.html
@@ -47,7 +47,7 @@
47 <td valign="top"><b>New link:</b></td> 47 <td valign="top"><b>New link:</b></td>
48 <td> 48 <td>
49 <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault" 49 <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
50 {if="!empty($GLOBALS['privateLinkByDefault'])"}checked{/if}/> 50 {if="$private_links_default"}checked{/if}/>
51 <label for="privateLinkByDefault"> 51 <label for="privateLinkByDefault">
52 &nbsp;All new links are private by default 52 &nbsp;All new links are private by default
53 </label> 53 </label>
@@ -57,7 +57,7 @@
57 <td valign="top"><b>RSS direct links</b></td> 57 <td valign="top"><b>RSS direct links</b></td>
58 <td> 58 <td>
59 <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks" 59 <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
60 {if="!empty($GLOBALS['config']['ENABLE_RSS_PERMALINKS'])"}checked{/if}/> 60 {if="$enable_rss_permalinks"}checked{/if}/>
61 <label for="enableRssPermalinks"> 61 <label for="enableRssPermalinks">
62 &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b> 62 &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
63 {if="$GLOBALS['config']['ENABLE_RSS_PERMALINKS']"}enabled{else}disabled{/if}.</b> 63 {if="$GLOBALS['config']['ENABLE_RSS_PERMALINKS']"}enabled{else}disabled{/if}.</b>
@@ -68,7 +68,7 @@
68 <td valign="top"><b>Hide public links</b></td> 68 <td valign="top"><b>Hide public links</b></td>
69 <td> 69 <td>
70 <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks" 70 <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
71 {if="!empty($GLOBALS['config']['HIDE_PUBLIC_LINKS'])"}checked{/if}/> 71 {if="$hide_public_links"}checked{/if}/>
72 <label for="hidePublicLinks">&nbsp;Do not show any links if the user is not logged in.</label> 72 <label for="hidePublicLinks">&nbsp;Do not show any links if the user is not logged in.</label>
73 </td> 73 </td>
74 </tr> 74 </tr>
@@ -76,7 +76,7 @@
76 <td valign="top"><b>Update:</b></td> 76 <td valign="top"><b>Update:</b></td>
77 <td> 77 <td>
78 <input type="checkbox" name="updateCheck" id="updateCheck" 78 <input type="checkbox" name="updateCheck" id="updateCheck"
79 {if="!empty($GLOBALS['config']['ENABLE_UPDATECHECK'])"}checked{/if}/> 79 {if="$enable_update_check"}checked{/if}/>
80 <label for="updateCheck">&nbsp;Notify me when a new release is ready</label> 80 <label for="updateCheck">&nbsp;Notify me when a new release is ready</label>
81 </td> 81 </td>
82 </tr> 82 </tr>
diff --git a/tpl/page.header.html b/tpl/page.header.html
index 3a09ecd9..0012c689 100644
--- a/tpl/page.header.html
+++ b/tpl/page.header.html
@@ -21,14 +21,14 @@
21 <li><a href="?do=logout">Logout</a></li> 21 <li><a href="?do=logout">Logout</a></li>
22 <li><a href="?do=tools">Tools</a></li> 22 <li><a href="?do=tools">Tools</a></li>
23 <li><a href="?do=addlink">Add link</a></li> 23 <li><a href="?do=addlink">Add link</a></li>
24 {elseif="$GLOBALS['config']['OPEN_SHAARLI']"} 24 {elseif="$openshaarli"}
25 <li><a href="?do=tools">Tools</a></li> 25 <li><a href="?do=tools">Tools</a></li>
26 <li><a href="?do=addlink">Add link</a></li> 26 <li><a href="?do=addlink">Add link</a></li>
27 {else} 27 {else}
28 <li><a href="?do=login">Login</a></li> 28 <li><a href="?do=login">Login</a></li>
29 {/if} 29 {/if}
30 <li><a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a></li> 30 <li><a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a></li>
31 {if="$GLOBALS['config']['SHOW_ATOM']"} 31 {if="$showatom"}
32 <li><a href="{$feedurl}?do=atom{$searchcrits}" class="nomobile">ATOM Feed</a></li> 32 <li><a href="{$feedurl}?do=atom{$searchcrits}" class="nomobile">ATOM Feed</a></li>
33 {/if} 33 {/if}
34 <li><a href="?do=tagcloud">Tag cloud</a></li> 34 <li><a href="?do=tagcloud">Tag cloud</a></li>