elgg.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * Elgg primary CSS view
  4. *
  5. * @package Elgg.Core
  6. * @subpackage UI
  7. */
  8. /*
  9. * Colors:
  10. * #4690D6 - elgg light blue
  11. * #0054A7 - elgg dark blue
  12. * #e4ecf5 - elgg very light blue
  13. */
  14. // check if there is a theme overriding the old css view and use it, if it exists
  15. if (elgg_view_exists('css')) {
  16. // note: _elgg_services is private API, DO NOT USE.
  17. $old_css_view = _elgg_services()->views->getViewLocation('css');
  18. if ($old_css_view != elgg_get_config('viewpath')) {
  19. echo elgg_view('css', $vars);
  20. return true;
  21. }
  22. }
  23. /*******************************************************************************
  24. Base CSS
  25. * CSS reset
  26. * core
  27. * helpers (moved to end to have a higher priority)
  28. * grid
  29. *******************************************************************************/
  30. echo elgg_view('css/elements/reset', $vars);
  31. echo elgg_view('css/elements/core', $vars);
  32. echo elgg_view('css/elements/grid', $vars);
  33. /*******************************************************************************
  34. Skin CSS
  35. * typography - fonts, line spacing
  36. * forms - forms, inputs
  37. * buttons - action, cancel, delete, submit, dropdown, special
  38. * navigation - menus, breadcrumbs, pagination
  39. * icons - icons, sprites, graphics
  40. * modules - modules, widgets
  41. * layout_objects - lists, content blocks, notifications, avatars
  42. * layout - page layout
  43. * misc - to be removed/redone
  44. *******************************************************************************/
  45. echo elgg_view('css/elements/typography', $vars);
  46. echo elgg_view('css/elements/forms', $vars);
  47. echo elgg_view('css/elements/buttons', $vars);
  48. echo elgg_view('css/elements/icons', $vars);
  49. echo elgg_view('css/elements/navigation', $vars);
  50. echo elgg_view('css/elements/modules', $vars);
  51. echo elgg_view('css/elements/components', $vars);
  52. echo elgg_view('css/elements/layout', $vars);
  53. echo elgg_view('css/elements/misc', $vars);
  54. echo elgg_view('css/elements/misc/spinner.css', $vars);
  55. // included last to have higher priority
  56. echo elgg_view('css/elements/helpers', $vars);
  57. // in case plugins are still extending the old 'css' view, display it
  58. echo elgg_view('css', $vars);