Ticket #4478: sample.login.php
| File sample.login.php, 480 bytes (added by stealthdave, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /** |
| 3 | * defines custom login header and footer to provide a themed login page |
| 4 | */ |
| 5 | // Rather than duplicating this HTML all over the place, we'll stick it in function |
| 6 | function login_header($title = 'Login', $message = '', $wp_error = '') { |
| 7 | get_header(); |
| 8 | get_sidebar(); |
| 9 | ?> |
| 10 | <div id="main"> |
| 11 | <div id="login"><h2><?php echo $title ?></h2> |
| 12 | <?php |
| 13 | login_header_error($message, $wp_error); |
| 14 | } // End of login_header() |
| 15 | |
| 16 | function login_footer() { |
| 17 | ?> |
| 18 | </div> |
| 19 | <?php |
| 20 | get_footer(); |
| 21 | } |
| 22 | ?> |
