toggle.php 334 B

123456789101112131415
  1. <?php
  2. $ipsum = elgg_view('developers/ipsum');
  3. $link = elgg_view('output/url', array(
  4. 'text' => 'Toggle content',
  5. 'href' => "#elgg-toggle-test",
  6. 'rel' => 'toggle',
  7. ));
  8. echo $link;
  9. echo elgg_view_module('featured', 'Toggle Test', $ipsum, array(
  10. 'id' => 'elgg-toggle-test',
  11. 'class' => 'hidden theme-sandbox-content-thin mtm',
  12. ));