diff options
| author | 2014-06-05 22:26:18 +0200 | |
|---|---|---|
| committer | 2014-06-05 22:26:18 +0200 | |
| commit | b8f53b052592d3729bdc88936bad5f4e2da78dfe (patch) | |
| tree | 8b0b76b29439ce6882eabf633353d6dcbe4237f2 /app/views/helpers/view | |
| parent | 5ea82076faddbdf6b34d20332507779de3c71ae3 (diff) | |
Add an option to choose content width
- 4 options: thin, medium, large and no limit
- Thin is by default
Diffstat (limited to 'app/views/helpers/view')
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 4 | ||||
| -rw-r--r-- | app/views/helpers/view/reader_view.phtml | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index b5cdd3039..6f172d579 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -24,6 +24,8 @@ if (!empty($this->entries)) { $bottomline_tags = $this->conf->bottomline_tags; $bottomline_date = $this->conf->bottomline_date; $bottomline_link = $this->conf->bottomline_link; + + $content_width = $this->conf->content_width; ?> <div id="stream" class="normal<?php echo $hidePosts ? ' hide_posts' : ''; ?>"><?php @@ -87,7 +89,7 @@ if (!empty($this->entries)) { </ul> <div class="flux_content"> - <div class="content"> + <div class="content <?php echo $content_width; ?>"> <h1 class="title"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo $item->title (); ?></a></h1> <?php $author = $item->author (); diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/helpers/view/reader_view.phtml index bda96e86d..e37c78cb4 100644 --- a/app/views/helpers/view/reader_view.phtml +++ b/app/views/helpers/view/reader_view.phtml @@ -3,6 +3,7 @@ $this->partial ('nav_menu'); if (!empty($this->entries)) { $lazyload = $this->conf->lazyload; + $content_width = $this->conf->content_width; ?> <div id="stream" class="reader"> @@ -10,7 +11,7 @@ if (!empty($this->entries)) { <div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>"> <div class="flux_content"> - <div class="content"> + <div class="content <?php echo $content_width; ?>"> <?php $feed = FreshRSS_CategoryDAO::findFeed($this->cat_aside, $item->feed ()); //We most likely already have the feed object in cache if (empty($feed)) $feed = $item->feed (true); |
