I'm victim of my bad English, and i will explain again my need, and sorry to be a heavy guest!
I create a theme who work fin, and i add the BOX in the sidebar manually, so in every time i must add this HTML code with some PHP on it to show for example : Recent post, Latest comment, Pages, Category...
<div id="id-box" class="box">
<div class="one-col box-top">
<h3 class="box-title">The Title</h3>
</div>
<div class="one-col box-body">
My PHP code her
</div>
<div class="one-col box-bottom"></div>
</div>
so know, i want to upgrade my theme by supporting widget (add any widget from the admin-panel and show it in the sidebar area of my theme), so i create the file function.php (as in other widgetized themes) and i copy this code into-it :
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div id="sbitem">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>
but this code dont show the structure of the the box i want as in the HTML code in the top ( <div id="id-box".... )!!!
so how can i put my HTML code in the :
befor_widget, after_widget, befor_title, after__title
Thanks, and again, i'm so sorry 4 my English.