aboutsummaryrefslogtreecommitdiff
path: root/documentation/css/preview/objects.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/objects.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/objects.php')
-rw-r--r--documentation/css/preview/objects.php80
1 files changed, 80 insertions, 0 deletions
diff --git a/documentation/css/preview/objects.php b/documentation/css/preview/objects.php
new file mode 100644
index 000000000..72a41cf76
--- /dev/null
+++ b/documentation/css/preview/objects.php
@@ -0,0 +1,80 @@
+<?php
+/**
+ * CSS Objects: list, module, image_block
+ */
+
+$title = 'CSS Objects';
+
+require dirname(__FILE__) . '/head.php';
+
+?>
+<body>
+ <div class="elgg-page" style="width: 960px; margin: 20px auto;">
+ <h1 class="mbl"><?php echo $title; ?></h1>
+ <div class="mbl"><a href="index.php">return to index</a></div>
+ <h2>Modules</h2>
+ <div class="mbl clearfix">
+ <div class="elgg-col elgg-col-1of3">
+ <div class="pam">
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-aside-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-aside-module',
+ ));
+ ?>
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-popup-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-popup-module',
+ ));
+ ?>
+ </div>
+ </div>
+ <div class="elgg-col elgg-col-1of3">
+ <div class="pam">
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-info-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-info-module',
+ ));
+ ?>
+ </div>
+ </div>
+ <div class="elgg-col elgg-col-1of3">
+ <div class="pam">
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-group-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-group-module',
+ ));
+ ?>
+ </div>
+ </div>
+ </div>
+ <h2>Image Block</h2>
+ <div class="mbl clearfix">
+ <?php
+ $src = elgg_view('icon/user/default/small');
+ $image = "<img src=\"$src\" />";
+ echo elgg_view_image_block($image, $ipsum);
+ ?>
+ </div>
+ <h2>List</h2>
+ <div class="mbl clearfix">
+ <?php
+ $obj1 = new ElggObject();
+ $obj1->title = "Object 1";
+ $obj1->description = $ipsum;
+ $obj2 = new ElggObject();
+ $obj2->title = "Object 2";
+ $obj2->description = $ipsum;
+ echo elgg_view('layout/objects/list', array('items' => array($obj1, $obj2)));
+ ?>
+ </div>
+ </div>
+</body>
+</html> \ No newline at end of file