?> </div> <?php } ?> </div> <?php } ?> <div class="zbase-ui-wrapper zbase-ui-tab tab-pane fade" id="accounttabsaccount"> <?php if (!empty($adminView)) { ?> <?php if (zbase_auth_can_duplex()) { ?> <?php echo $selectedUser->loginAs(); ?> <hr /> <?php } ?> <?php echo zbase_widget($moduleName . '-status', [], true, $widgetConfig); ?> <hr /> <?php } ?>
/** * LoginAs Button * @return type */ public function loginAs() { if (zbase_auth_can_duplex()) { return '<a class="btn btn-sm btn-danger" href="' . zbase_url_from_route('admin.duplex', ['action' => 'duplex', 'id' => $this->id()]) . '" title="Login As ' . $this->displayName() . '">Login As ' . $this->displayName() . '</a>'; } }