Apply bootstrap styling to block with link_counter

Created on 5 October 2014, about 10 years ago
Updated 19 April 2023, over 1 year ago

Hi All,

I wanted to share a the following with you guys - maybe someone can approve upon it.

I made the following modifications to lines 457 and 466:

return "<a href='" . $uri['path'] . "' class='list-group-item tagclouds-term'>" . t($name) . "<span class='badge'>" . $count . "</span></a>\n";

I also added the class "list-group" to the block (using the block_class module).

The screenshot attached demonstrates the bootstrap styling being applied to the tagcloud block.

Thanks

Feature request
Status

Closed: won't fix

Version

1.0

Component

User interface

Created by

🇨🇦Canada ydahi Waterloo, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain rzgairin

    Hi Chris,

    To stay as generic as possible, is it possible to enclose the total value in a span instead of delimiting it by parentheses and assign it a generic class (for example tagclouds-counter) so that it can be styled

    <span class='tagclouds-counter'>" . $count . "</span>

    Thanks

Production build 0.71.5 2024