<?php
date_default_timezone_set('America/New_York'); // php.ini error work-around
/* use this prototype as a starting point when creating a two column page using
* /shared/inc/PageFrame.php to build the [X]HTML framework for the page.
*
* Instructional comments should be removed in the process of 'personalizing' a
* copy of this file for a specific page, but please leave the comment in place
* about updating LastModified.
*/
// globally replace '/path/to' with the server-relative path to this file
// globally replace 'samplepage' with the name of the current file
define('remotefilename','/path/to/samplepage.php');
// PLEASE update LastModified each time a permanent change is made to this file
define('LastModified','May 15, 2013 @ 3:37 pm');
// set the starting year when creating a file
// CopyrightYears becomes a range when the year changes
define('CopyrightYears',(($year=date('Y'))==2013?'':'2013-').$year);
/*
* Copyright 2013 by MIT Sloan School of Management. All rights reserved.
*
* $Id: /path/to/samplepage.php,v $
*/
/**
* FUNCTION
*
* Author: Fred Koschara
* Proto Created: May tenth, 2013 // delete when creating a new file
* Creation Date: May fifteenth, 2013 // set this when creating a new file
* Last Modified: May 15, 2013 @ 3:37 pm // used only for require_once() files
*
* Revision History:
* Date by Description
* 2015/05/03 genea move SectionVars.php include location;
* change default $head_color
* 2013/05/15 wfredk original development
* | |
* 2013/05/15 wfredk original development
* 2013/05/15 wfredk add $HeadCSS support
* 2013/05/10 wfredk original prototype development
*/
// uncomment these log entries for debugging
//error_log(str_repeat('=',80));
//error_log(__FILE__.' displayed at '.date('c'));
/* VER_SFX fixes up include and stylesheet filenames for development versions */
define('VER_SFX',''); // use empty string as value for "production" page
$DOCUMENT_ROOT=$_SERVER['DOCUMENT_ROOT'];
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* If not previously set, the following variables will be initialized to the
* values shown by PageFrame.php.
*
* Values can be set on a directory-wide basis in SectionVars.php.
*
* For all values being left at their default or initialized in SectionVars.php
* the corresponding lines below should be removed: Only initialize values
* that are unique to the current page.
*
* N.B. - At a minimum, $pagetitle MUST be set for the current page.
*/
if (file_exists('SectionVars.php')) include 'SectionVars.php';
// set up the header and navigation
$head_color='#970033';
$section='MIT Sloan School of Management';
$level0='';
$level1='';
$level2='';
$pagetitle=__FILE__.' needs to have a title defined!!';
$MetaTitle=$pagetitle.' - '.$section; // <title> tag contents for <head>
$pageID=''; // HTML id attribute for <body> tag
$bodyClass=''; // CSS ruleset names for <body> tag class attribute
// <meta> tag data
$PageAuthor='';
$PageCreated='';
$PageDescrip='';
$PageKeywords='';
$PageReplyTo='webmaster@sloan.mit.edu';
$PageNoCache=FALSE; // TRUE to insert caching prohibition <meta> tags
/**
* list of CSS files for the page, inserted in the order listed in the array
*
* N.B.: The default CSS files shown below are the ones previously included by
* the global header.php file - they are expected to be generally used.
* Unless one of these files is being replaced, all of the ones shown MUST
* be included in the $FilesCSS array used for the page.
*
* To add CSS files while preserving the standard list as noted above you will
* typically insert the new filespec lines between the first and second members
* of the array - after print.css and before sitestyle.css.
*
* If a CSS file is media-specific, append a pipe character and the media name
* after the filespec, e.g., '/shared/css/print.css|print'
*/
$FilesCSS=array ( '/shared/css/print.css|print',
'/shared/css/sitestyle.css|screen',
);
if (file_exists($DOCUMENT_ROOT.'/'.$level0.'/css/sitecolor.css'))
$FilesCSS[]='/'.$level0.'/css/sitecolor.css|screen';
if (file_exists($DOCUMENT_ROOT.'/'.$level0.'/css/site.css'))
$FilesCSS[]='/'.$level0.'/css/site.css|screen';
$FilesCSS[]='/shared/css/style-inner.css|screen';
$HeadCSS=''; // don't do it! - put it in a .css file! (at least for production)
// inline CSS to insert in page <head> after files
/**
* Javascript initialization inserted before adding Javascript files
*
* If $JavascriptInit is an array, each array entry is inserted as a separate
* line in the emitted page. Otherwise, $JavascriptInit is inserted as a string.
*/
$JavascriptInit='';
// list of Javascript files to add to the page <head>
$HeadFilesJS=array ( '/shared/scripts/jquery-1.7.1.min.js',
'/shared/scripts/scripts.js',
'/shared/scripts/swfobject.js',
'/shared/scripts/jquery.main.js',
);
$HeadJS=''; // don't do it! - put it in a .js file! (at least for production)
// inline Javascript to insert in page <head> after files
$TrailerFilesJS=array(); // JS files to add after page contents before </body>
$TrailerJS=''; // don't do it! - put it in a .js file! (at least for production)
// inline Javascript to insert after trailing files
$FnMenuCSS='DefaultPageFrameMenuCSS'; // function to insert menu CSS in <head>
$FnMenuJS='DefaultPageFrameMenuJS'; // function inserts menu Javascript in <head>
$FnMenuDraw='DefaultPageFrameMenuDraw'; // function inserts menu at top of <body>
$ShowSectionH1=TRUE; // TRUE==insert $section as <h1> below menu
$FnPageFooter=''; // function to insert footer after page contents
// see below for an example of activating this function
$bShowPageFootIcons=FALSE; // TRUE==add social media icons to footer
// for <meta name="google-site-verification">
$GoogleSiteCode='*******************************************';
/* end of variables initialized to defaults by PageFrame.php
* -----------------------------------------------------------------------------
*/
// uncomment to add CSS and Javascript files specific to this page to <head>
//$FilesCSS[]='css/sample'.VER_SFX.'.css';
//$HeadFilesJS[]='include/sample'.VER_SFX.'.js';
// EXAMPLE: override default page footer function definition, show social icons
$FnPageFooter='DefaultPageFrameFooter';
$bShowPageFootIcons=TRUE;
globalPageHeader(); // insert <head>, open <body>, insert the menu & <h1> title
?>
<div class="clearing"></div>
<div id="new_page" style="position:relative;margin-bottom:2em">
<div class="page twocol">
<div class="wrapper1 homepage">
<div class="col1 leftcol">
<div class="content">
<?php include dirname(__FILE__).'/inc/leftnav.php' ?>
</div><!-- end content area -->
</div><!-- -= END COLUMN 1 (left) =- -->
<div class="col2 contentcol homepage">
<!-- CONTENT_STARTS -->
<p>Hello world!</p>
<!-- CONTENT_ENDS -->
<div class="clear"><!-- clear floats --></div>
</div><!-- -= END COLUMN 2 (center) =- -->
</div><!-- end wrapper1 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ -->
</div><!-- end page twocol -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- -->