diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2011-01-06 21:03:19 -0700 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2011-01-06 21:03:19 -0700 |
commit | 06d94065ce0919f34151da05b32642a95397044f (patch) | |
tree | 708ef5ac1dbca6eb035dac94dd70dc941564159a /modules | |
parent | a897a9d53f7df79f55888141444a22f38665dce6 (diff) |
Updates per Bharat's pull request review. Renamed info_block_metadata event to info_block_get_metadata.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/info/helpers/info_block.php | 2 | ||||
-rw-r--r-- | modules/info/views/info_block.html.php | 4 | ||||
-rw-r--r-- | modules/tag/helpers/tag_event.php | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 5841ec6f..9596bc41 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -71,7 +71,7 @@ class info_block_Core { } $block->content->metadata = $info; - module::event("info_block_metadata", $block, $theme->item); + module::event("info_block_get_metadata", $block, $theme->item); } break; } diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 7c162767..b296fa1d 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -1,8 +1,8 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <ul class="g-metadata"> - <? foreach($metadata as $k => $v): ?> + <? foreach($metadata as $info): ?> <li> - <strong class="caption"><?= $v["label"] ?></strong> <?= $v["value"] ?> + <strong class="caption"><?= $info["label"] ?></strong> <?= $info["value"] ?> </li> <? endforeach; ?> </ul> diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php index 78fe7058..6b8de723 100644 --- a/modules/tag/helpers/tag_event.php +++ b/modules/tag/helpers/tag_event.php @@ -148,12 +148,12 @@ class tag_event_Core { } } - static function info_block_metadata($block, $item) { + static function info_block_get_metadata($block, $item) { $tags = array(); foreach (tag::item_tags($item) as $tag) { - $tags[] = "<a href=\"" . url::site("/tag/{$tag->name}") . "\">$tag->name</a>"; + $tags[] = "<a href=\"" . url::site("tag/{$tag->name}") . "\">{$tag->name}</a>"; } - if (count($tags)) { + if ($tags) { $info = $block->content->metadata; $info["tags"] = array( "label" => t("Tags:"), |