configure.phtml 1.2 KB

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