Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="loginform" id="loginform" action="<?php echo site_url('/wp-login.php') ?>" method="post">
- <table class="logtable">
- <tr>
- <td class="first"><label for="user_login"><?php _e('Username:','your-theme') ?></label></td>
- <td class="second"><input type="text" name="log" id="user_login" class="input" value="" size="20"></td>
- </tr>
- <tr>
- <td class="first"><label for="user_pass"><?php _e('Password:','your-theme') ?></label></td>
- <td class="second"><input type="password" name="pwd" id="user_pass" class="input" value="" size="20"></td>
- </tr>
- <tr>
- <td class="remember" colspan="2">
- <label><input name="rememberme" type="checkbox" id="rememberme" value="forever"> <?php _e('Remember me','your-theme') ?></label>
- </td>
- </tr>
- <tr>
- <td class="submit" colspan="2">
- <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php _e('Log in','your-theme') ?>">
- <input type="hidden" name="redirect_to" value="<?php echo home_url() ?>">
- </td>
- </tr>
- </table>
- </form>
- function blockDashboard() {
- $file = basename($_SERVER['PHP_SELF']);
- if (is_user_logged_in() && is_admin() && !current_user_can('administrator') && $file != 'admin-ajax.php'){
- wp_redirect( home_url() );
- exit();
- }
- }
- add_action('init', 'blockDashboard' );
- <p class="logout">
- <?php wp_loginout( home_url() ) ?>
- </p>
- <?php
- add_action('login_header', function () {
- wp_dequeue_style('login');
- wp_deregister_style('login');
- ?>
- <!doctype html>
- <html <?php language_attributes();?>>
- <?php get_template_part('templates/head');?>
- <body <?php body_class();?>>
- <!--[if IE]>
- <div class="alert alert-warning">
- <?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage');?>
- </div>
- <![endif]-->
- <div class="container-fluid">
- <div class="row">
- <?php
- do_action('get_header');
- get_template_part('templates/header');
- ?>
- </div>
- </div>
- <div class="wrap container w-75" role="document">
- <div class="content row">
- <main class="main">
- <?php
- });
- add_action('login_footer', function () {
- ?>
- </main><!-- /.main -->
- </div><!-- /.content -->
- </div><!-- /.wrap -->
- <script type="text/javascript">
- jQuery("body").addClass("custom-background");
- //jQuery("#login-css").remove();
- </script>
- <?php
- do_action('get_footer');
- get_template_part('templates/footer');
- wp_footer();
- ?>
- </body>
- </html><?php
- });
- jQuery("#login-css").remove();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement