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