aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-12-30 20:17:37 +0000
committervdigital <vdigital@piwigo.org>2008-12-30 20:17:37 +0000
commit7a75e9cfb39737492b2ba41260da19ae01851d7b (patch)
treef62c3992f44d70da29cff6aef2617094dce6ab93 /template/yoga
parent437153c7b6f7aebb98879b7ec53cb9435d02addf (diff)
- Change the title logic for a better index in Google images
(It was already done but it should be improved). git-svn-id: http://piwigo.org/svn/branches/2.0@3031 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga')
-rw-r--r--template/yoga/mainpage_categories.tpl2
-rw-r--r--template/yoga/picture_content.tpl5
2 files changed, 5 insertions, 2 deletions
diff --git a/template/yoga/mainpage_categories.tpl b/template/yoga/mainpage_categories.tpl
index 9c810600b..e56b637aa 100644
--- a/template/yoga/mainpage_categories.tpl
+++ b/template/yoga/mainpage_categories.tpl
@@ -6,7 +6,7 @@
<div class="thumbnailCategory">
<div class="illustration">
<a href="{$cat.URL}">
- <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{'hint_category'|@translate}">
+ <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|replace:'"':' '} - {'hint_category'|@translate}">
</a>
</div>
<div class="description">
diff --git a/template/yoga/picture_content.tpl b/template/yoga/picture_content.tpl
index 7e15a1bb3..5c9291357 100644
--- a/template/yoga/picture_content.tpl
+++ b/template/yoga/picture_content.tpl
@@ -2,7 +2,10 @@
{if isset($high) }
<a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
{/if}
- <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}">
+ <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}"
+ {if isset($COMMENT_IMG)}
+ title="{$COMMENT_IMG|replace:'"':' '}" {else} title="{$current.TITLE|replace:'"':' '} - {$ALT_IMG}"
+ {/if}>
{if isset($high) }
</a>
<p>{'picture_high'|@translate}</p>