Changeset 488824
- Timestamp:
- 01/12/2012 04:36:43 PM (14 years ago)
- File:
-
- 1 edited
-
islamic-graphics/trunk/islamic_graphics.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
islamic-graphics/trunk/islamic_graphics.php
r488806 r488824 34 34 extract( shortcode_atts( array( 35 35 'h' => '20', 36 'c' => '',37 36 ), $atts ) ); 38 37 39 38 $plugin_url = plugin_dir_url( "islamic_graphics.php" ); 40 39 41 if ("{$c}" == "w"){ $colour = "w"; } // ensures that the img url will not break if an invalid value is provided for {$c} 42 43 return "<img class=\"islamic_graphic\" src=\"$plugin_url" . "islamic_graphics/img/$code". $colour . ".png\" height=\"{$h}px\">"; 40 return "<img class=\"islamic_graphic\" src=\"$plugin_url" . "islamic_graphics/img/$code" . ".png\" height=\"{$h}px\">"; 44 41 } 45 42 … … 52 49 add_shortcode( 'swt', 'insert_islamic_graphic' ); 53 50 51 add_shortcode( 'alayhis_w', 'insert_islamic_graphic' ); 52 add_shortcode( 'ranha_w', 'insert_islamic_graphic' ); 53 add_shortcode( 'ranhu_w', 'insert_islamic_graphic' ); 54 add_shortcode( 'ranhum_w', 'insert_islamic_graphic' ); 55 add_shortcode( 'saw_w', 'insert_islamic_graphic' ); 56 add_shortcode( 'swt_w', 'insert_islamic_graphic' ); 57 54 58 ?>
Note: See TracChangeset
for help on using the changeset viewer.