- // Could do something with $this->registered[$handle]->extra here to print out extra CSS rules
-// echo "<style type='text/css'>\n";
-// echo "/* <![CDATA[ */\n";
-// echo "/* ]]> */\n";
-// echo "</style>\n";
+ $after = $this->get_data( $handle, 'after' );
+ if ( !$after )
+ $after = array();
+
+ $after[] = $code;
+
+ return $this->add_data( $handle, 'after', $after );
+ }
+
+ function print_inline_style( $handle, $echo = true ) {
+ $output = $this->get_data( $handle, 'after' );
+
+ if ( empty( $output ) )
+ return false;
+
+ $output = implode( "\n", $output );
+
+ if ( !$echo )
+ return $output;
+
+ echo "<style type='text/css'>\n";
+ echo "$output\n";
+ echo "</style>\n";