system_messages.php 567 B

1234567891011121314151617181920212223
  1. <?php
  2. // can't use the ipsum because it includes html when wrapping views.
  3. $message = elgg_view('output/url', array(
  4. 'text' => 'Show system message (system_message())',
  5. 'is_trusted' => true,
  6. 'href' => '#',
  7. 'id' => 'developers-system-message',
  8. // 'onclick' => "elgg.system_message('Elgg System Message');"
  9. ));
  10. $error = elgg_view('output/url', array(
  11. 'text' => 'Show error message (register_error())',
  12. 'is_trusted' => true,
  13. 'href' => '#',
  14. 'id' => 'developers-error-message',
  15. ));
  16. ?>
  17. <ul>
  18. <li><?php echo $message; ?></li>
  19. <li><?php echo $error; ?></li>
  20. </ul>