diff options
author | Sem <sembrestels@riseup.net> | 2012-08-16 14:46:11 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-16 14:46:11 +0200 |
commit | 4cac1871f1c83d1cb40134b511125987f92f2c46 (patch) | |
tree | 804f80164271fc4f0385ebf05f5f90ceb35320a9 /mod/developers/views/default/theme_preview/components | |
parent | 13ac8fcc40c9446c51e717ddcfe32cfcc45e3fd2 (diff) | |
download | elgg-4cac1871f1c83d1cb40134b511125987f92f2c46.tar.gz elgg-4cac1871f1c83d1cb40134b511125987f92f2c46.tar.bz2 |
Fixed theme preview.
Diffstat (limited to 'mod/developers/views/default/theme_preview/components')
4 files changed, 42 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/components/image_block.php b/mod/developers/views/default/theme_preview/components/image_block.php new file mode 100644 index 000000000..0bb16428b --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/image_block.php @@ -0,0 +1,6 @@ +<?php
+$ipsum = elgg_view('developers/ipsum');
+
+$user = new ElggUser();
+$image = elgg_view_entity_icon($user, 'small');
+echo elgg_view_image_block($image, "$ipsum $ipsum $ipsum $ipsum $ipsum $ipsum $ipsum");
diff --git a/mod/developers/views/default/theme_preview/components/list.php b/mod/developers/views/default/theme_preview/components/list.php new file mode 100644 index 000000000..8096bda04 --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/list.php @@ -0,0 +1,19 @@ +<?php
+
+$obj1 = new ElggObject();
+$obj1->title = "Object 1";
+$obj1->description = $ipsum;
+
+$obj2 = new ElggObject();
+$obj2->title = "Object 2";
+$obj2->description = $ipsum;
+
+$obj3 = new ElggObject();
+$obj3->title = "Object 3";
+$obj3->description = $ipsum;
+
+$obj4 = new ElggObject();
+$obj4->title = "Object 4";
+$obj4->description = $ipsum;
+
+echo elgg_view('page/components/list', array('items' => array($obj1, $obj2, $obj3, $obj4)));
diff --git a/mod/developers/views/default/theme_preview/components/messages.php b/mod/developers/views/default/theme_preview/components/messages.php new file mode 100644 index 000000000..ac4d2bfd7 --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/messages.php @@ -0,0 +1,5 @@ +<ul>
+ <li class="elgg-message elgg-state-success mas">Success message (.elgg-state-success)</li>
+ <li class="elgg-message elgg-state-error mas">Error message (.elgg-state-error)</li>
+ <li class="elgg-message elgg-state-notice mas">Notice message (.elgg-state-notice)</li>
+</ul>
diff --git a/mod/developers/views/default/theme_preview/components/table.php b/mod/developers/views/default/theme_preview/components/table.php new file mode 100644 index 000000000..8b8b13e76 --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/table.php @@ -0,0 +1,12 @@ +<table class="<?php echo $vars['class']; ?>">
+<?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>
\ No newline at end of file |