Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slogan plugin
#2
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.
Code:
(%slogan-name-goes-here%)
- without any spaces between (% and slogan name, for usage in page content

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 (% ... %).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Slogan plugin - by Zorato - 2012-09-13, 06:40:25
RE: Slogan plugin - by tazmandev - 2013-04-01, 12:58:03
RE: Slogan plugin - by Zorato - 2013-04-02, 00:28:03
RE: Slogan plugin - by Zorato - 2013-04-27, 08:34:29
RE: Slogan plugin - by tazmandev - 2013-04-28, 09:34:11
RE: Slogan plugin - by Timbow - 2014-05-03, 08:11:02
RE: Slogan plugin - by davetest - 2015-03-24, 20:51:33
RE: Slogan plugin - by Zorato - 2015-03-25, 01:29:53
RE: Slogan plugin - by davetest - 2015-03-25, 01:58:25
RE: Slogan plugin - by Carlos - 2015-03-25, 03:42:28
RE: Slogan plugin - by davetest - 2015-03-25, 07:19:10
RE: Slogan plugin - by shawn_a - 2015-03-25, 10:27:58
RE: Slogan plugin - by Carlos - 2015-03-26, 05:25:21
RE: Slogan plugin - by shawn_a - 2015-03-26, 06:44:09
RE: Slogan plugin - by davetest - 2015-04-14, 20:21:49
RE: Slogan plugin - by davetest - 2015-04-16, 07:06:26
RE: Slogan plugin - by simplycrazy - 2015-04-16, 10:41:05
RE: Slogan plugin - by davetest - 2015-04-16, 17:54:37
RE: Slogan plugin - by simplycrazy - 2015-04-16, 18:08:43
RE: Slogan plugin - by Tyblitz - 2015-04-18, 01:58:21
RE: Slogan plugin - by simplycrazy - 2015-04-18, 03:13:02
RE: Slogan plugin - by Tyblitz - 2015-04-18, 07:50:37
RE: Slogan plugin - by simplycrazy - 2015-04-18, 11:48:10
RE: Slogan plugin - by davetest - 2015-04-18, 05:17:28
RE: Slogan plugin - by Timbow - 2015-04-16, 08:05:14
RE: Slogan plugin - by Carlos - 2015-04-17, 00:19:37
RE: Slogan plugin - by Carlos - 2015-05-02, 18:55:11
RE: Slogan plugin - by davetest - 2015-05-02, 19:48:21
Slogan plugin - by mvlcek - 2012-09-20, 16:11:54



Users browsing this thread: 2 Guest(s)