3 function wp_ozh_yourls_add_page() {
\r
4 add_options_page('Ozh\'s PLC Bridge', 'PLC Bridge', 'manage_options', 'ozh_plc', 'wp_ozh_yourls_do_page');
\r
8 function wp_ozh_yourls_do_page() {
\r
11 <h2>Your Plugin Name</h2>
\r
13 <form method="post" action="options.php">
\r
14 <?php settings_fields('wp_ozh_yourls_options'); ?>
\r
17 ozh_yourls_twitter_login
\r
18 ozh_yourls_twitter_password
\r
19 ozh_yourls_twitter_msg
\r
29 <table class="form-table">
\r
32 <th scope="row">Posts</th>
\r
33 <td><input type="hidden" value="0" name="ozh_plc[do_posts]"/>
\r
34 <input name="ozh_plc[do_posts]" id="ozh_yourls_do_posts" type="checkbox" value="1" <?php checked('1', get_option('ozh_yourls_do_posts')); ?> /></td>
\r
38 <th scope="row">Pages</th>
\r
39 <td><input type="hidden" value="0" name="ozh_plc[do_pages]"/>
\r
40 <input name="ozh_plc[do_pages]" id="ozh_yourls_do_pages" type="checkbox" value="1" <?php checked('1', get_option('ozh_yourls_do_pages')); ?> /></td>
\r
45 <th scope="row">Login</th>
\r
46 <td><input type="text" name="ozh_plc[twitter_login]" value="<?php echo get_option('ozh_yourls_twitter_login'); ?>" /></td>
\r
50 <th scope="row">Pwd</th>
\r
51 <td><input type="text" name="ozh_plc[twitter_password]" value="<?php echo get_option('ozh_yourls_twitter_password'); ?>" /></td>
\r
56 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
\r