| 1 |
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly |
| 2 |
#[AllowDynamicProperties] |
| 3 |
class SH4_Users_Html_Anon_View_Login |
| 4 |
{ |
| 5 |
public function __construct( |
| 6 |
HC3_Hooks $hooks, |
| 7 |
HC3_Uri $uri |
| 8 |
) |
| 9 |
{ |
| 10 |
$this->uri = $hooks->wrap( $uri ); |
| 11 |
} |
| 12 |
|
| 13 |
public function render() |
| 14 |
{ |
| 15 |
$back = $this->uri->makeUrl(); |
| 16 |
$to = wp_login_url( $back ); |
| 17 |
// wp_redirect( $to ); |
| 18 |
|
| 19 |
ob_start(); |
| 20 |
?> |
| 21 |
|
| 22 |
<a href="<?php echo $to; ?>">__Login__</a> |
| 23 |
|
| 24 |
<META http-equiv="refresh" content="0;URL=<?php echo $to; ?>"> |
| 25 |
|
| 26 |
<?php |
| 27 |
return ob_get_clean(); |
| 28 |
} |
| 29 |
} |