public function addNavBar() { echo '<ul class = "btn-group" role = "group" aria-label = "..."> <li class = "btn btn-default"><a href="' . \GTFramework\Kernel::getInstance()->helper('\\Helpers\\Link', 'getPages') . '" >Home</a></li> <li class = "btn btn-default"><a href="">About</a></li> <li class = "btn btn-default"><a href="">FAQ\'S</a></li> <li class="btn btn-default"><a href="">Login</a></li> </ul>' . PHP_EOL; }
public function addRegisterForm() { echo '<form method="POST" action="Register"> <div class="form-group"> <label for="username">Your username</label> <input class="form-control" type="text" name="username" placeholder="Username"/> </div> <div class="form-group"> <label for="inputEmail">Email address</label> <input type="email" class="form-control" id="inputEmail" placeholder="Email"> </div> <div class="form-group"> <label for="password">Input a password</label> <input class="form-control" type="password" name="password" placeholder="Password"/> </div> <div class="form-group"> <label for="passwordRe">Input a password</label> <input class="form-control" type="password" name="passwordRe" placeholder="Retype the password"/> </div> <input type="hidden" name="AFToken" value="' . \GTFramework\Kernel::getInstance()->helper('\\Helpers\\AFToken', 'getToken') . '"/> <button type="submit" class="btn btn-default">Register</button> </form>' . PHP_EOL; }
<!DOCTYPE html> <html lang="en"> <head> <?php echo \GTFramework\Kernel::getInstance()->helper('\\Helpers\\LoadCDN', 'loadAll'); ?> <title><?php echo $this->title; ?> </title> </head> <body> <div id="wrapper"> <header> <?php $navBar = new \Views\Layouts\Header(); $navBar->addNavBar(); ?> </header> <main> <?php $register = new Views\PartialViews\Register(); $register->addRegisterForm(); ?> <?php echo $this->getLayoutData('body2') . PHP_EOL; ?> </main> <footer> <?php $license = new \Views\Layouts\Footer();