2017 © Pedro Peláez
 

library php-wdn-templates

A PHP library for rendering the UNL templates

image

unl/php-wdn-templates

A PHP library for rendering the UNL templates

  • Monday, October 17, 2016
  • by kabel
  • Repository
  • 4 Watchers
  • 5 Stars
  • 1,362 Installations
  • Smarty
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

PHP WDN Templates

Build Status Coverage Status, (*1)

The UNL HTML Templates as a PHP library, (*2)

This package allows you to render UNL Template styled pages using PHP Objects., (*3)

Requirements

  • PHP >= 5.5

Example

  • Navigate to your web root
  • Create a composer.json file with:
{
  "require": {
    "unl/php-wdn-templates": "5.1.*"
  }
}
  • Run the following commands
curl -sS https://getcomposer.org/installer | php
php composer.phar install
  • Create an index.php file with
<?php

require_once  'vendor/autoload.php';

use UNL\Templates\Templates;

$page = Templates::factory('Fixed', Templates::VERSION_5_1);

$page->doctitle = '<title>My Sample UNL Site | University of Nebraska&ndash;Lincoln</title>';
$page->head = '';
$page->affiliation = '<a href="#">My site affiliation</a>';
$page->titlegraphic = '<a class="unl-site-title-medium" href="#">Title of my site</a>';
$page->navlinks = '

'; $page->hero = '
'; $page->breadcrumbs = '
  1. UNL
  2. My Sample UNL Site
'; $page->pagetitle = '

Welcome

'; $page->herogroup1 = ''; $page->herogroup2 = '
'; $page->maincontentarea = '

Content, (*4)

'; $page->contactinfo = '

University of Nebraska-Lincoln
1400 R Street
Lincoln, NE 68588
402-472-7211, (*5)

'; $page->jsbody = ''; echo $page;
  • Load index.php in a web browser.
  • Attend WDN meetings the second Tuesday of every month in the Nebraska Union at 2:00 pm.
  • Learn about keeping your web server syncronized at http://wdn.unl.edu/synchronizing-unledu-web-framework

The Versions

17/10 2016

dev-master

9999999-dev http://wdn.unl.edu/

A PHP library for rendering the UNL templates

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Brett Bieber (saltybeagle)
by Kevin Abel (kabel)
by Ned Hummel (nhummel2)

15/12 2015

v4.1.0

4.1.0.0 http://wdn.unl.edu/

A PHP library for rendering the UNL templates

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Brett Bieber (saltybeagle)
by Kevin Abel (kabel)
by Ned Hummel (nhummel2)

15/12 2015

dev-composer

dev-composer http://wdn.unl.edu/

A PHP library for rendering the UNL templates

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Brett Bieber (saltybeagle)
by Kevin Abel (kabel)
by Ned Hummel (nhummel2)

08/10 2014

v1.4.0

1.4.0.0

  Sources   Download