configure.phtml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <?php /** @var FreshRSS_View $this */ ?>
  2. <div class="post">
  3. <h2>
  4. <?= $this->extension->getName() ?> (<?= $this->extension->getVersion() ?>) —
  5. <?= $this->extension->isEnabled() ? _t('admin.extensions.enabled') : _t('admin.extensions.disabled') ?>
  6. </h2>
  7. <p class="alert alert-warn"><?= $this->extension->getDescription() ?> — <?= _t('gen.short.by_author'), ' ', $this->extension->getAuthor() ?></p>
  8. <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
  9. <form id="form-extension" method="post">
  10. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  11. <div class="form-group form-actions">
  12. <div class="group-controls">
  13. <button class="btn btn-attention confirm" form="form-extension" formaction="<?= _url('extension', 'remove', 'e', urlencode($this->extension->getName())) ?>"><?= _t('gen.action.remove') ?></button>
  14. </div>
  15. </div>
  16. </form>
  17. <?php } ?>
  18. <h2><?= _t('gen.action.manage') ?></h2>
  19. <?php
  20. $configure_view = $this->extension->getConfigureView();
  21. if ($configure_view !== false) {
  22. echo $configure_view;
  23. } else {
  24. ?>
  25. <p class="alert alert-warn"><?= _t('admin.extensions.no_configure_view') ?></p>
  26. <?php } ?>
  27. </div>