function rublon2factor_render_acm_page() { ?> <div class="wrap"> <div id="rublon2factor_acm_page"> <h2 class="rublon-header"> <?php echo __('Rublon', 'rublon') . ' - ' . __('Account Sharing Manager', 'rublon'); ?> </h2> <p> <?php echo __('Rublon instantly protects all accounts with effortless, email-based two-factor authentication.', 'rublon') . ' ' . __('Get the optional mobile app for more security!', 'rublon') . ' ' . sprintf(__('Learn more at <a href="%s" target="_blank">wordpress.rublon.com</a>.', 'rublon'), RublonHelper::wordpressRublonComURL()); ?> </p> <?php // ACM widget $current_user = wp_get_current_user(); if (RublonHelper::canShowACM() && RublonHelper::isUserAuthenticated($current_user)) { $gui = Rublon2FactorGUIWordPress::getInstance(); echo $gui->getACMWidget(); } ?> </div> </div> <?php }