diff options
| author | 2013-08-07 11:46:55 +0200 | |
|---|---|---|
| committer | 2013-08-07 11:46:55 +0200 | |
| commit | abb25a58dc8668c6716c419c99b215536861057a (patch) | |
| tree | 37be666df9383f447e84cfc29fa840e60678bebb /app/views | |
| parent | f6d730f9d1ce7957001bd981f04b32d67ebb44e6 (diff) | |
Fix issue #86 : possibilité de changer de thème
Désormais il est possible de créer des thèmes. Le thème peut être changé
sur la page de configuration. Les thèmes sont détectés grâce à un
fichier metadata.json détaillant le nom du thème, son auteur, une petite
description et une version.
Un nouveau thème "Flat design" a été ajouté et est pleinement
fonctionnel
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/configure/display.phtml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index f8e94c0f2..2516f2692 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -41,6 +41,19 @@ <legend><?php echo Translate::t ('reading_configuration'); ?></legend> <div class="form-group"> + <label class="group-name" for="theme"><?php echo Translate::t ('themes'); ?></label> + <div class="group-controls"> + <select name="theme" id="theme"> + <?php foreach ($this->themes as $theme) { ?> + <option value="<?php echo $theme['path']; ?>"<?php echo $this->conf->theme () == $theme['path'] ? ' selected="selected"' : ''; ?>> + <?php echo $theme['name'] . ' ' . Translate::t ('by') . ' ' . $theme['author']; ?> + </option> + <?php } ?> + </select> + </div> + </div> + + <div class="form-group"> <label class="group-name" for="posts_per_page"><?php echo Translate::t ('articles_per_page'); ?></label> <div class="group-controls"> <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" /> |
