details.phtml 1.3 KB

123456789101112131415161718192021
  1. <ul class="horizontal-list">
  2. <li class="item">
  3. <?php if ($this->ext_details->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) { ?>
  4. <?php $name_encoded = urlencode($this->ext_details->getName()); ?>
  5. <div class="stick">
  6. <a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a>
  7. <?php if ($this->ext_details->isEnabled()) { ?>
  8. <button class="btn active" form="form-extension" formaction="<?php echo _url('extension', 'disable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.disable'); ?></button>
  9. <?php } else { ?>
  10. <button class="btn" form="form-extension" formaction="<?php echo _url('extension', 'enable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.enable'); ?></button>
  11. <?php } ?>
  12. <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
  13. <button class="btn btn-attention confirm" form="form-extension" formaction="<?php echo _url('extension', 'remove', 'e', $name_encoded); ?>"><?php echo _t('gen.action.remove'); ?></button>
  14. <?php } ?>
  15. </div>
  16. <?php } else { ?>
  17. <?php echo _t('admin.extensions.system.no_rights'); ?>
  18. <?php } ?>
  19. </li>
  20. <li class="item"><?php echo $this->ext_details->getName(); ?></li>
  21. </ul>