diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 01:16:46 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 01:16:46 +0000 |
commit | 16a3e43b45c654e0e882810234a39ea518a70879 (patch) | |
tree | d5288c0c73da3ec7d0e6d59408b245157379ae88 | |
parent | e12a4f2ae392a91db0c649367977d46cedc87e68 (diff) |
Move the "Photo Stream" section into its own block
-rw-r--r-- | core/helpers/core_block.php | 6 | ||||
-rw-r--r-- | core/views/admin_block_photo_stream.html.php | 8 | ||||
-rw-r--r-- | core/views/admin_dashboard.html.php | 9 |
3 files changed, 14 insertions, 9 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index b5f7ccf4..41fb2790 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -43,6 +43,12 @@ class core_block_Core { $block->content = new View("admin_block_messages.html"); $blocks[] = $block; + $block = new Block(); + $block->id = "gPhotoStream"; + $block->title = _("Photo Stream"); + $block->content = new View("admin_block_photo_stream.html"); + $blocks[] = $block; + return implode("\n", $blocks); } diff --git a/core/views/admin_block_photo_stream.html.php b/core/views/admin_block_photo_stream.html.php new file mode 100644 index 00000000..3255fb04 --- /dev/null +++ b/core/views/admin_block_photo_stream.html.php @@ -0,0 +1,8 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<p> + Recent photos added to your Gallery +</p> +<img src="<?= $theme->url("images/photostream.png") ?>" alt="" /> +<p class="gWarning"> + 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 +</p> diff --git a/core/views/admin_dashboard.html.php b/core/views/admin_dashboard.html.php index 0bf62359..78c92526 100644 --- a/core/views/admin_dashboard.html.php +++ b/core/views/admin_dashboard.html.php @@ -1,15 +1,6 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <?= $theme->dashboard_blocks(); ?> -<div id="gPhotoStream" class="gBlock"> - <h2>Photo Stream</h2> - <div class="gBlockContent"> - <p>Recent photos added to your Gallery</p> - <img src="<?= $theme->url("images/photostream.png") ?>" alt="" /> - <p class="gWarning">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</p> - </div> -</div> - <div id="gLogEntries" class="gBlock"> <h2>Recent Comments</h2> <ul class="gBlockContent"> |