mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-01 12:40:45 -04:00
Only the admin dashboard has a sidebar now.
admin.html.php looks for $sidebar and renders the page appropriately if one exists. But only admin_dashboard has one currently.
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
class Admin_Dashboard_Controller extends Admin_Controller {
|
||||
public function index() {
|
||||
$view = new Admin_View("admin.html");
|
||||
$view->content = $view->admin_dashboard_blocks();
|
||||
$view->content = new View("admin_dashboard_main.html");
|
||||
$view->sidebar = new View("admin_dashboard_sidebar.html");
|
||||
print $view;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<?= $theme->admin_dashboard_blocks() ?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<div id="gAvailableBlocks" class="gBlock">
|
||||
<form class="gBlockContent">
|
||||
<fieldset>
|
||||
<legend>Add Dashboard Blocks</legend>
|
||||
<label for="">Available blocks</label>
|
||||
<select name="" id="">
|
||||
<option>Somthing</option>
|
||||
<option>Somthing else</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?= $theme->admin_sidebar_blocks() ?>
|
||||
@@ -52,21 +52,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? if ($sidebar): ?>
|
||||
<div id="gSidebar" class="yui-b">
|
||||
<div id="gAvailableBlocks" class="gBlock">
|
||||
<form class="gBlockContent">
|
||||
<fieldset>
|
||||
<legend>Add Dashboard Blocks</legend>
|
||||
<label for="">Available blocks</label>
|
||||
<select name="" id="">
|
||||
<option>Somthing</option>
|
||||
<option>Somthing else</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?= $theme->admin_sidebar_blocks() ?>
|
||||
<?= $sidebar ?>
|
||||
</div>
|
||||
<? endif ?>
|
||||
</div>
|
||||
<div id="ft">
|
||||
<div id="gFooter">
|
||||
|
||||
Reference in New Issue
Block a user