summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-20 01:08:39 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-20 01:08:39 +0000
commit68e9dcf027551ea6cde85eefd3b58023d233604d (patch)
tree055a94ca7a8cd40d28a68defb67fec2d33bb8375 /core
parentac4bb34cf26ea5147849d47bab2747473503d582 (diff)
Move Platform and Project News admin sidebar blocks into the new
modular structure.
Diffstat (limited to 'core')
-rw-r--r--core/helpers/core_block.php16
-rw-r--r--core/views/admin_block_news.html.php9
-rw-r--r--core/views/admin_block_platform.html.php34
3 files changed, 58 insertions, 1 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index ca28c690..7f0bb50a 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -43,6 +43,20 @@ class core_block_Core {
$block->id = "gStats";
$block->title = _("Gallery Stats");
$block->content = new View("admin_block_stats.html");
- return $block;
+ $blocks[] = $block;
+
+ $block = new Block();
+ $block->id = "gPlatform";
+ $block->title = _("Platform Information");
+ $block->content = new View("admin_block_platform.html");
+ $blocks[] = $block;
+
+ $block = new Block();
+ $block->id = "gProjectNews";
+ $block->title = _("Gallery Project News");
+ $block->content = new View("admin_block_news.html");
+ $blocks[] = $block;
+
+ return implode("\n", $blocks);
}
} \ No newline at end of file
diff --git a/core/views/admin_block_news.html.php b/core/views/admin_block_news.html.php
new file mode 100644
index 00000000..963a8cbd
--- /dev/null
+++ b/core/views/admin_block_news.html.php
@@ -0,0 +1,9 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul>
+ <li>10-Apr <a href="#">Gallery 3.1 released!</a></li>
+ <li>26-Feb <a href="#">New theme tutorials now available</a></li>
+ <li>4-Feb <a href="#">Gallery 3.0 released!</a></li>
+</ul>
+
+
+
diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php
new file mode 100644
index 00000000..f08b9d54
--- /dev/null
+++ b/core/views/admin_block_platform.html.php
@@ -0,0 +1,34 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul>
+ <li>
+ Platform
+ <ul>
+ <li>
+ Apache 2.0.24
+ <ul>
+ <li>mod_rewrite: active</li>
+ </ul>
+ </li>
+ <li>
+ PHP 5.2.8
+ <ul>
+ <li>Memory: 32MB</li>
+ <li></li>
+ <li></li>
+ </ul>
+ </li>
+ <li>
+ MySQL 5.0.1
+ </li>
+ <li>
+ Graphics Toolkits
+ <ul>
+ <li>ImageMagick 1.6</li>
+ <li>GD</li>
+ <li>FFMPEG</li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+</ul>
+<p class="gWarning">^ Display as a tree widget</p>