这应该可以做到:
<!-- START Title & static content -->
<div id="sidebar-right-default-content" class="span-6 last">
<h3><?php _e(\'Your headline for the sidebar\', TEXTDOMAIN); ?></h3>
<?php some_function(); ?>
</div>
<hr />
<!-- END Title & static content -->
<!-- Sidebar right (default) - Widget Area - Adds a predefined Textwidget until nothing is defined via Admin UI > Design > Widgets -->
<?php if ( !function_exists(\'dynamic_sidebar\') || !dynamic_sidebar() && !is_active_sidebar( \'widgets-sidebar-right-default\' ) ) :
the_widget(
\'WP_Widget_Text\'
,array(
\'title\' => \'Textwidget\'
,\'text\' => \'
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean et quam a ante sodales feugiat. Aliquam et vulputate turpis.
Mauris quis sodales neque. Sed vestibulum faucibus eros nec tincidunt.
Integer tortor magna, suscipit vitae ultricies vel, vehicula sit amet sapien.
</p>
\'
,\'filter\' => \'\'
)
,array(
\'before_widget\' => \'<div class="widget-container">\'
,\'after_widget\' => \'</div>\'
,\'before_title\' => \'<h4 class="widget-title">\'
,\'after_title\' => \'</h4>\'
)
);
elseif ( is_active_sidebar( \'widgets-sidebar-right-default\' ) ) :
dynamic_sidebar( \'widgets-sidebar-right-default\' );
endif;
?>
</div>
<!-- END Sidebar right (default) -->