aboutsummaryrefslogtreecommitdiff
path: root/views/default/css/elgg.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-21 02:59:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-21 02:59:33 +0000
commitf26d7d47986222c0f3a4038f7bc8d73c37f8ca4e (patch)
tree07edf3c08f8151f17a9e2fb4a64d3302bf56d7ad /views/default/css/elgg.php
parent0030fe2d63684b6612316b5162d34bfaa5dbfee1 (diff)
downloadelgg-f26d7d47986222c0f3a4038f7bc8d73c37f8ca4e.tar.gz
elgg-f26d7d47986222c0f3a4038f7bc8d73c37f8ca4e.tar.bz2
Fixes #2934 switching to css/elgg for css view since using a print viewtype is a good idea and screen would become a confusing idea
git-svn-id: http://code.elgg.org/elgg/trunk@8383 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/css/elgg.php')
-rw-r--r--views/default/css/elgg.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/views/default/css/elgg.php b/views/default/css/elgg.php
new file mode 100644
index 000000000..300038eb9
--- /dev/null
+++ b/views/default/css/elgg.php
@@ -0,0 +1,56 @@
+<?php
+/**
+ * Elgg primary CSS view
+ *
+ * @package Elgg.Core
+ * @subpackage UI
+ */
+
+// check if there is a theme overriding the old css view and use it, if it exists
+$old_css_view = elgg_get_view_location('css');
+if ($old_css_view != elgg_get_config('viewpath')) {
+ echo elgg_view('css', $vars);
+ return true;
+}
+
+
+/*******************************************************************************
+
+Base CSS
+ * CSS reset
+ * helpers
+ * grid
+
+*******************************************************************************/
+echo elgg_view('css/elements/reset', $vars);
+echo elgg_view('css/elements/helpers', $vars);
+echo elgg_view('css/elements/grid', $vars);
+
+
+/*******************************************************************************
+
+Skin CSS
+ * typography - fonts, line spacing
+ * chrome - general skin
+ * forms - form elements, buttons
+ * navigation - menus, breadcrumbs, pagination
+ * icons - icons, sprites, graphics
+ * modules - modules, widgets
+ * layout_objects - lists, content blocks, notifications, avatars
+ * page_layout - page layout
+ * misc - to be removed/redone
+
+*******************************************************************************/
+echo elgg_view('css/elements/typography', $vars);
+echo elgg_view('css/elements/chrome', $vars);
+echo elgg_view('css/elements/forms', $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/layout_objects', $vars);
+echo elgg_view('css/elements/page_layout', $vars);
+echo elgg_view('css/elements/misc', $vars);
+
+
+// in case plugins are still extending the old 'css' view, display it
+echo elgg_view('css', $vars);