summaryrefslogtreecommitdiff
path: root/app/views/configure/display.phtml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-02-24 19:51:57 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-02-24 19:51:57 -0500
commit1e105a64ab12b37f55b605a89e869f7bbb520e95 (patch)
tree24d3161f22e616b40da5e58a6f2cc20fc6533405 /app/views/configure/display.phtml
parent166009f3623213249086038f7af72a76507f60dc (diff)
Add a configuration option to get sticky articles
Now the user can choose if an opened article will be repositioned to the top or not See #338
Diffstat (limited to 'app/views/configure/display.phtml')
-rw-r--r--app/views/configure/display.phtml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 9104e4ef1..846db4b4c 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -111,6 +111,16 @@
</div>
<div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="sticky_post">
+ <input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?php echo $this->conf->sticky_post ? ' checked="checked"' : ''; ?> />
+ <?php echo Minz_Translate::t ('sticky_post'); ?>
+ <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
+ </label>
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
<div class="group-controls">
<label class="checkbox" for="check_open_article">