Fornatted html using hooks
-
I was wondering if there is an easy way to return formatted html using a hook?
function add_theme_link() { echo '<div id="footer">' .'<p class="copy">© ' .date('Y').' '.get_bloginfo('name').' Urban View theme by <a href="http://cssmayo.com">.css{mayo}</a>, Powered by <a href="http://wordpress.org" rel="nofollow">WordPress</a>' .'</p>' .'</div><!-- footer -->'; } add_action('wp_footer', 'add_theme_link', 1);I would like the HTML that is printed out to be formatted with new lines, tabs and such. As it is now it all prints out on a single line.
I know I could do this by modifying the template(footer.php)but I would like to keep the template as free of code as possible. Any help would be appreciated
The topic ‘Fornatted html using hooks’ is closed to new replies.