Non puoi "mischiare" php e html.
Per inserire il banner, dovresti stampare l'html sottoforma di una stringa php (tipo heredoc) o chiudere e poi riaprire (nel caso in cui il codice php sotto continua) i delimitatori del php (che sono <?php e ?>).
Con questo codice non dovresti avere particolari problemi:
Codice PHP:
function arras_nav_fallback_cb() {
echo '<ul class="sf-menu menu clearfix">';
wp_list_categories('hierarchical=1&orderby=id&hide _empty=1&title_li=');
echo '</ul>';
}
function arras_debug($exp) {
//if (current_user_can('manage_options')) {
echo '<pre><code style="max-height: 200px; overflow: scroll">' . htmlentities( print_r($exp, true) ) . '</code></pre>';
//}
}
/* End of file template.php */
/* Location: ./library/template.php */
echo <<<EOF
<script type="text/javascript">
/* <![CDATA[ */
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=120X600/r='+new Date().getTime()+'"><\/s'+'cript>');
/* ]]> */
</script>
EOF;