Classe bsDocument

Description

La classe bsDocument permet de créer une page Web utilisant Twitter Bootstrap.

Constructor

public function __construct()

Ce dérivé de htmlDocument ajoute les informations standards d'une page Bootstrap au document.

Exemple


<?php
  
require_once('../classes.php');
  
$document = new bsDocument();
  
$document->addHeader(1'Hello, world!');
  
$document->output();
<!DOCTYPE html>
<html lang="fr">
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!--[if lt IE 9]>
   <script type="text/javascript" src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
   <script type="text/javascript" src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <title>Bootstrap Template</title>
  <link href="css/bootstrap.min.css" rel="stylesheet">
 </head>
 <body>
  <h1>Hello, world!</h1>
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script type="text/javascript" src="js/bootstrap.min.js"></script>
 </body>
</html>