summaryrefslogtreecommitdiff
path: root/modules/info
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info')
-rw-r--r--modules/info/helpers/info_theme.php6
-rw-r--r--modules/info/module.info4
-rw-r--r--modules/info/views/info_block.html.php6
3 files changed, 10 insertions, 6 deletions
diff --git a/modules/info/helpers/info_theme.php b/modules/info/helpers/info_theme.php
index 863317a8..51378e54 100644
--- a/modules/info/helpers/info_theme.php
+++ b/modules/info/helpers/info_theme.php
@@ -37,7 +37,11 @@ class info_theme_Core {
}
if ($item->owner) {
$results .= "<li>";
- $results .= t("By: %owner_name", array("owner_name" => "<a href=\"#\">{$item->owner->full_name}</a>"));
+ if ($item->owner->url) {
+ $results .= t("By: %owner_name", array("owner_name" => "<a href=\"{$item->owner->url}\">{$item->owner->full_name}</a>"));
+ } else {
+ $results .= t("By: %owner_name", array("owner_name" => "{$item->owner->full_name}"));
+ }
$results .= "</li>";
}
return $results;
diff --git a/modules/info/module.info b/modules/info/module.info
index ce03473e..e352213c 100644
--- a/modules/info/module.info
+++ b/modules/info/module.info
@@ -1,3 +1,3 @@
-name = Info
-description = Display extra information about photos and albums
+name = "Info"
+description = "Display extra information about photos and albums"
version = 1
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index 9f544376..762e989b 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -12,7 +12,7 @@
<? endif ?>
<? if ($item->id != 1): ?>
<li>
- <strong class="caption"><?= t("Folder name:") ?></strong>
+ <strong class="caption"><?= $theme->page_type == 'album' ? t("Folder name:"): t("File name:"); ?></strong>
<?= p::clean($item->name) ?>
</li>
<? endif ?>
@@ -26,9 +26,9 @@
<li>
<strong class="caption"><?= t("Owner:") ?></strong>
<? if ($item->owner->url): ?>
- <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->full_name) ?></a>
+ <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->display_name()) ?></a>
<? else: ?>
- <?= p::clean($item->owner->name) ?>
+ <?= p::clean($item->owner->display_name()) ?>
<? endif ?>
</li>
<? endif ?>