";
} else {
$html = "
";
}
// Output the character and use it as the title.
$html .= "
{$character}
";
// Output the markup for each tag found for each character.
if ($tags) {
$html .= '
';
$first_colour = multiloquent_get_random_solid_class($tag->slug);
foreach ((array) $tags as $tag) {
$tag_link = get_tag_link($tag->term_id);
$second_colour = multiloquent_get_random_blue_class($tag->slug);
if ($tag->slug == $second_colour) {
$tile_colour = $second_colour;
} else {
$tile_colour = $first_colour;
}
if (strlen($tag->name) > '30') {
$html .= '- name) > '10') {
$html .= '
- name) > '5') {
$html .= '
- name) > '30') {
$html .= '";
} elseif (strlen($tag->name) > '10') {
$html .= '";
} else {
$html .= '";
}
$html .= '' . $tag->count . '';
$html .= "
";
}
$html .= '
';
}
$html .= '
';
// Output the markup for the current character.
echo $html;
// Increment the index by 1.
$index ++;
// }
// }
?>