index.php 494 B

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