Elgg  Version 1.9
elgg.php
Go to the documentation of this file.
1 <?php
9 /*
10  * Colors:
11  * #4690D6 - elgg light blue
12  * #0054A7 - elgg dark blue
13  * #e4ecf5 - elgg very light blue
14  */
15 
16 // check if there is a theme overriding the old css view and use it, if it exists
18 if ($old_css_view != elgg_get_config('viewpath')) {
19  echo elgg_view('css', $vars);
20  return true;
21 }
22 
23 
24 /*******************************************************************************
25 
26 Base CSS
27  * CSS reset
28  * core
29  * helpers (moved to end to have a higher priority)
30  * grid
31 
32 *******************************************************************************/
33 echo elgg_view('css/elements/reset', $vars);
34 echo elgg_view('css/elements/core', $vars);
35 echo elgg_view('css/elements/grid', $vars);
36 
37 
38 /*******************************************************************************
39 
40 Skin CSS
41  * typography - fonts, line spacing
42  * forms - forms, inputs
43  * buttons - action, cancel, delete, submit, dropdown, special
44  * navigation - menus, breadcrumbs, pagination
45  * icons - icons, sprites, graphics
46  * modules - modules, widgets
47  * layout_objects - lists, content blocks, notifications, avatars
48  * layout - page layout
49  * misc - to be removed/redone
50 
51 *******************************************************************************/
52 echo elgg_view('css/elements/typography', $vars);
53 echo elgg_view('css/elements/forms', $vars);
54 echo elgg_view('css/elements/buttons', $vars);
55 echo elgg_view('css/elements/icons', $vars);
56 echo elgg_view('css/elements/navigation', $vars);
57 echo elgg_view('css/elements/modules', $vars);
58 echo elgg_view('css/elements/components', $vars);
59 echo elgg_view('css/elements/layout', $vars);
60 echo elgg_view('css/elements/misc', $vars);
61 
62 
63 // included last to have higher priority
64 echo elgg_view('css/elements/helpers', $vars);
65 
66 
67 // in case plugins are still extending the old 'css' view, display it
68 echo elgg_view('css', $vars);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$old_css_view
Definition: elgg.php:17
elgg_get_view_location($view, $viewtype= '')
Returns the file location for a view.
Definition: views.php:283
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
if(file_exists($welcome)) $vars
Definition: upgrade.php:93