<?php
include('widgets/index.php');
include('posart/functions.php');
add_theme_support('nav-menus');


function deel_strimwidth($str ,$start , $width ,$trimmarker ){
    $output = preg_replace('/^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$start.'}((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$width.'}).*/s','\1',$str);
    return $output.$trimmarker;
}
function avatar_default(){ 
  return get_bloginfo('template_directory').'/images/avatar.png';
}

if ( function_exists('register_sidebar')){
register_sidebar(array('name'=>'底部通用',
		'id'            => 'widget_sidebar',
		'before_widget' => '<div class="widget %2$s">',
		'after_widget'  => '</div>',
		'before_title'  => '<h3 class="widget_tit">',
		'after_title'   => '</h3>'
));

}
?>