Example #1
0
    
    <title>Ice9 Creative</title>
    <meta name="description" content="Company website">
    <meta name="author" content="Richard Ber Chapman">
    
    <!-- TO BE MOVED TO PHP CALLS -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>    
    <script src="/js/quickContact.js"></script>        
    
    <!-- HEADER -->
</head>
<?php 
include 'php-dev/header.php';
?>
<body id="<?php 
getCurrentFileName();
?>
">
<header>
    <h1><?php 
echo COMPANY;
?>
 Creative</h1>
    <p><?php 
echo SLOGAN;
?>
</p>
    <h3>Painless Web Solutions</h3>
    <h4>web agency</h4>
</header>
<div class="banner contact-CTA center">
Example #2
0
<?php

//CONSTANTS
//GLOBAL CONSTANTS
define("COMPANY", "Ice9");
define("SITENAME", COMPANY);
define("SLOGAN", "cool collective");
//STYLE
//GLOBAL STYLESHEETS
include 'snippets/header_styles.html';
//CUSTOM, PAGE-SPECIFIC STYLESHEETS
echo '<link rel="stylesheet" href="style/custom-page-styles/', getCurrentFileName(), '.css">';
//FUNCTIONS
/* getCurrentFileName */
// Gets current file name (returns file name where it is invoked)
function getCurrentFileName()
{
    $thisfile = basename($_SERVER['PHP_SELF'], '.php');
    echo $thisfile;
}