intro.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Quick introduction to the theme sandbox
  4. *
  5. * @todo links to resources?
  6. */
  7. ?>
  8. <p>This theme sandbox provides a visual catalog for many of the theming elements
  9. that Elgg uses. The primary css selector is listed with each theme element.
  10. The sandbox is divided into sections that are listed in the sidebar.
  11. </p>
  12. <?php
  13. $simple_cache = elgg_get_config('simplecache_enabled');
  14. $system_cache = elgg_get_config('system_cache_enabled');
  15. if ($simple_cache || $system_cache) {
  16. $advanced = elgg_view('output/url', array(
  17. 'text' => 'Advanced Settings',
  18. 'href' => 'admin/settings/advanced',
  19. 'is_trusted' => true
  20. ));
  21. $developers = elgg_view('output/url', array(
  22. 'text' => 'Developers\' Plugin Settings',
  23. 'href' => 'admin/developers/settings',
  24. 'is_trusted' => true
  25. ));
  26. $body = "Caches are enabled. Changes you make to CSS and views might not appear. It is
  27. always recommended to disable caches while developing themes and plugins. To
  28. disable caches, visit the $advanced or $developers pages.";
  29. echo elgg_view_module('info', 'Warning', $body);
  30. }
  31. ?>
  32. <p>
  33. <?php
  34. echo elgg_view('output/url', array(
  35. 'text' => elgg_echo('theme_sandbox:breakout'),
  36. 'href' => current_page_url(),
  37. 'target' => '_parent',
  38. 'is_trusted' => true,
  39. ));
  40. ?>
  41. </p>