function theme_current_search_accessible_markup in Facet API 7
Returns HTML that adds accessible markup to facet links.
Parameters
$variables: An associative array containing:
- text: The text of the facet link.
- active: Whether the item is active or not.
See also
http://drupal.org/node/1316580
1 theme call to theme_current_search_accessible_markup()
- theme_current_search_link_active in contrib/
current_search/ current_search.theme.inc - Returns HTML for an active facet item.
File
- contrib/
current_search/ current_search.theme.inc, line 198 - Theme functions for the Current Search Blocks module.
Code
function theme_current_search_accessible_markup($variables) {
$vars = array(
'@text' => $variables['text'],
);
$text = $variables['active'] ? t('Remove @text filter', $vars) : t('Apply @text filter', $vars);
// Add spaces before and after the text, since other content may be displayed
// inline with this and we don't want the words to run together. However, the
// spaces must be inside the <span> so as not to disrupt the layout for
// sighted users.
return '<span class="element-invisible"> ' . $text . ' </span>';
}