What's the meaning of $before_widget and $after_widget?
wordpress
Solution
in siderbars, you may want to add your own class to your widgets, like `<div class="well beforeW">` so this keeps all your widgets have same styles that you already defined in style.css file.
sometimes designers add a curvy shadow to the bottom of each widget, so you have to make it an image, thus and after widget is your salvation, you do this at after widget `</div><span class="specialShadow"></span>`.
this way you may add new elements before and after any widget you want.
example:
register_sidebar(array('name'=>'Footer-Sidebar',
'before_widget' => '<div class="ftr-widget">',
'after_widget' => '</div><span class="specailShadow"></span>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
noticing above example, this is how you insert $args in functions. or in more clear way:
$args = array('name'=>'Footer-Sidebar',
'before_widget' => '<div class="ftr-widget">',
'after_widget' => '</div><span class="specailShadow"></span>',
'before_title' => '<h3>',
'after_title' => '</h3>',
);
register_sidebar($args);
Problem
How does the function `exact($args)` work? What's the meaning of `$before_widget`, `$after_widget`?