I do render menu in HTML like that
<div id="mybuttonscontainer">
<ul>
<li><a href="<?php echo get_link('option1'); ?>"> Option 1</a></li>
<li><a href="<?php echo get_link('option2'); ?>">Option 2</a></li>
</ul>
</div>
Now I want to put that code into function
render_menu('current_option');
Do I have to put the whole string into one echo statement?
you can put it all in echo or just use it like that by wrapping it inside output buffering.