From Marty, 2 Years ago, written in PHP.
Embed
  1. function fmc_cdu($atts, $content = null ) {
  2. extract(shortcode_atts(array(
  3.     'bgcolor' => '#e5e5e5',
  4.     'bordercolor' => '#000000',
  5.     'borderwidth' => '1px',
  6.     'bordertype' => 'solid',
  7.     'fontcolor' => '#000000',
  8.   ), $atts));
  9.   return "<font style=\"padding: 1px 1px 1px 1px; color: $fontcolor; background-color: $bgcolor; border: $bordercolor $border $bordertype $borderwidth\">&nbsp;$content&nbsp;</font>";
  10. }
  11. add_shortcode('fmc','fmc_cdu');