aboutsummaryrefslogtreecommitdiff
path: root/documentation/theming
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 12:40:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 12:40:18 +0000
commit562900f1b36820843a28d7b68f2f0f3e55e04dbf (patch)
treea46df3b548f900328ce357c536dd30ed02662be4 /documentation/theming
parent0b7ddb28c68a94403847ddaab460e395f09b9677 (diff)
downloadelgg-562900f1b36820843a28d7b68f2f0f3e55e04dbf.tar.gz
elgg-562900f1b36820843a28d7b68f2f0f3e55e04dbf.tar.bz2
more css/html improvements - added .elgg-table and a featured module
git-svn-id: http://code.elgg.org/elgg/trunk@8043 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/theming')
-rw-r--r--documentation/theming/preview/objects.php34
1 files changed, 32 insertions, 2 deletions
diff --git a/documentation/theming/preview/objects.php b/documentation/theming/preview/objects.php
index fc3d3c532..179178c5a 100644
--- a/documentation/theming/preview/objects.php
+++ b/documentation/theming/preview/objects.php
@@ -47,14 +47,21 @@ $url = current_page_url();
'class' => 'elgg-module-info',
));
?>
+ <?php
+ echo elgg_view('layout/objects/module', array(
+ 'title' => 'elgg-module-featured',
+ 'body' => $ipsum,
+ 'class' => 'elgg-module-featured',
+ ));
+ ?>
</div>
</div>
</div>
<h2>Image Block</h2>
<div class="mbl clearfix">
<?php
- $src = elgg_view('icon/user/default/small');
- $image = "<img src=\"$src\" />";
+ $user = new ElggUser();
+ $image = elgg_view_entity_icon($user, 'small');
echo elgg_view_image_block($image, $ipsum);
?>
</div>
@@ -70,6 +77,29 @@ $url = current_page_url();
echo elgg_view('layout/objects/list', array('items' => array($obj1, $obj2)));
?>
</div>
+ <h2>Table</h2>
+ <div class="mbl clearfix">
+ <table class="elgg-table">
+ <?php
+ echo "<thead><tr><th>column 1</th><th>column 2</th></tr></thead>";
+ for ($i = 1; $i < 5; $i++) {
+ echo '<tr>';
+ for ($j = 1; $j < 3; $j++) {
+ echo "<td>value $j</td>";
+ }
+ echo '</tr>';
+ }
+ ?>
+ </table>
+ </div>
+ <h2>Messages</h2>
+ <div class="mbl clearfix">
+ <ul>
+ <li class="elgg-message elgg-state-success mas">Success message</li>
+ <li class="elgg-message elgg-state-error mas">Error message</li>
+ <li class="elgg-message elgg-state-notice mas">Notice message</li>
+ </ul>
+ </div>
</div>
</body>
</html> \ No newline at end of file