Link to home
Start Free TrialLog in
Avatar of Larry Vollmer
Larry Vollmer

asked on

php syntax

I have this code:

<?      echo __('Oops, there is nothing in your cart.', 'wpsc') . " <a href='".get_option("product_list_url")."'>" . __('Please visit our shop', 'wpsc') . "</a>";
endif;
?>

I need to wrap the phrase like this:

<div style = "margin-top:75px"> echo __('Oops, there is nothing in your cart.', 'wpsc') . " <a href='".get_option("product_list_url")."'>" . __('Please visit our shop', 'wpsc') . "</a>" </div>


but it has to be in PHP - I am having difficulty writing this. Can anyone help out?
ASKER CERTIFIED SOLUTION
Avatar of Bruce Smith
Bruce Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Vollmer
Larry Vollmer

ASKER

thanks!
Sorry, line 3 should be this instead:
 
echo(' <a href="get_option(\'product_list_url\')">');

Open in new window

I got the slashes reversed.
yes i figured as much and made the change thank you!
Cool, glad I could help!

Cheers