public static function close() { self::$type = self::VERTICAL; return parent::close(); }
<? BForm::$type = BForm::HORIZONTAL ?> <h2>Login</h2> <? if ($message) : ?> <h3 class="message"> <?php echo $message; ?> </h3> <? endif; ?> <?php echo BForm::open('user/login'); ?> <?php echo BForm::input('username', HTML::chars(Arr::get($_POST, 'username')), array('required' => '')); ?> <?php echo BForm::password('password', NULL, array('required' => '')); ?> <?php echo BForm::checkbox('remember', NULL, NULL, NULL, 'Remember me', __('Remember Me keeps you logged in for 2 weeks')); ?> <? if ($show_actions): ?> <?php echo BForm::form_actions(BForm::submit('login', 'Login'));