Archive for January, 2012

Add Images of Islamic Phrases to Your WordPress Posts using Shortcodes

// January 24th, 2012 // 1 Comment » // Blog

For those who don't follow me on Twitter, just an update that I recently released my first WordPress plugin, called Islamic Graphics. It's a very simple script that allows self-hosted WordPress bloggers to embed images of common Islamic phrases into their posts and pages via shortcodes.

    Examples:

  • 'alayhis salam – 'alayhi'l-salām (peace be upon him) (peace be upon him)
  • rahimaha Allāhraḥimahā Allāh (may Allāh have mercy upon her) (may Allāh have mercy upon her)
  • rahimahu Allāhraḥimahullāh (may Allāh have mercy upon him) (may Allāh have mercy upon him)
  • rahimahum Allāhraḥimahum Allāh (may Allāh have mercy upon them) (may Allāh have mercy upon them)
  • radiallahu 'anha – raḍyAllāhu 'anha (may Allāh be pleased with her) (may Allāh be pleased with her)
  • radiallahu 'anhu – raḍyAllāhu 'anhu (may Allāh be pleased with him) (may Allāh be pleased with him)
  • radiallahu 'anhum – raḍyAllāhu 'anhum (may Allāh be pleased with them) (may Allāh be pleased with them)
  • sallalahu 'alayhi wa salam – ṣallallāhu 'alayhi wa sallam (peace and blessings of Allāh be upon him) (peace and blessings of Allāh be upon him)
  • subhanahu wa ta 'ala – subḥānahu wa ta'āla (glorified and exalted be He) (glorified and exalted be He)

A black version of each graphic is also provided, and there are also options to include text. Full preview available on my MuslimMatters post, which is also where I log plugin updates.
Download the Islamic Graphics plugin from the WordPress.org repository – don't forget to rate it. :)

Inshā’Allāh I plan to release another more complex WordPress plugin sometime soon. This development work is part of a forthcoming MuslimMatters website upgrade. It has served as a good excuse for me to learn PHP. Turns out it is similar to Perl, which reduced the learning curve alhamdulillah. :)

PHVsPjxsaT48c3Ryb25nPndvb3RoZW1lc19zZXR0aW5nczwvc3Ryb25nPiAtIGE6MDp7fTwvbGk+PGxpPjxzdHJvbmc+d29vX2Fib3V0PC9zdHJvbmc+IC0gQnJpdGlzaCBCbG9nZ2VyLCBEZXNpIERyZWFtZXIsIE1hZCBNdXNsaW1haDwvbGk+PGxpPjxzdHJvbmc+d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