diff options
author | Florian Eula <eula.florian@gmail.com> | 2014-11-21 21:31:21 +0100 |
---|---|---|
committer | Florian Eula <mr.pikzen@gmail.com> | 2015-02-07 03:21:30 +0100 |
commit | ed5b38ddd249c0e50eec7e06e74c9d1c2e864dab (patch) | |
tree | 03fb842729fefa0ab23faefb1b9830598ea2cc06 /tpl/configure.html | |
parent | 7d0a0d8a7adf11b5ed41248d35645fc350b85f55 (diff) | |
download | Shaarli-ed5b38ddd249c0e50eec7e06e74c9d1c2e864dab.tar.gz Shaarli-ed5b38ddd249c0e50eec7e06e74c9d1c2e864dab.tar.zst Shaarli-ed5b38ddd249c0e50eec7e06e74c9d1c2e864dab.zip |
Feature: enable/disable permalinks for RSS
The option to see the shortlinks or permalinks has been added to the configuration panel. It is a simple checkbox
This option is disabled by default (meaning that shortlinks are the default)
Updated writeConfig() to save this option
Also fixed a slight typo in config.html.
Removed useless CSS & fixed a comment
Enabled permalinks for the ATOM feed and fixed the isPermaLink attribute for the <guid> tag
Reverted to default behavior and clarified its meaning
EnableRssPermalinks is an oddly behaving option: when enabled, it shows a
permalink in the description and a full link in the element title, and
swaps it around when disabled. This clarifies the option for end-users
Also, moved enable_rss_permalinks to $GLOBALS['config'] because it is a
config option.
fix indent
Diffstat (limited to 'tpl/configure.html')
-rw-r--r-- | tpl/configure.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tpl/configure.html b/tpl/configure.html index 89e48bd1..c096018b 100644 --- a/tpl/configure.html +++ b/tpl/configure.html | |||
@@ -21,8 +21,14 @@ | |||
21 | <tr><td><b>Features:</b></td><td> | 21 | <tr><td><b>Features:</b></td><td> |
22 | <input type="checkbox" name="disablejquery" id="disablejquery" {if="!empty($GLOBALS['disablejquery'])"}checked{/if}><label for="disablejquery"> Disable jQuery and all heavy JavaScript (for example: Autocomplete in tags. Useful for slow computers.)</label> | 22 | <input type="checkbox" name="disablejquery" id="disablejquery" {if="!empty($GLOBALS['disablejquery'])"}checked{/if}><label for="disablejquery"> Disable jQuery and all heavy JavaScript (for example: Autocomplete in tags. Useful for slow computers.)</label> |
23 | </td></tr> | 23 | </td></tr> |
24 | <tr><td><b>New link:</b></td><td> | 24 | <tr><td valign="top"><b>New link:</b></td><td> |
25 | <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault" {if="!empty($GLOBALS['privateLinkByDefault'])"}checked{/if}/><label for="privateLinkByDefault"> All new link are private by default</label></td> | 25 | <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault" {if="!empty($GLOBALS['privateLinkByDefault'])"}checked{/if}/><label for="privateLinkByDefault"> All new links are private by default</label></td> |
26 | </tr> | ||
27 | <tr> | ||
28 | <td valign="top"><b>Enable RSS Permalinks</b></td> | ||
29 | <td> | ||
30 | <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks" {if="!empty($GLOBALS['config']['ENABLE_RSS_PERMALINKS'])"}checked{/if}/><label for="enableRssPermalinks"> Switches the RSS feed URLs between full URLs and shortlinks. Enabling it will show a permalink in the description, and the feed item will be linked to the absolute URL. Disabling it swaps this behaviour around (permalink in title and link in description). RSS Permalinks are currently <b>{if="$GLOBALS['config']['ENABLE_RSS_PERMALINKS']"}enabled{else}disabled{/if}</b></label> | ||
31 | </td> | ||
26 | </tr> | 32 | </tr> |
27 | <tr><td></td><td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr> | 33 | <tr><td></td><td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr> |
28 | </table> | 34 | </table> |
@@ -30,4 +36,4 @@ | |||
30 | </div> | 36 | </div> |
31 | {include="page.footer"} | 37 | {include="page.footer"} |
32 | </body> | 38 | </body> |
33 | </html> \ No newline at end of file | 39 | </html> |