Dynamic_sidebar load in string makeup

You could use output buffering to catch the display of the sidebar. This does make it a bit more difficult to debug should you need to but it will get you what you need:

ob_start();

    dynamic_sidebar( 'header-widget' );

$sidebar        = ob_get_clean();
$menu_markup    = '<header class="%s header">' . $sidebar . '</div>';

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)