<?php
/*
Plugin Name: Button Styles
*/

global $button_styles;
$button_styles = new Button_Styles();

class Button_Styles {

	function __construct() {
		add_action( 'admin_menu', array( &$this, 'menu' ) );
	}
	
	function menu() {
		add_management_page( __( 'Button Styles', 'buttons' ), __( 'Button Styles', 'buttons' ), 'edit_posts', __FILE__, array( &$this, 'page' ) );
	}
	
	function page() {
		?><div class="wrap">
		<h2><?php _e( 'Button Styles', 'buttons' ); ?></h2>

		<!-- <p><a href="#" title="This is here so you can easily cmd/ctrl+f to this part of the page">:)</a></p> -->

		<?php //submit_button( $text, $type, $name, $wrap, $other_attributes ); ?>
		
		<div style="float: left; width: 18%;">
			<?php
				submit_button('Primary', 'button-primary');
				submit_button('Primary (hover)', 'button-primary hover');
				submit_button('Primary (focus)', 'button-primary focus');
				submit_button('Primary (active)', 'button-primary active');
				submit_button('Primary (disabled)', 'button-primary active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>
		<div style="float: left; width: 18%;">
			<?php
				submit_button('Secondary', 'button-secondary');
				submit_button('Secondary (hover)', 'button-secondary hover');
				submit_button('Secondary (focus)', 'button-secondary focus');
				submit_button('Secondary (active)', 'button-secondary active');
				submit_button('Secondary (disabled)', 'button-secondary active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>
		<!-- <div style="float: left; width: 18%;">
			<?php
				submit_button('Delete', 'button-secondary delete');
				submit_button('Delete (hover)', 'button-secondary delete hover');
				submit_button('Delete (focus)', 'button-secondary delete focus');
				submit_button('Delete (active)', 'button-secondary delete active');
				submit_button('Delete (disabled)', 'button-secondary delete active', null,  null, array('disabled'=>'disabled'));
			?>
		</div> -->

		<div style="float: left; width: 18%;">
			<?php
				submit_button('Highlighted', 'button-highlighted');
				submit_button('Highlighted (hover)', 'button-highlighted hover');
				submit_button('Highlighted (focus)', 'button-highlighted focus');
				submit_button('Highlighted (active)', 'button-highlighted active');
				submit_button('Highlighted (disabled)', 'button-highlighted active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>

		<!-- <div class="clear"></div> -->

		<div style="float: left; width: 18%;">
			<?php
				submit_button('.button', 'button');
				submit_button('.button (hover)', 'button hover');
				submit_button('.button (focus)', 'button focus');
				submit_button('.button (active)', 'button active');
				submit_button('.button (disabled)', 'button active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>

		<div style="float: left; width: 14%;">
			<?php
				submit_button('Short', 'button short');
				submit_button('Short (hover)', 'button short hover');
				submit_button('Short (focus)', 'button short focus');
				submit_button('Short (active)', 'button short active');
				submit_button('Short (disabled)', 'button short active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>

		<div style="float: left; width: 14%;">
			<?php
				submit_button('Small', 'button small');
				submit_button('Small (hover)', 'button small hover');
				submit_button('Small (focus)', 'button small focus');
				submit_button('Small (active)', 'button small active');
				submit_button('Small (disabled)', 'button small active', null,  null, array('disabled'=>'disabled'));
			?>
		</div>

		</div><?php
	
	}
	
}