aboutsummaryrefslogtreecommitdiff
path: root/documentation/css/preview/head.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 21:37:01 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 21:37:01 +0000
commit22d64456008cd8d2aaab35f6d8005cc112d93567 (patch)
treeed13a00b35b97bdcf18be5df30d83ddc03766677 /documentation/css/preview/head.php
parent7f0feba983bdbc3f9ca22077c5a6719e14b26e46 (diff)
downloadelgg-22d64456008cd8d2aaab35f6d8005cc112d93567.tar.gz
elgg-22d64456008cd8d2aaab35f6d8005cc112d93567.tar.bz2
major addition - adding preview of CSS for developers and themers
git-svn-id: http://code.elgg.org/elgg/trunk@7781 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/css/preview/head.php')
-rw-r--r--documentation/css/preview/head.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/documentation/css/preview/head.php b/documentation/css/preview/head.php
new file mode 100644
index 000000000..360f56647
--- /dev/null
+++ b/documentation/css/preview/head.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * head of the preview pages
+ */
+require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
+
+$ipsum = "Sed scelerisque sagittis lorem. Phasellus sodales. Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus.";
+
+$screen = elgg_view_get_simplecache_url('css', 'screen');
+$ie_url = elgg_view_get_simplecache_url('css', 'ie');
+$ie6_url = elgg_view_get_simplecache_url('css', 'ie6');
+
+$base = elgg_get_site_url();
+elgg_register_js("{$base}vendors/jquery/jquery-1.4.2.min.js", 'jquery');
+elgg_register_js("{$base}vendors/jquery/jquery-ui-1.7.2.min.js", 'jquery-ui');
+elgg_register_js("{$base}vendors/jquery/jquery.form.js", 'jquery.form');
+
+// Set the content type
+header("Content-type: text/html; charset=UTF-8");
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title><?php echo $title; ?></title>
+ <link rel="stylesheet" href="<?php echo $screen; ?>" type="text/css" />
+ <!--[if IE 6]>
+ <link rel="stylesheet" type="text/css" href="<?php echo $ie_url; ?>" />
+ <![endif]-->
+
+ <!--[if gt IE 6]>
+ <link rel="stylesheet" type="text/css" href="<?php echo $ie6_url; ?>" />
+ <![endif]-->
+<?php
+foreach (elgg_get_js() as $script) {
+?>
+ <script type="text/javascript" src="<?php echo $script; ?>"></script>
+<?php
+}
+?>
+</head>