html5 - How to fix this php syntax error? -


how fix syntax error on line 4.

    if ( function_exists('register_sidebar') )     register_sidebar(array(         'before_widget' => '',         'after_widget' => '<img src="<?php bloginfo('template_url');?> /img/sub_page/horizontal_separator.png" style="margin-bottom: 15px;" alt="" />',         'before_title' => '<h3>',         'after_title' => '</h3>',     ));  add_action( 'init', 'register_my_menu' ); 

you dont need reopen php echoing string.

it should be:

if ( function_exists('register_sidebar') )     register_sidebar(array(         'before_widget' => '',         'after_widget' => '<img src="'.bloginfo('template_url').'"/img/sub_page/horizontal_separator.png" style="margin-bottom: 15px;" alt="" />',         'before_title' => '<h3>',         'after_title' => '</h3>',     ));  add_action( 'init', 'register_my_menu' ); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -