diff options
| author | 2014-11-16 17:59:17 +0100 | |
|---|---|---|
| committer | 2014-11-16 17:59:17 +0100 | |
| commit | 4b374ce991b28d179afaf3e4a02a90cb82affa08 (patch) | |
| tree | 4e0d06303d25b96ccba552c71c24ac1483f251e7 /app | |
| parent | dab266a922be0d27536239d62e9dfef650666e9e (diff) | |
| parent | 91388c5b7602af44894e8283c18ca76b5b06ed43 (diff) | |
Merge pull request #708 from FreshRSS/theme-selector
Theme selection redesign
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/configure/display.phtml | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 69205fa93..1c925a5ca 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -21,17 +21,31 @@ <div class="form-group"> <label class="group-name" for="theme"><?php echo _t('theme'); ?></label> <div class="group-controls"> - <select name="theme" id="theme" required=""><?php - $found = false; - foreach ($this->themes as $theme) { - ?><option value="<?php echo $theme['id']; ?>"<?php if (FreshRSS_Context::$conf->theme === $theme['id']) { echo ' selected="selected"'; $found = true; } ?>><?php - echo $theme['name'] . ' — ' . _t('by') . ' ' . $theme['author']; - ?></option><?php - } - if (!$found) { - ?><option selected="selected"></option><?php - } - ?></select> + <ul class="slides"> + <?php $slides = count($this->themes); $i = 1; ?> + <?php foreach($this->themes as $theme) { ?> + <input type="radio" name="theme" id="img-<?php echo $i ?>" <?php if (FreshRSS_Context::$conf->theme === $theme['id']) {echo "checked";}?> value="<?php echo $theme['id'] ?>"/> + <li class="slide-container"> + <div class="slide"> + <img src="<?php echo Minz_Url::display('/themes/' . $theme['id'] . '/thumbs/original.png')?>"/> + </div> + <div class="nav"> + <?php if ($i !== 1) {?> + <label for="img-<?php echo $i - 1 ?>" class="prev">‹</label> + <?php } ?> + <?php if ($i !== $slides) {?> + <label for="img-<?php echo $i + 1 ?>" class="next">›</label> + <?php } ?> + </div> + <div class="properties"> + <div><?php echo sprintf('%s - %s %s', $theme['name'], _t('by'), $theme['author']) ?></div> + <div><?php echo $theme['description'] ?></div> + <div class="page-number"><?php echo sprintf('%d/%d', $i, $slides) ?></div> + </div> + </li> + <?php $i++ ?> + <?php } ?> + </ul> </div> </div> |
