plugin.php 356 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Used to show plugin user settings.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage Plugins
  7. *
  8. */
  9. $plugin = $vars['entity'];
  10. if (!elgg_in_context('admin')) {
  11. echo elgg_view('object/default', $vars);
  12. } else {
  13. if (!$plugin->isValid()) {
  14. echo elgg_view('object/plugin/invalid', $vars);
  15. } else {
  16. echo elgg_view('object/plugin/full', $vars);
  17. }
  18. }