@aMBedue
Unfortunately you cannot place PHP code to widget, I do not think it can work.
Only what can be placed in widget can be HTML code.
Therefore you need to place this code directly to theme files (but you need to do it only once).
Note that correct code format is:
<?php echo show_banner( xxx ); ?>