![]() |
|
Different Website URL for multilanguage site - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Different Website URL for multilanguage site (/thread-9803.html) |
Different Website URL for multilanguage site - nbruley - 2012-03-26 What is the easiest hack to change Options-Gallery-Website URL depending on the language chosen? Should I change the function or just hard-code it in the theme? I'm guessing changing the theme would work better with upgrades. Thanks. Different Website URL for multilanguage site - acrylian - 2012-03-26 I think you answered yourself..;-) Different Website URL for multilanguage site - nbruley - 2012-03-26 Good, Just needed reassurance some better method wasn't out there Different Website URL for multilanguage site - nbruley - 2012-03-28 Does Zenphoto have a method of overriding php functions from the core in functions.php in the theme? Just checking as that would be easier than hardcoding in each php file of the theme, which then makes it harder to duplicate the theme in another site. Different Website URL for multilanguage site - acrylian - 2012-03-28 You cannot override (which means re-declaring) existing php functions by design of PHP. If you need specific functionality you need to create theme custom functions (all explained on the theming tutorial) or a custom plugin. |