Plugin Directory

Changeset 488824


Ignore:
Timestamp:
01/12/2012 04:36:43 PM (14 years ago)
Author:
iMuslim
Message:

Changed code to handle new img file names

File:
1 edited

Legend:

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

    r488806 r488824  
    3434    extract( shortcode_atts( array(
    3535        'h' => '20',
    36         'c' => '',
    3736    ), $atts ) );
    3837   
    3938    $plugin_url = plugin_dir_url( "islamic_graphics.php" );
    4039   
    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\">";
    4441    }
    4542
     
    5249add_shortcode( 'swt', 'insert_islamic_graphic' );
    5350
     51add_shortcode( 'alayhis_w', 'insert_islamic_graphic' );
     52add_shortcode( 'ranha_w', 'insert_islamic_graphic' );
     53add_shortcode( 'ranhu_w', 'insert_islamic_graphic' );
     54add_shortcode( 'ranhum_w', 'insert_islamic_graphic' );
     55add_shortcode( 'saw_w', 'insert_islamic_graphic' );
     56add_shortcode( 'swt_w', 'insert_islamic_graphic' );
     57
    5458?>
Note: See TracChangeset for help on using the changeset viewer.