From 1b76def26fbfc4ef3f0fcb2df210d916b972628b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 22 Nov 2008 21:59:41 +0000 Subject: Create thumbnail insertion points (top/bottom/info) and move the generic item info into the info module. --- core/libraries/Theme.php | 3 +++ modules/info/helpers/info_block.php | 9 +++++++++ themes/default/views/album.html.php | 7 +++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php index 569b2d52..42843a5a 100644 --- a/core/libraries/Theme.php +++ b/core/libraries/Theme.php @@ -74,6 +74,9 @@ class Theme_Core { case "album_top": case "album_blocks": case "album_bottom": + case "thumbnail_top": + case "thumbnail_bottom": + case "thumbnail_info": case "photo_top": case "photo_blocks": case "photo_bottom": diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 62c2919c..975acd6a 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -26,4 +26,13 @@ class info_block_Core { $block->content = new View("info_block.html"); return $block; } + + public static function thumbnail_info($theme, $item) { + print "
  • Views: 321
  • "; + if ($item->owner) { + print "
  • "; + printf(_("By: %s"), "{$item->owner->name}"); + print "
  • "; + } + } } \ No newline at end of file diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index f4869479..c56aed22 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -12,6 +12,7 @@
  • + thumbnail_top($child) ?> type}s/{$child->id}") ?>"> photo

    title_edit ?>

    + thumbnail_bottom($child) ?>
  • -- cgit v1.2.3