summaryrefslogtreecommitdiff
path: root/core/helpers/core_block.php
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2009-01-15 06:19:26 +0000
committerChad Kieffer <chad@2tbsp.com>2009-01-15 06:19:26 +0000
commit0bbde9e059c51fe61c92d23f9f6a4518b2fb1a8c (patch)
treefbdbe09e680cac9089aefdd052ece11a1af5c761 /core/helpers/core_block.php
parente7d7396f7ad433bae59dd8460307b4dfa9ab33db (diff)
Added gQuick to album_top, started implementation, but incomplete so far. Need edit album methods added to the quick controller.
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r--core/helpers/core_block.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index 35bba06f..48e158be 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -33,6 +33,13 @@ class core_block_Core {
return $buf;
}
+ static function album_top($theme, $child) {
+ if (access::can("edit", $album)) {
+ $edit_link = url::site("quick/pane/$album->id");
+ return "<div class=\"gQuick\" href=\"$edit_link\"></div>";
+ }
+ }
+
static function thumb_top($theme, $child) {
if ($child->type == "photo" && access::can("edit", $child)) {
$edit_link = url::site("quick/pane/$child->id");