public function widget($args, $instance)
 {
     $client_id = WP_Auth0_Options::get('client_id');
     if (trim($client_id) != "") {
         echo $args['before_widget'];
         $settings = WP_Auth0::buildSettings($instance);
         $settings['show_as_modal'] = $this->showAsModal();
         $settings['modal_trigger_name'] = isset($instance['modal_trigger_name']) ? $instance['modal_trigger_name'] : 'Login';
         require_once WPA0_PLUGIN_DIR . 'templates/login-form.php';
         renderAuth0Form(false, $settings);
         echo $args['after_widget'];
     }
 }
Ejemplo n.º 2
0
 public static function render_form($html)
 {
     $client_id = WP_Auth0_Options::get('client_id');
     if (trim($client_id) == "") {
         return;
     }
     ob_start();
     require_once WPA0_PLUGIN_DIR . 'templates/login-form.php';
     renderAuth0Form();
     $html = ob_get_clean();
     return $html;
 }
Ejemplo n.º 3
0
</style>

<div class="clear"></div>

<div class="container">

    <div class="row padbottom padtop vertical-align">
        <div class="col-md-2 col-md-offset-2">
            <?php 
/**
 * Detect Auth0 plugin. 
 */
if (isset($_GET['wle'])) {
    wp_login_form();
} else {
    renderAuth0Form(true, array("mode" => $mode));
}
?>
        </div>
        <div class="col-md-offset-2">
            <div> 
            <ul class="list-unstyled">
                <li><?php 
echo $loginmessage;
?>
</li>
		<li class="mftagline padtop">
                <img style="width: auto; height: 58px; margin-right:10px;" src="http://makerfaire.com/wp-content/uploads/2015/05/makey-lg-01.png">The Maker Faire Team
                </li>	</ul>
            </div>
        </div>