summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/helpers/core_block.php10
-rw-r--r--core/libraries/Admin_View.php1
-rw-r--r--core/views/admin_block_stats.html.php5
-rw-r--r--core/views/admin_block_welcome.html.php (renamed from core/views/admin_dashboard_welcome.html.php)1
4 files changed, 16 insertions, 1 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index 3c1e0727..ca28c690 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -34,7 +34,15 @@ class core_block_Core {
$block = new Block();
$block->id = "gWelcome";
$block->title = _("Welcome to Gallery3");
- $block->content = new View("admin_dashboard_welcome.html");
+ $block->content = new View("admin_block_welcome.html");
+ return $block;
+ }
+
+ public static function admin_sidebar_blocks($theme) {
+ $block = new Block();
+ $block->id = "gStats";
+ $block->title = _("Gallery Stats");
+ $block->content = new View("admin_block_stats.html");
return $block;
}
} \ No newline at end of file
diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php
index 548a4355..5752d659 100644
--- a/core/libraries/Admin_View.php
+++ b/core/libraries/Admin_View.php
@@ -66,6 +66,7 @@ class Admin_View_Core extends View {
public function __call($function, $args) {
switch ($function) {
case "dashboard_blocks":
+ case "sidebar_blocks":
$function = "admin_$function";
$blocks = array();
foreach (module::installed() as $module) {
diff --git a/core/views/admin_block_stats.html.php b/core/views/admin_block_stats.html.php
new file mode 100644
index 00000000..af427323
--- /dev/null
+++ b/core/views/admin_block_stats.html.php
@@ -0,0 +1,5 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul>
+ <li>Version: 3.0</li>
+ <li>Your gallery has 34 albums containing 603 photos with 26 comments.</li>
+</ul>
diff --git a/core/views/admin_dashboard_welcome.html.php b/core/views/admin_block_welcome.html.php
index 996adc9f..d4ae475a 100644
--- a/core/views/admin_dashboard_welcome.html.php
+++ b/core/views/admin_block_welcome.html.php
@@ -1,3 +1,4 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
<p>
This is your administration dashboard and it provides a quick overview of status messages,
recent updates, and frequently used options. Add or remove blocks and rearrange them