| | |
| | | // Allow other features to register handlers |
| | | do_action('jvbLoginManagerInit', $this); |
| | | add_action('user_register', array($this, 'saveRegistrationFields'), 999, 2); |
| | | add_filter('the_seo_framework_sitemap_exclude_ids', [$this, 'excludeLoginSitemap'], 10, 1); |
| | | add_filter('the_seo_framework_sitemap_exclude_ids', [$this, 'excludeLoginSitemap'], 8, 1); |
| | | } |
| | | public static function getInstance():self |
| | | { |
| | |
| | | |
| | | public function excludeLoginSitemap(array $ids): array |
| | | { |
| | | $ids[] = $this->getLoginPage(); |
| | | $loginPage = $this->getLoginPage(); |
| | | if (!empty($loginPage)) { |
| | | $ids = array_merge($ids, [$loginPage]); |
| | | } |
| | | return $ids; |
| | | } |
| | | /************************************************************************** |
| | |
| | | { |
| | | $form = $this->action.'form'; |
| | | ?> |
| | | <section class="login-box col btw"> |
| | | <section class="login-box col y-btw"> |
| | | <h1><?=$this->labels['title']?></h1> |
| | | <?= $this->labels['description'] ?> |
| | | |
| | |
| | | } |
| | | ?> |
| | | |
| | | <div class="options row btw"> |
| | | <div class="options row x-btw"> |
| | | <?php |
| | | switch ($this->action) { |
| | | case 'login': ?> |
| | |
| | | |
| | | </div> |
| | | </section> |
| | | <div class="navigation row btw"> |
| | | <div class="navigation row x-btw"> |
| | | <a href="<?= get_home_url() ?>">Home</a> |
| | | <?php |
| | | $privacy = get_privacy_policy_url(); |
| | |
| | | %s |
| | | %s |
| | | %s |
| | | <div class="row btw nowrap"> |
| | | <div class="row x-btw nowrap"> |
| | | <button type="submit" class="button button-primary button-large">%s</button> |
| | | %s |
| | | </div> |