![]() |
|
Changing the way Google Maps is integrated - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Changing the way Google Maps is integrated (/thread-5591.html) |
Changing the way Google Maps is integrated - mypart - 2009-08-02 Hi! In the first case, when google_maps is deactivated I get a "PHP Parse error: syntax error, unexpected '{' " So obviously my manipulation of the if-clause breaks it when returning false. Can you help me fixing this? Changing the way Google Maps is integrated - sbillard - 2009-08-03 Maybe you need to do a little refresher course on PHP. If you want to condition statements with an if statement, all the statements you wish executed must be within the braces. In your case above, only the echo statement is conditioned by the function_exists test. BTW: you really should look at the function documentation. You can include the text to display as a parameter to the function. The themeing guide discusses localization. |