aboutsummaryrefslogtreecommitdiff
path: root/documentation/theming/preview
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/theming/preview')
-rw-r--r--documentation/theming/preview/objects.php28
1 files changed, 4 insertions, 24 deletions
diff --git a/documentation/theming/preview/objects.php b/documentation/theming/preview/objects.php
index 179178c5a..0dc08cd98 100644
--- a/documentation/theming/preview/objects.php
+++ b/documentation/theming/preview/objects.php
@@ -23,36 +23,16 @@ $url = current_page_url();
<div class="elgg-col elgg-col-1of2">
<div class="pam">
<?php
- echo elgg_view('layout/objects/module', array(
- 'title' => 'elgg-module-aside',
- 'body' => $ipsum,
- 'class' => 'elgg-module-aside',
- ));
- ?>
- <?php
- echo elgg_view('layout/objects/module', array(
- 'title' => 'elgg-module-popup',
- 'body' => $ipsum,
- 'class' => 'elgg-module-popup',
- ));
+ echo elgg_view_module('aside', 'elgg-module-aside', $ipsum);
+ echo elgg_view_module('popup', 'elgg-module-popup', $ipsum);
?>
</div>
</div>
<div class="elgg-col elgg-col-1of2">
<div class="pam">
<?php
- echo elgg_view('layout/objects/module', array(
- 'title' => 'elgg-module-info',
- 'body' => $ipsum,
- 'class' => 'elgg-module-info',
- ));
- ?>
- <?php
- echo elgg_view('layout/objects/module', array(
- 'title' => 'elgg-module-featured',
- 'body' => $ipsum,
- 'class' => 'elgg-module-featured',
- ));
+ echo elgg_view_module('info', 'elgg-module-info', $ipsum);
+ echo elgg_view_module('featured', 'elgg-module-featured', $ipsum);
?>
</div>
</div>