Download & Extend

em tags in title attributes of links in the block

Project:Taxonomy Block
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The links come up with a title attribute as
title="view <em>Post Title</em> in full"
The em in the title attribute does not make sense. This was because of an error in the theme_taxonomy_block_list_item function. I have corrected the code and am posting it here. The only change is in the %variable in the t function which was changed to a @variable.

/**
* Format a single item for a list.
*
* @ingroup themeable
*/
function theme_taxonomy_block_list_item($node, $teaser) {
$output = '

  • '. l($node->title, 'node/'. $node->nid, array('title' => t('view - @title - in full', array('@title' => $node->title))));
    if ($teaser) {
    $output .= '
    '. $teaser;
    }
    $output .= '
  • ';

    return $output;
    }

    Comments

    #1

    Status:reviewed & tested by the community» closed (fixed)

    Upgrade to 6.x version. Thanks.

    nobody click here