How many sidebar plugins without a title?

Creating and modifying plugins.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

How many sidebar plugins without a title?

Post by Don Chambers »

The default sidebar.tpl file includes the following:

Code: Select all

{if $item.title != ""}<h3 class="serendipitySideBarTitle {$item.class}">{$item.title}</h3>{/if}
Obviously, the h3 will not be processed if the title is blank.

So, out of curiosity, what plugins do not generate a title? From the perspective of a template based on graphical elements, I need the side bar title to print regardless of whether or not it is blank, so I will probably remove the {if}... I was just curious how many plugins do not have a title. The only one I know of is the HTML nugget plugin, where the title is user-configured, and can be left blank.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How many sidebar plugins without a title?

Post by garvinhicking »

Hi!

I don't know all of them, but I know there are a couple of them. At least every plugin that allows to configure a custom sidebar title!

Maybe you can use an {else} check instead of removing it, so that only a spacer is inserted and no graphical header for items that do not require it?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply