mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-23 08:14:02 -04:00
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.
This commit is contained in:
@@ -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(); ?>
|
||||
Reference in New Issue
Block a user