2012-09-20, 16:11:54
Zorato Wrote:Simple plugin written during one evening.
As I was making sites for my client I restricted their access to 'Themes' tab by wonderful Multi user plugin. This ensured that themes template files won't be corrupted by ordinary users. I used 'components' in 'Themes' tab to place there small phrases and slogans from page titles or sidebars (and they've been translated by i18n plugin, thanks to Mvlcek). As this slogans contained some user info (such as emails, telephone numbers etc) I decided to write a slogan-plugin, that would be editable by users in 'Pages' tab.
Usage
Usage doesn't differs from 'component' usage.
- without any spaces between (% and slogan name, for usage in page contentCode:(%slogan-name-goes-here%)
Nice that I'm not the only one writing plugins that are multi-language capable :-)
Just one comment:
Your syntax differs from the de-facto standard for GS and might clash with other plugins.
E.g. if the user has I18N Gallery installed and uses a slogan "gallery" then - depending on which plugin loads first - either I18N Gallery won't work on that page or would remove the placeholder and Slogan won't work.
It would be better to use a syntax of (% slogan slogan-name-goes-here %) like the other plugins using (% ... %).