Plugin Directory

Changeset 494125


Ignore:
Timestamp:
01/23/2012 06:37:14 PM (14 years ago)
Author:
iMuslim
Message:

Uploading v1.0.7: added alt and title text to images.

Location:
islamic-graphics/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • islamic-graphics/trunk/islamic_graphics.php

    r490001 r494125  
    55Plugin URI: http://plugins.muslimmatters.org
    66Description: 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.6
     7Version: 1.0.7
    88Author: Mehzabeen Ibrahim
    99Author URI: http://imuslim.tv
     
    2828*/
    2929
     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
    3052
    3153/* ISLAMIC GRAPHIC SHORTCODE FUNCTION */
     
    3759   
    3860    $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/";
    4165   
    4266    if ("{$h}" <= 20) { $html .= "20"; }
     
    4569    $html .= "/$code" . ".png\" height=\"{$h}px\">";
    4670   
    47     return $html; 
     71    return $html;
    4872    }
    4973
  • islamic-graphics/trunk/readme.txt

    r490010 r494125  
    55Requires at least: 2.0.2
    66Tested up to: 3.2.1
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88
    99Shortcode for the insertion of graphics representing the common Islamic phrases: SAW, RA, SWT and AS, into Wordpress posts and pages.
     
    6262E.g., the shortcode to insert the white "subhanahu wa ta 'ala" graphic: [swt_w]
    6363
     64= How do I see the meaning of the graphic in English? =
     65Hover the mouse cursor over the embedded image, and the meaning and transliteration should appear.
     66
    6467= Can I customise the graphic via CSS? =
    6568Yes. Images have the class reference 'islamic_graphic' to allow CSS customisation.
     
    6770= Who designed the graphics? =
    6871The 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.
     72The 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.
    7173
    7274
     
    7981== Changelog ==
    8082
    81 = 1.0.6. =
     83= 1.0.7 =
     84Added alt and title text to images.
     85
     86= 1.0.6 =
    8287Added images and codes for rahimahu Allah, rahimaha Allah and rahimahum Allah.
    8388
     
    103108== Upgrade Notice ==
    104109
     110= 1.0.7 =
     111Added alt and title text to images to show the transliterated version of the Islamic graphic, along with the translated meaning in English.
     112
    105113= 1.0.6 =
    106114Added images and codes for rahimahu Allah, rahimaha Allah and rahimahum Allah.
Note: See TracChangeset for help on using the changeset viewer.