'', 'height' => '', 'class' => '', 'id' => '', ), $args ); extract( $defaults ); self::$args = $defaults; $uniqid = uniqid('doughnut-'); $this->id = $id.$uniqid; $html = ' '; return $html; } /** * Render the child shortcode * @param array $args Shortcode paramters * @param string $content Content between shortcode * @return string HTML output */ function render_child( $args, $content = '') { $defaults = Magee_Core::set_shortcode_defaults( array( 'value' =>'', 'color' =>'', ), $args ); extract( $defaults ); self::$args = $defaults; $html = '{ value: '.esc_attr($value).', color : "'.esc_attr($color).'", },'; return $html; } } new Magee_Chart_Doughnut(); endif;