'form-stacked']); $params = [ 'placeholder' => get_lang('UserName'), ]; // Avoid showing the autocapitalize option if the browser doesn't // support it: this attribute is against the HTML5 standard if (api_browser_support('autocapitalize')) { $params['autocapitalize'] = 'none'; } $form->addElement( 'text', 'login', null, $params ); $params = [ 'placeholder' => get_lang('Password'), ]; if (api_browser_support('autocapitalize')) { $params['autocapitalize'] = 'none'; } $form->addElement( 'password', 'password', null, $params ); $form->addButtonNext(get_lang('LoginEnter'), 'submitAuth'); $msg .= '
'; $msg .= $form->returnForm(); $msg .= '
'; $msg .= '

'.get_lang('ReturnToCourseHomepage').'

'; $tpl->assign('content', '

'.get_lang('LoginToGoToThisCourse').'

'.$msg); $tpl->display_one_col_template(); } else { api_delete_firstpage_parameter(); header('Location: '.api_get_path(WEB_PATH).'index.php'); exit; }