display.phtml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php $this->partial('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
  4. <form method="post" action="<?= _url('configure', 'display') ?>">
  5. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  6. <legend><?= _t('conf.display') ?></legend>
  7. <div class="form-group">
  8. <label class="group-name" for="language"><?= _t('conf.display.language') ?></label>
  9. <div class="group-controls">
  10. <select name="language" id="language" data-leave-validation="<?= FreshRSS_Context::$user_conf->language ?>">
  11. <?php $languages = Minz_Translate::availableLanguages(); ?>
  12. <?php foreach ($languages as $lang) { ?>
  13. <option value="<?= $lang ?>"<?= FreshRSS_Context::$user_conf->language === $lang ? ' selected="selected"' : '' ?>><?= _t('gen.lang.' . $lang) ?></option>
  14. <?php } ?>
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="group-name" for="theme"><?= _t('conf.display.theme') ?></label>
  20. <div class="group-controls">
  21. <ul class="slides">
  22. <?php $slides = count($this->themes); $i = 1; ?>
  23. <?php foreach($this->themes as $theme) { ?>
  24. <input type="radio" name="theme" id="img-<?= $i ?>" <?php if (FreshRSS_Context::$user_conf->theme === $theme['id']) {echo "checked";}?> value="<?= $theme['id'] ?>" data-leave-validation="<?= (FreshRSS_Context::$user_conf->theme === $theme['id']) ? 1 : 0 ?>"/>
  25. <li class="slide-container">
  26. <div class="slide">
  27. <img src="<?= Minz_Url::display('/themes/' . $theme['id'] . '/thumbs/original.png') ?>"/>
  28. </div>
  29. <div class="nav">
  30. <?php if ($i !== 1) {?>
  31. <label for="img-<?= $i - 1 ?>" class="prev">&#x2039;</label>
  32. <?php } ?>
  33. <?php if ($i !== $slides) {?>
  34. <label for="img-<?= $i + 1 ?>" class="next">&#x203a;</label>
  35. <?php } ?>
  36. </div>
  37. <div class="properties">
  38. <div><?= sprintf('%s — %s %s', $theme['name'], _t('gen.short.by_author'), $theme['author']) ?></div>
  39. <div><?= $theme['description'] ?></div>
  40. <div class="page-number"><?= sprintf('%d/%d', $i, $slides) ?></div>
  41. </div>
  42. </li>
  43. <?php $i++ ?>
  44. <?php } ?>
  45. </ul>
  46. </div>
  47. </div>
  48. <?php $width = FreshRSS_Context::$user_conf->content_width; ?>
  49. <div class="form-group">
  50. <label class="group-name" for="content_width"><?= _t('conf.display.width.content') ?></label>
  51. <div class="group-controls">
  52. <select name="content_width" id="content_width" required="" data-leave-validation="<?= $width ?>">
  53. <option value="thin" <?= $width === 'thin'? 'selected="selected"' : '' ?>>
  54. <?= _t('conf.display.width.thin') ?>
  55. </option>
  56. <option value="medium" <?= $width === 'medium'? 'selected="selected"' : '' ?>>
  57. <?= _t('conf.display.width.medium') ?>
  58. </option>
  59. <option value="large" <?= $width === 'large'? 'selected="selected"' : '' ?>>
  60. <?= _t('conf.display.width.large') ?>
  61. </option>
  62. <option value="no_limit" <?= $width === 'no_limit'? 'selected="selected"' : '' ?>>
  63. <?= _t('conf.display.width.no_limit') ?>
  64. </option>
  65. </select>
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="group-name"><?= _t('conf.display.icon.entry') ?></label>
  70. <table>
  71. <thead>
  72. <tr>
  73. <th> </th>
  74. <th title="<?= _t('gen.action.mark_read') ?>"><?= _i('read') ?></th>
  75. <th title="<?= _t('gen.action.mark_favorite') ?>"><?= _i('bookmark') ?></th>
  76. <th><?= _t('conf.display.icon.related_tags') ?></th>
  77. <th><?= _t('conf.display.icon.sharing') ?></th>
  78. <th><?= _t('conf.display.icon.display_authors') ?></th>
  79. <th><?= _t('conf.display.icon.publication_date') ?></th>
  80. <th><?= _i('link') ?></th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. <tr>
  85. <th><?= _t('conf.display.icon.top_line') ?></th>
  86. <td><input type="checkbox" name="topline_read" value="1"<?= FreshRSS_Context::$user_conf->topline_read ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_read ?>"/></td>
  87. <td><input type="checkbox" name="topline_favorite" value="1"<?= FreshRSS_Context::$user_conf->topline_favorite ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_favorite ?>"/></td>
  88. <td><input type="checkbox" disabled="disabled" /></td>
  89. <td><input type="checkbox" disabled="disabled" /></td>
  90. <td><input type="checkbox" name="topline_display_authors" value="1"<?= FreshRSS_Context::$user_conf->topline_display_authors ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_display_authors ?>"/></td>
  91. <td><input type="checkbox" name="topline_date" value="1"<?= FreshRSS_Context::$user_conf->topline_date ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_date ?>"/></td>
  92. <td><input type="checkbox" name="topline_link" value="1"<?= FreshRSS_Context::$user_conf->topline_link ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_link ?>"/></td>
  93. </tr><tr>
  94. <th><?= _t('conf.display.icon.bottom_line') ?></th>
  95. <td><input type="checkbox" name="bottomline_read" value="1"<?= FreshRSS_Context::$user_conf->bottomline_read ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_read ?>"/></td>
  96. <td><input type="checkbox" name="bottomline_favorite" value="1"<?= FreshRSS_Context::$user_conf->bottomline_favorite ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_favorite ?>"/></td>
  97. <td><input type="checkbox" name="bottomline_tags" value="1"<?= FreshRSS_Context::$user_conf->bottomline_tags ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_tags ?>"/></td>
  98. <td><input type="checkbox" name="bottomline_sharing" value="1"<?= FreshRSS_Context::$user_conf->bottomline_sharing ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_sharing ?>"/></td>
  99. <td><input type="checkbox" disabled="disabled" /></td>
  100. <td><input type="checkbox" name="bottomline_date" value="1"<?= FreshRSS_Context::$user_conf->bottomline_date ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_date ?>"/></td>
  101. <td><input type="checkbox" name="bottomline_link" value="1"<?= FreshRSS_Context::$user_conf->bottomline_link ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_link ?>"/></td>
  102. </tr>
  103. </tbody>
  104. </table><br />
  105. </div>
  106. <div class="form-group">
  107. <label class="group-name" for="html5_notif_timeout"><?= _t('conf.display.notif_html5.timeout') ?></label>
  108. <div class="group-controls">
  109. <input type="number" id="html5_notif_timeout" name="html5_notif_timeout" value="<?= FreshRSS_Context::$user_conf->html5_notif_timeout ?>" data-leave-validation="<?= FreshRSS_Context::$user_conf->html5_notif_timeout ?>"/> <?= _t('conf.display.notif_html5.seconds') ?>
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <div class="group-controls">
  114. <label class="checkbox" for="show_nav_buttons">
  115. <input type="checkbox" name="show_nav_buttons" id="show_nav_buttons" value="1"<?= FreshRSS_Context::$user_conf->show_nav_buttons ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->show_nav_buttons ?>"/>
  116. <?= _t('conf.display.show_nav_buttons') ?>
  117. </label>
  118. </div>
  119. </div>
  120. <div class="form-group form-actions">
  121. <div class="group-controls">
  122. <button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
  123. <button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
  124. </div>
  125. </div>
  126. </form>
  127. </div>