| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_image.module,v 1.12.4.13.2.41 2009/03/17 14:09:44 nancyw Exp $ |
// $Id: taxonomy_image.module,v 1.12.4.13.2.42 2009/03/17 14:38:16 nancyw Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 58 |
// Build the link title based on admin choice. |
// Build the link title based on admin choice. |
| 59 |
// Note: translation must be done here because the cache needs to be language-neutral. |
// Note: translation must be done here because the cache needs to be language-neutral. |
| 60 |
if ($current->description && !variable_get('taxonomy_image_link_title', 0)) { |
if ($current->description && !variable_get('taxonomy_image_link_title', 0)) { |
| 61 |
$current->title = taxonomy_image_tt("taxonomy:term:$term->tid:description", $current->description); |
$current->title = taxonomy_image_tt("taxonomy:term:$current->tid:description", $current->description); |
| 62 |
} |
} |
| 63 |
else { |
else { |
| 64 |
$current->title = taxonomy_image_tt("taxonomy:term:$term->tid:name", $current->name); |
$current->title = taxonomy_image_tt("taxonomy:term:$current->tid:name", $current->name); |
| 65 |
} |
} |
| 66 |
// Have to dump double quotes for attribute. |
// Have to dump double quotes for attribute. |
| 67 |
$current->title = htmlspecialchars(strip_tags($current->title), ENT_COMPAT); |
$current->title = htmlspecialchars(strip_tags($current->title), ENT_COMPAT); |