- b2evolution CMS Support Forums
- b2evolution Support
- Templates, skins, XHTML and CSS
- Add a custom widget to a skin template [solved]
1 ole Sep 15, 2009 21:53
My b2evolution Version: 3.3.1
Hi.
I would like to submit my skin in http://blog.oleschmitt.com.br to skin repository, but I have one doubt:
In the right sidebar, that part that says "Designed by" and "Powered by" is a free HTML widget:
<br />
<div align="center"><a href="http://www.oleschmitt.com.br"><img src="img/designedby.png" alt="Designed by OleSchmitt.com.br" width="150" height="51" /></a>
<br />
<br />
<a href="http://b2evolution.net"><img src="img/poweredby.png" alt="Powered by b2evolution" width="150" height="41" /></a></div>
<br />
I would like to make it fixed, definitive, to keep the credits (especially those of b2evolution) without creating a free HTML widget (which would have to be installed manually by skin user).
I don't know where (or how) to put it. Can I deliver a custom widget within a skin, inside the skin folder?
My index.main.php only have a call to _sidebar.inc.php:
<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include( '_sidebar.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>
And _sidebar.inc.php is as follows:
// ------------------------- "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 class="sidebox $wi_class$">',
'block_end' => '</div>',
// This will enclose the title of each widget:
'block_title_start' => '<h1>',
'block_title_end' => '</h1>',
// If a widget displays a list, this will enclose that list:
'list_start' => '<ul class="sidemenu">',
'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 -----------------------------
Any help would be appreciated.
Thanks.
3 ole Sep 17, 2009 23:22
Thanks EdB.
Worked just fine.
Why not just put the html in the sidebar file after the container bit?