From 13ad40ab5cfd1457a0d9b536d837d558ae1badde Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Sun, 14 Dec 2008 02:23:37 +0000 Subject: Created admin controller and made admin obey admin theme settings --- core/config/config.php | 1 + core/controllers/admin.php | 30 +++ core/helpers/core_menu.php | 2 +- themes/default_admin/dashboard.html | 253 -------------------------- themes/default_admin/views/dashboard.html.php | 253 ++++++++++++++++++++++++++ 5 files changed, 285 insertions(+), 254 deletions(-) create mode 100644 core/controllers/admin.php delete mode 100644 themes/default_admin/dashboard.html create mode 100644 themes/default_admin/views/dashboard.html.php diff --git a/core/config/config.php b/core/config/config.php index 9d08aef3..0f57baae 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -119,6 +119,7 @@ $config['extension_prefix'] = 'MY_'; $config['modules'] = array( MODPATH . 'forge', THEMEPATH . 'default', + THEMEPATH . 'default_admin' ); if (defined('TEST_MODE')) { diff --git a/core/controllers/admin.php b/core/controllers/admin.php new file mode 100644 index 00000000..10c0b120 --- /dev/null +++ b/core/controllers/admin.php @@ -0,0 +1,30 @@ +id("site_admin") ->label(_("Site Admin")) - ->url(url::file("themes/default_admin/dashboard.html"))); + ->url(url::site("admin/dashboard"))); } } } diff --git a/themes/default_admin/dashboard.html b/themes/default_admin/dashboard.html deleted file mode 100644 index d53b5cd4..00000000 --- a/themes/default_admin/dashboard.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - G3: Admin Dashboard - - - - - - - - - - - - - -
- -
-
-
-
- -
- X -

Welcome to Gallery 3!

-
-

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 - to tailor to your needs. The admin menu provides quick access to all of Gallery 3's options - and settings. Here are a few of the most used options to get you started.

- -
-
- - - -
- X -

Photo Stream

-
-

Recent photos added to your Gallery

- -

Slider type of display. Show titles underneath or on hover. Draw a keyline around albums, or differentiate some how. Each will be linked to item view

-
-
- -
- X -

Recent Comments

-
    -
  • username 2008-12-10 23:02:23 Something happened
  • -
  • username 2008-12-10 23:02:23 Someone logged in
  • -
  • username 2008-12-10 23:02:23 New module installed
  • -
  • username 2008-12-10 23:02:23 Someone logged in
  • -
  • username 2008-12-10 23:02:23 RSS feed updated
  • -
-
- -
- X -

Log Entries

-
    -
  • 2008-12-10 23:02:23 Something happened
  • -
  • 2008-12-10 23:02:23 Someone logged in
  • -
  • 2008-12-10 23:02:23 New module installed
  • -
  • 2008-12-10 23:02:23 Someone logged in
  • -
  • 2008-12-10 23:02:23 RSS feed updated
  • -
-
- -
-
-
-
- -
- X -
-
- Add Dashboard Blocks - - -
-
-
- -
- X -

Gallery Stats

-
    -
  • Version: 3.0
  • -
  • Your gallery has 34 albums containing 842 photos with 26 comments.
  • -
-
- -
- X -

Platform Information

-
    -
  • Platform -
      -
    • Apache 2.0.24 -
        -
      • mod_rewrite: active
      • -
      -
    • -
    • PHP 5.2.8 -
        -
      • Memory: 32MB
      • -
      • -
      • -
      -
    • -
    • MySQL 5.0.1
    • -
    • Graphics Toolkits -
        -
      • ImageMagick 1.6
      • -
      • GD
      • -
      • FFMPEG
      • -
      -
    • -
    -
  • -
-

^ Display as a tree widget

-
- -
- X -

Gallery Project News

- -
- -
-
-
-
- Footer -
-
-
- - - \ No newline at end of file diff --git a/themes/default_admin/views/dashboard.html.php b/themes/default_admin/views/dashboard.html.php new file mode 100644 index 00000000..e3456d98 --- /dev/null +++ b/themes/default_admin/views/dashboard.html.php @@ -0,0 +1,253 @@ + + + + + G3: Admin Dashboard + + + + + + + + + + + + + +
+ +
+
+
+
+ +
+ X +

Welcome to Gallery 3!

+
+

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 + to tailor to your needs. The admin menu provides quick access to all of Gallery 3's options + and settings. Here are a few of the most used options to get you started.

+ +
+
+ + + +
+ X +

Photo Stream

+
+

Recent photos added to your Gallery

+ +

Slider type of display. Show titles underneath or on hover. Draw a keyline around albums, or differentiate some how. Each will be linked to item view

+
+
+ +
+ X +

Recent Comments

+
    +
  • username 2008-12-10 23:02:23 Something happened
  • +
  • username 2008-12-10 23:02:23 Someone logged in
  • +
  • username 2008-12-10 23:02:23 New module installed
  • +
  • username 2008-12-10 23:02:23 Someone logged in
  • +
  • username 2008-12-10 23:02:23 RSS feed updated
  • +
+
+ +
+ X +

Log Entries

+
    +
  • 2008-12-10 23:02:23 Something happened
  • +
  • 2008-12-10 23:02:23 Someone logged in
  • +
  • 2008-12-10 23:02:23 New module installed
  • +
  • 2008-12-10 23:02:23 Someone logged in
  • +
  • 2008-12-10 23:02:23 RSS feed updated
  • +
+
+ +
+
+
+
+ +
+ X +
+
+ Add Dashboard Blocks + + +
+
+
+ +
+ X +

Gallery Stats

+
    +
  • Version: 3.0
  • +
  • Your gallery has 34 albums containing 842 photos with 26 comments.
  • +
+
+ +
+ X +

Platform Information

+
    +
  • Platform +
      +
    • Apache 2.0.24 +
        +
      • mod_rewrite: active
      • +
      +
    • +
    • PHP 5.2.8 +
        +
      • Memory: 32MB
      • +
      • +
      • +
      +
    • +
    • MySQL 5.0.1
    • +
    • Graphics Toolkits +
        +
      • ImageMagick 1.6
      • +
      • GD
      • +
      • FFMPEG
      • +
      +
    • +
    +
  • +
+

^ Display as a tree widget

+
+ +
+ X +

Gallery Project News

+ +
+ +
+
+
+
+ Footer +
+
+
+ + + \ No newline at end of file -- cgit v1.2.3