If your unit resides on the Windows server and your files end in the .php extension, you can use the PHP version of the wrapper system.
To get started, create a simple file and insert the appropriate commands to utilize the wrapper header and footer.
<?php include("F:\\web\websites\web.uncg.edu\inc_uncg\header.php"); ?>
<h2>Page Title</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris.
Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum.
Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor.
Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi.
Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien.
Donec placerat nulla id urna. Donec est.</p>
<?php include("F:\\web\websites\web.uncg.edu\inc_uncg\footer.php"); ?>
template.php
Upload the file to your unit webspace and view it using a browser. Does it appear with the UNCG Web3 Branding?
Each unit requires a unique file that declares the variables for the entire unit.
Let us say that a new department was created at UNCG named the Office for Left-Handed Students, or OLH. If the Office wanted to employ the Web3 Accessible Wrapper System, it would need to create a file that declared the variables for the departmental website:
If implementing the unit on the Window ADS server in PHP, the office would create a file named unit_variables.php within their departmental space: F:\\web\websites\olh\inc_unit\:
<?php
// UNCG WEB3 WRAPPER :: SITE VARIABLES :: PHP :: VERSION 1.0.1 :: 14/Jul/2008
define("UNIT_NAME", "Left-Handed Students");
define("UNIT_URL", "http://web-d.uncg.edu/olh/");
define("DEPT_NAME", "Office for Left-Handed Students");
define("DEPT_LOCATION", "Suite 101, EUC");
define("DEPT_PHONE", "336.334.LEFT");
define("DEPT_FAX", "336.334.1111");
define("DEPT_EMAIL", "lefty@uncg.edu");
define("UNIT_LAYOUT", "LIQUID");
define("UNIT_MENU", "F:\\web\websites\olh\inc_unit\unit_menu.php");
define("UNIT_HEADER", "F:\\web\websites\olh\inc_unit\unit_header.php");
define("UNIT_ADMIN", "F:\\web\websites\olh\inc_unit\unit_admin.php");
?>
F:\\web\websites\olh\inc_unit\unit_variables.html
If your unit resides on the Windows server and your files end in the .php extention, you must declare of the wrapper system.
<?php
define("UNIT_VARS","F:\\web\websites\departmental path\inc_unit\unit_variables.php");
include("F:\\web\websites\web.uncg.edu\inc_uncg\header.php"); ?>
<h2>Page Title</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris.
Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum.
Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor.
Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi.
Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien.
Donec placerat nulla id urna. Donec est.</p>
<?php include("F:\\web\websites\web.uncg.edu\inc_uncg\footer.php"); ?>
template.php
Reload your page and confirm that the wrapper is incorporating your specific unit content.
The wrapper system can build a custom page by incorporating page-specific variables into the header and footer. These variables occur only on the page on which they are explicitly stated. In order for this to occur, the wrapper needs to passed page specific commands.
On your page, prior to including the header.html, declare a PAGE_TITLE variable.
<?php
define("UNIT_VARS","F:\\web\websites\departmental path\inc_unit\unit_variables.php");
define("PAGE_TITLE","This is a Template Page");
include("F:\\web\websites\web.uncg.edu\inc_uncg\header.php"); ?>
<h2>Page Title</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris.
Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum.
Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor.
Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi.
Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien.
Donec placerat nulla id urna. Donec est.</p>
<?php include("F:\\web\websites\web.uncg.edu\inc_uncg\footer.php"); ?>
template.php