Larry Vollmer
asked on
php syntax
I have this code:
<? echo __('Oops, there is nothing in your cart.', 'wpsc') . " <a href='".get_option("produc t_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("produc t_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?
<? echo __('Oops, there is nothing in your cart.', 'wpsc') . " <a href='".get_option("produc
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("produc
but it has to be in PHP - I am having difficulty writing this. Can anyone help out?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, line 3 should be this instead:
echo(' <a href="get_option(\'product_list_url\')">');
I got the slashes reversed.
ASKER
yes i figured as much and made the change thank you!
Cool, glad I could help!
Cheers
Cheers
ASKER