Recent Topics

1 Apr 03, 2009 00:32    

My b2evolution Version: Not Entered

I want to handle the title area and content area for each sidebar block seperately...

so i did use ;

	<?php
		// ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
		// Display container contents:
		skin_container( NT_('Sidebar'), array(
				// The following (optional) params will be used as defaults for widgets included in this container:
				// This will enclose each widget in a block:
				'block_start' => '<div id="$wi_class$" class="sidebar-box">',
				'block_end' => '</div></div>',
				// This will enclose the title of each widget:
				'block_title_start' => '<h3 class="sb-title">',
				'block_title_end' => '</h3><div class="sb-content">',
				// If a widget displays a list, this will enclose that list:
				'list_start' => '<ul>',
				'list_end' => '</ul>',
				// This will enclose each item in a list:
				'item_start' => '<li>',
				'item_end' => '</li>',
				// This will enclose sub-lists in a list:
				'group_start' => '<ul>',
				'group_end' => '</ul>',
				// This will enclose (foot)notes:
				'notes_start' => '<div class="notes">',
				'notes_end' => '</div>',
			) );
		// ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
	?>

however as you know, some widgets as "blog tagline" does not have a title-h3- so that it doesnt get the "<div class="content>" right after the title which breaks the order...

any ideas how can i achieve this ?

2 Apr 03, 2009 00:45

thanks to ¥åßßå using a

'title' => 'foo', parameter did fine..

when i should say this parameter wasnt included in the manual where i tried looking up at the first place here:

http://manual.b2evolution.net/Tag_skin_container

And the thing is; widget's title should overwrite that 'foo' title, however some does and some does not...

i.e Random photo widget can overwrite and get its own title as "Random photo"

where Categories widget can not, and gets a "foo" title.. i am posting this into bugs section


Form is loading...