summaryrefslogtreecommitdiff
path: root/core/views/admin_dashboard_blocks.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-12 07:39:53 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-12 07:39:53 +0000
commitb19729435cd918e03e1bd6fbb91f7281bf3e5873 (patch)
tree2e1e1723bfcb8358ac4060927c396777acff2af7 /core/views/admin_dashboard_blocks.html.php
parentef303bde3e853a01e45b7734698210a40a7be812 (diff)
Dashboard blocks are now data driven, and you can add new blocks to
both the sidebar and the center content area from a dropdown at the top of the dashboard sidebar.
Diffstat (limited to 'core/views/admin_dashboard_blocks.html.php')
-rw-r--r--core/views/admin_dashboard_blocks.html.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/views/admin_dashboard_blocks.html.php b/core/views/admin_dashboard_blocks.html.php
new file mode 100644
index 00000000..56a6ab07
--- /dev/null
+++ b/core/views/admin_dashboard_blocks.html.php
@@ -0,0 +1,25 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<div id="gAdminDashboardBlocks">
+ <table border="1">
+ <tr>
+ <th> <?= t("Main") ?> </th>
+ <th> <?= t("Sidebar") ?> </th>
+ </tr>
+
+ <? foreach ($available as $module_name => $block_list): ?>
+ <? foreach ($block_list as $id => $title): ?>
+ <tr>
+ <td>
+ <?= $title ?>
+ </td>
+ <td>
+ <option>
+ </option>
+ </td>
+ </tr>
+ <? endforeach ?>
+ <? endforeach ?>
+ </table>
+</div>
+<? printf("<pre>%s</pre>",print_r($available,1));flush(); ?>
+<? printf("<pre>%s</pre>",print_r($displayed,1));flush(); ?>