1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- /**
- * Elgg primary CSS view
- *
- * @package Elgg.Core
- * @subpackage UI
- */
- /*
- * Colors:
- * #4690D6 - elgg light blue
- * #0054A7 - elgg dark blue
- * #e4ecf5 - elgg very light blue
- */
- // check if there is a theme overriding the old css view and use it, if it exists
- if (elgg_view_exists('css')) {
- // note: _elgg_services is private API, DO NOT USE.
- $old_css_view = _elgg_services()->views->getViewLocation('css');
- if ($old_css_view != elgg_get_config('viewpath')) {
- echo elgg_view('css', $vars);
- return true;
- }
- }
- /*******************************************************************************
- Base CSS
- * CSS reset
- * core
- * helpers (moved to end to have a higher priority)
- * grid
- *******************************************************************************/
- echo elgg_view('css/elements/reset', $vars);
- echo elgg_view('css/elements/core', $vars);
- echo elgg_view('css/elements/grid', $vars);
- /*******************************************************************************
- Skin CSS
- * typography - fonts, line spacing
- * forms - forms, inputs
- * buttons - action, cancel, delete, submit, dropdown, special
- * navigation - menus, breadcrumbs, pagination
- * icons - icons, sprites, graphics
- * modules - modules, widgets
- * layout_objects - lists, content blocks, notifications, avatars
- * layout - page layout
- * misc - to be removed/redone
- *******************************************************************************/
- echo elgg_view('css/elements/typography', $vars);
- echo elgg_view('css/elements/forms', $vars);
- echo elgg_view('css/elements/buttons', $vars);
- echo elgg_view('css/elements/icons', $vars);
- echo elgg_view('css/elements/navigation', $vars);
- echo elgg_view('css/elements/modules', $vars);
- echo elgg_view('css/elements/components', $vars);
- echo elgg_view('css/elements/layout', $vars);
- echo elgg_view('css/elements/misc', $vars);
- echo elgg_view('css/elements/misc/spinner.css', $vars);
- // included last to have higher priority
- echo elgg_view('css/elements/helpers', $vars);
- // in case plugins are still extending the old 'css' view, display it
- echo elgg_view('css', $vars);
|