Make WordPress Core

Ticket #21598: wp-button-styles.php

File wp-button-styles.php, 1.4 KB (added by bootsz, 14 years ago)

Err.. wrong file. Here it is!

Line 
1<?php
2/*
3Plugin Name: WP Button Styles
4Plugin URI: http://make.wordpress.org/ui
5Description: Enables a Button Styles page showcasing various core button styles.
6Author: WordPress UI Group
7Author URI: http://make.wordpress.org/ui
8Version: 1.0
9*/
10
11/**
12 * Adds a tab "Style Guide" to the admin menu
13 */
14function wp_button_styles_add_page() {
15 add_menu_page( 'Button Styles', 'Button Styles', 'add_users', 'wp-button-styles.php', 'wp_button_styles_render_page');
16}
17add_action('admin_menu', 'wp_button_styles_add_page');
18
19/**
20 * Renders the Style Guide page
21 */
22function wp_button_styles_render_page() {
23 ?>
24 <div class="wrap">
25 <h2>Style Guide</h2>
26 <p>
27 <? submit_button( __( 'Primary Button' ), 'button-primary', false, false, array() ); ?>
28 <? submit_button( __( 'Primary Button Disabled' ), 'button-primary button-primary-disabled', false, false, array() ); ?>
29 </p>
30 <p>
31 <? submit_button( __( 'Regular Button' ), 'button', false, false, array() ); ?>
32 <? submit_button( __( 'Button Disabled' ), 'button button-disabled', false, false, array() ); ?>
33 <? submit_button( __( 'Button Highlighted' ), 'button button-highlighted', false, false, array() ); ?>
34 </p>
35 <p>
36 <? submit_button( __( 'Small' ), 'button small', false, false, array() ); ?>
37 <? submit_button( __( 'Short' ), 'button short', false, false, array() ); ?>
38 <? submit_button( __( 'Large' ), 'button large', false, false, array() ); ?>
39 </p>
40 </div>
41
42
43 <?php
44}