widgets.php 641 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. $data = elgg_extract("data", $vars);
  3. if (empty($data)) {
  4. return;
  5. }
  6. echo "<table class='elgg-table-alt'>";
  7. echo "<tr>";
  8. echo "<th>" . elgg_echo('developers:inspect:widgets') . "</th>";
  9. echo "<th>" . elgg_echo('title') . "</th>";
  10. echo "<th>" . elgg_echo('developers:inspect:widgets:context') . "</th>";
  11. echo "</tr>";
  12. foreach ($data as $name => $arr) {
  13. $view = "widgets/$name/content";
  14. $link = elgg_view('admin/develop_tools/inspect/views/view_link', array(
  15. 'view' => $view,
  16. 'text' => $name,
  17. ));
  18. echo "<tr>";
  19. echo "<td>$link</td>";
  20. echo "<td>{$arr[0]}</td>";
  21. echo "<td>{$arr[1]}</td>";
  22. echo "</tr>";
  23. }
  24. echo "</table>";