plugin.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php'; ?>
  2. <?php if (!$myUser->connected()) {
  3. header('location: index.php');
  4. } ?>
  5. <div class="row">
  6. <div class="col-md-12">
  7. <h3>Plugins</h3>
  8. <ul id="plugins" class="list-group">
  9. <li class="list-group-item" style="display:none;" data-id="{{id}}">
  10. <h4 class="list-group-item-heading">{{name}} <span class="label label-info">v{{version}}</span></h4>
  11. <p class="list-group-item-text">{{description}}</p>
  12. <a class="pointer" onclick="$(this).next('ul').slideToggle(200);"><i class="fa fa-search"></i> + d'Infos</a>
  13. <ul style="display:none;">
  14. <li>ID : {{id}}</li>
  15. <li><span class="label label label-default">{{author.name}}</span></li>
  16. <li>Licence: {{#licence.url}}<a href="{{licence.url}}">{{/licence.url}}{{licence.name}}{{#licence.url}}</a>{{/licence.url}}</li>
  17. <li>Version: <code>{{version}}</code></li>
  18. <li>Site web: <a href="{{url}}">{{url}}</a></li>
  19. <li>Dossier: {{folder.path}}</li>
  20. <li>Pré-requis : <ul>{{#require}}<li>{{key}} - <span class="label label-info">{{value}}</span></li>{{/require}}</ul></li>
  21. </ul>
  22. <label class="activator">
  23. <small>On/Off</small>
  24. <label class="toggle">
  25. <input {{#state}}checked=""{{##state}} type="checkbox">
  26. <span class="handle"></span>
  27. </label>
  28. </label>
  29. </li>
  30. </ul>
  31. </div>
  32. </div>
  33. <?php require_once __ROOT__.'footer.php' ?>