Changeset 494125
- Timestamp:
- 01/23/2012 06:37:14 PM (14 years ago)
- Location:
- islamic-graphics/trunk
- Files:
-
- 2 edited
-
islamic_graphics.php (modified) (4 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
islamic-graphics/trunk/islamic_graphics.php
r490001 r494125 5 5 Plugin URI: http://plugins.muslimmatters.org 6 6 Description: Shortcodes for the insertion of graphics representing the common Islamic phrases: SAW, RA, SWT and AS, into Wordpress posts and pages. 7 Version: 1.0. 67 Version: 1.0.7 8 8 Author: Mehzabeen Ibrahim 9 9 Author URI: http://imuslim.tv … … 28 28 */ 29 29 30 /* GLOBAL ARRAY OF SHORTCODE-ALT TEXT VALUES */ 31 $alt_text = array( 32 "alayhis" => "'alayhi'l-salām (peace be upon him)", 33 "rahimaha" => "raḥimahā Allāh (may Allah have mercy upon her)", 34 "rahimahu" => "raḥimahullāh (may Allah have mercy upon him)", 35 "rahimahum" => "raḥimahum Allāh (may Allah have mercy upon them)", 36 "ranha" => "raḍyAllāhu 'anha (may Allah be pleased with her)", 37 "ranhu" => "raḍyAllāhu 'anhu (may Allah be pleased with him)", 38 "ranhum" => "raḍyAllāhu 'anhum (may Allah be pleased with them)", 39 "saw" => "ṣallallāhu 'alayhi wa sallam (peace and blessings of Allah be upon him)", 40 "swt" => "subḥānahu wa ta'āla (glorified and exalted be He)", 41 "alayhis_w" => "'alayhi'l-salām (peace be upon him)", 42 "rahimaha_w" => "raḥimahā Allāh (may Allah have mercy upon her)", 43 "rahimahu_w" => "raḥimahullāh (may Allah have mercy upon him)", 44 "rahimahum_w" => "raḥimahum Allāh (may Allah have mercy upon them)", 45 "ranha_w" => "raḍyAllāhu 'anha (may Allah be pleased with her)", 46 "ranhu_w" => "raḍyAllāhu 'anhu (may Allah be pleased with him)", 47 "ranhum_w" => "raḍyAllāhu 'anhum (may Allah be pleased with them)", 48 "saw_w" => "ṣallallāhu 'alayhi wa sallam (peace and blessings of Allah be upon him)", 49 "swt_w" => "subḥānahu wa ta'āla (glorified and exalted be He)" 50 ); 51 30 52 31 53 /* ISLAMIC GRAPHIC SHORTCODE FUNCTION */ … … 37 59 38 60 $plugin_url = plugin_dir_url( "islamic_graphics.php" ); 39 40 $html = "<img class=\"islamic_graphic\" src=\"$plugin_url" . "islamic-graphics/img/"; 61 62 $alt_text_str = $GLOBALS['alt_text'][$code]; 63 64 $html = "<img title=\"". $alt_text_str . "\" alt=\"". $alt_text_str . "\" class=\"islamic_graphic\" src=\"$plugin_url" . "islamic-graphics/img/"; 41 65 42 66 if ("{$h}" <= 20) { $html .= "20"; } … … 45 69 $html .= "/$code" . ".png\" height=\"{$h}px\">"; 46 70 47 return $html; 71 return $html; 48 72 } 49 73 -
islamic-graphics/trunk/readme.txt
r490010 r494125 5 5 Requires at least: 2.0.2 6 6 Tested up to: 3.2.1 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 9 9 Shortcode for the insertion of graphics representing the common Islamic phrases: SAW, RA, SWT and AS, into Wordpress posts and pages. … … 62 62 E.g., the shortcode to insert the white "subhanahu wa ta 'ala" graphic: [swt_w] 63 63 64 = How do I see the meaning of the graphic in English? = 65 Hover the mouse cursor over the embedded image, and the meaning and transliteration should appear. 66 64 67 = Can I customise the graphic via CSS? = 65 68 Yes. Images have the class reference 'islamic_graphic' to allow CSS customisation. … … 67 70 = Who designed the graphics? = 68 71 The SAW graphic is based on the unicode symbol: ﷺ. 69 AS and RA graphics were based on the font "Islamic Phrases", designed by AlMedia.net, which is available to download for free, for personal use only, from http://www.almedia.net/free-arabic-fonts.htm. 70 Other graphics were hand drawn. 72 The other graphics were based on the font "Islamic Phrases", designed by AlMedia.net, which is available to download for free, for personal use only, from http://www.almedia.net/free-arabic-fonts.htm. 71 73 72 74 … … 79 81 == Changelog == 80 82 81 = 1.0.6. = 83 = 1.0.7 = 84 Added alt and title text to images. 85 86 = 1.0.6 = 82 87 Added images and codes for rahimahu Allah, rahimaha Allah and rahimahum Allah. 83 88 … … 103 108 == Upgrade Notice == 104 109 110 = 1.0.7 = 111 Added alt and title text to images to show the transliterated version of the Islamic graphic, along with the translated meaning in English. 112 105 113 = 1.0.6 = 106 114 Added images and codes for rahimahu Allah, rahimaha Allah and rahimahum Allah.
Note: See TracChangeset
for help on using the changeset viewer.