adding default-toggle for serendipity_event_sidebarhider

Creating and modifying plugins.
Post Reply
onli
Regular
Posts: 2828
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

adding default-toggle for serendipity_event_sidebarhider

Post by onli »

Hi
I wanted to use the serendipity_event_sidebarhider, but it's more like I want to have the opportunity - the sidebars should not be hidden at default. As far as I've seen there is no option for this and I found no workaround.
Regarding the code I think that the lines 88-89 of sidebarhider.js are the problem - maybe it is possible to execute these lines only if a separate option is selected (the other way around would be alright, too)?

For myself, I can comment them out (think so, haven't tested it yet online - maybe it would cause problems?), but this may be a good option in general.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: adding default-toggle for serendipity_event_sidebarhider

Post by garvinhicking »

Hi!

In the configuration of the sidebarhider plugin you can enable/disable the option if sidebars should be shrinked by default.

HTH,
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/
onli
Regular
Posts: 2828
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Post by onli »

Yes, thanks, it is configurable in the menu under "entries". I overlooked this menu at first and only searched in the main-configuration of the plugin - where no default-toggle exists. If you haven't hit the save-button in the entry-menu, every plugin is collapsed by default...
Post Reply