Web3 Wrapper System

  1. About the Wrapper
  2. Get Started
    1. With SSI
    2. With ASP
    3. With PHP
  3. Unit Customization
  4. Page Customization
  5. Content Components
  6. Presentation/Style
  7. CSS Documentation
  8. User Support
  9. Units Implemented

Get Started with PHP on the Windows Server

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.

Testing Wrapper Availability

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?

Template Screenshot

Declaring a Unit

Each unit requires a unique file that declares the variables for the entire unit.

CASE SCENARIO: Introducing The Office for Left-Handed Students!

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

Associating Pages With Your Unit

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.

Implementing Page Specific Commands

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
 

Page updated: 14-Jul-2008

Accessibility Policy

Web Oversight Committee/Web3 Group
The University of North Carolina at Greensboro
Greensboro, NC 27402-6170