aboutsummaryrefslogtreecommitdiff
path: root/documentation/theming/preview/objects.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:19:52 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:19:52 +0000
commit53433d73e36f36ccff2df95447c48c433ba0efef (patch)
tree00989c9e4fa7d38f6b336b679b0339cdcc600e19 /documentation/theming/preview/objects.php
parent23633a68a0a48e273dbffcd998603a6bb787f73a (diff)
downloadelgg-53433d73e36f36ccff2df95447c48c433ba0efef.tar.gz
elgg-53433d73e36f36ccff2df95447c48c433ba0efef.tar.bz2
changed named from css preview to theming preview
git-svn-id: http://code.elgg.org/elgg/trunk@8029 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/theming/preview/objects.php')
-rw-r--r--documentation/theming/preview/objects.php84
1 files changed, 84 insertions, 0 deletions
diff --git a/documentation/theming/preview/objects.php b/documentation/theming/preview/objects.php
new file mode 100644
index 000000000..f90009cab
--- /dev/null
+++ b/documentation/theming/preview/objects.php
@@ -0,0 +1,84 @@
+<?php
+/**
+ * CSS Objects: list, module, image_block
+ */
+
+$title = 'CSS Objects';
+
+require dirname(__FILE__) . '/head.php';
+
+$url = current_page_url();
+
+?>
+<body>
+ <div class="elgg-page mal">
+ <h1 class="mbs">
+ <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+ </h1>
+ <div class="mbl">
+ <a href="forms.php">< previous</a>&nbsp;&nbsp;<a href="grid.php">next ></a>
+ </div>
+ <h2>Modules</h2>
+ <div class="mbl clearfix">
+ <div class="elgg-col elgg-col-1of2">
+ <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-1of2">
+ <div class="pam">
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-group-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-group-module',
+ ));
+ ?>
+ </div>
+ <div class="pam">
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-info-module',
+ 'body' => $ipsum,
+ 'class' => 'elgg-info-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