index.php 539 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /* For license terms, see /license.txt */
  3. $plugin = KeycloakPlugin::create();
  4. $content = $plugin->get_content();
  5. $title = $plugin->get_block_title();
  6. $title = $title ? "<h4>$title</h4>" : '';
  7. $css = $plugin->get_css();
  8. $css = $css ? "<style type=\"text/css\" scoped=\"scoped\">$css</style>" : '';
  9. if (empty($content)) {
  10. echo '';
  11. }
  12. echo <<<EOT
  13. <div class="well sidebar-nav static">
  14. $css
  15. <div class="menusection">
  16. $title
  17. <div class="content">
  18. $content
  19. </div>
  20. </div>
  21. </div>
  22. EOT;