PHP Classes

File: HtmlPage.php

Recommend this page to a friend!
  Classes of Mario Carrocera   HTML Google Fonts using PHP on Time   HtmlPage.php   Download  
File: HtmlPage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: HTML Google Fonts using PHP on Time
Store and retrieve font values to use in Web pages
Author: By
Last change:
Date: 2 years ago
Size: 711 bytes
 

Contents

Class file image Download
<?php
ini_set
('display_errors', true);
error_reporting(E_ERROR | E_PARSE | E_NOTICE | E_WARNING);

include_once(
'Classcommon.php');
$license = new CCLicense(3,2,1);

include_once(
'HtmlClass.php');
$html = new html();
$html->SetPage('page');
$html->SetMeta('screen');
$html->SetGoogle('letters');


// Just to have something to see on body
$google = $html->ShwCntIn('letters',"page");
?>
<!DOCTYPE html>
<html>
    <?php $html->Getheader(); ?>
<body>
<?php foreach ($google as $clave => $valor) { if ($valor=='google') { ?>
<p style=<?php echo '"font-family:'.$clave ; ?>">This is a paragraph <?php echo $clave; ?>.</p>
<?php }} ?>
</body>
</html>
<?php echo '<br>'.$license->logo . '</br>'.$license->url; ?>