Skip to content
Snippets Groups Projects
Commit 0de5c83d authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Implement 5.1 WDN Framework

parent 8b6e0788
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b362f88167fa055a89a87e1f728c7e04", "content-hash": "1fee95e109099d7af553ddf71f0a989d",
"packages": [ "packages": [
{ {
"name": "altorouter/altorouter", "name": "altorouter/altorouter",
...@@ -117,9 +117,7 @@ ...@@ -117,9 +117,7 @@
"version": "1.4.3", "version": "1.4.3",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/Archive_Tar-1.4.3.tgz", "url": "http://pear.php.net/get/Archive_Tar-1.4.3.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"php": ">=5.2.0.0" "php": ">=5.2.0.0"
...@@ -146,9 +144,7 @@ ...@@ -146,9 +144,7 @@
"version": "1.4.1", "version": "1.4.1",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/Console_Getopt-1.4.1.tgz", "url": "http://pear.php.net/get/Console_Getopt-1.4.1.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"php": ">=5.4.0.0" "php": ">=5.4.0.0"
...@@ -175,9 +171,7 @@ ...@@ -175,9 +171,7 @@
"version": "2.3.0", "version": "2.3.0",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/HTTP_Request2-2.3.0.tgz", "url": "http://pear.php.net/get/HTTP_Request2-2.3.0.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"pear-pear.php.net/net_url2": ">=2.2.0.0", "pear-pear.php.net/net_url2": ">=2.2.0.0",
...@@ -206,9 +200,7 @@ ...@@ -206,9 +200,7 @@
"version": "2.2.1", "version": "2.2.1",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/Net_URL2-2.2.1.tgz", "url": "http://pear.php.net/get/Net_URL2-2.2.1.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"php": ">=5.1.4.0" "php": ">=5.1.4.0"
...@@ -235,9 +227,7 @@ ...@@ -235,9 +227,7 @@
"version": "1.10.6", "version": "1.10.6",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/PEAR-1.10.6.tgz", "url": "http://pear.php.net/get/PEAR-1.10.6.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"ext-pcre": "*", "ext-pcre": "*",
...@@ -274,9 +264,7 @@ ...@@ -274,9 +264,7 @@
"version": "1.1.1", "version": "1.1.1",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/Structures_Graph-1.1.1.tgz", "url": "http://pear.php.net/get/Structures_Graph-1.1.1.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"php": ">=5.3.0.0" "php": ">=5.3.0.0"
...@@ -303,9 +291,7 @@ ...@@ -303,9 +291,7 @@
"version": "1.4.3", "version": "1.4.3",
"dist": { "dist": {
"type": "file", "type": "file",
"url": "http://pear.php.net/get/XML_Util-1.4.3.tgz", "url": "http://pear.php.net/get/XML_Util-1.4.3.tgz"
"reference": null,
"shasum": null
}, },
"require": { "require": {
"ext-pcre": "*", "ext-pcre": "*",
...@@ -552,16 +538,16 @@ ...@@ -552,16 +538,16 @@
}, },
{ {
"name": "unl/php-wdn-templates", "name": "unl/php-wdn-templates",
"version": "v5.0.0", "version": "v5.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/unl/phpunltemplates.git", "url": "https://github.com/unl/phpunltemplates.git",
"reference": "2928e588f409c2628bfeccb5293ab0dd34a506c5" "reference": "44e42acb1252e41569810660998adb00d108aa06"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/2928e588f409c2628bfeccb5293ab0dd34a506c5", "url": "https://api.github.com/repos/unl/phpunltemplates/zipball/44e42acb1252e41569810660998adb00d108aa06",
"reference": "2928e588f409c2628bfeccb5293ab0dd34a506c5", "reference": "44e42acb1252e41569810660998adb00d108aa06",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -569,8 +555,7 @@ ...@@ -569,8 +555,7 @@
"unl/php-dwt-parser": "1.0.*" "unl/php-dwt-parser": "1.0.*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.0", "phpunit/phpunit": "~5.0"
"satooshi/php-coveralls": "^0.7.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
...@@ -583,10 +568,15 @@ ...@@ -583,10 +568,15 @@
"BSD-3-Clause" "BSD-3-Clause"
], ],
"authors": [ "authors": [
{
"name": "Jeff Sturek (jsturek)",
"email": "jsturek8@unl.edu",
"role": "Developer"
},
{ {
"name": "Kevin Abel (kabel)", "name": "Kevin Abel (kabel)",
"email": "kabel2@unl.edu", "email": "kabel2@unl.edu",
"role": "Developer" "role": "Retired Developer"
}, },
{ {
"name": "Brett Bieber (saltybeagle)", "name": "Brett Bieber (saltybeagle)",
...@@ -601,7 +591,7 @@ ...@@ -601,7 +591,7 @@
], ],
"description": "A PHP library for rendering the UNL templates", "description": "A PHP library for rendering the UNL templates",
"homepage": "http://wdn.unl.edu/", "homepage": "http://wdn.unl.edu/",
"time": "2018-12-12T16:32:30+00:00" "time": "2020-03-11T16:55:17+00:00"
}, },
{ {
"name": "unl/unl_cache_lite", "name": "unl/unl_cache_lite",
...@@ -731,6 +721,7 @@ ...@@ -731,6 +721,7 @@
"code", "code",
"zf2" "zf2"
], ],
"abandoned": "laminas/laminas-code",
"time": "2016-04-20T17:26:42+00:00" "time": "2016-04-20T17:26:42+00:00"
}, },
{ {
...@@ -785,6 +776,7 @@ ...@@ -785,6 +776,7 @@
"events", "events",
"zf2" "zf2"
], ],
"abandoned": "laminas/laminas-eventmanager",
"time": "2018-04-25T15:33:34+00:00" "time": "2018-04-25T15:33:34+00:00"
} }
], ],
......
<div class="dcf-bleed"> <div class="dcf-bleed">
<section class="wdn-hero is-video center"> <section class="wdn-hero is-video center">
<video class="wdn-hero-video" autoplay="" loop="" poster="features/2016-spring-break-service/hero/2016-spring-break-service-md-min.jpg"> <video class="wdn-hero-video" muted autoplay="" loop="" poster="features/2016-spring-break-service/hero/2016-spring-break-service-md-min.jpg">
<source src="/videos/factory_milling.mp4"> <source src="/videos/factory_milling.mp4">
</video> </video>
<div class="wdn-hero-text"> <div class="wdn-hero-text">
......
<?php <?php
use UNL\Templates\Templates; use UNL\Templates\Templates;
$page = Templates::factory('App', Templates::VERSION_5); $page = Templates::factory('AppLocal', Templates::VERSION_5_1);
# this should be the server root, that is, the public directory of where static files come from. # this should be the server root, that is, the public directory of where static files come from.
# the templates library will stick /wdn/templates_5.0 on there for you # the templates library will stick /wdn/templates_5.1 on there for you
$wdn_include_path = \Core::ROOT . '/public'; $wdn_include_path = \Core::ROOT . '/public';
if (file_exists($wdn_include_path . '/wdn/templates_5.0')) { if (file_exists($wdn_include_path . '/wdn/templates_5.1')) {
$page->setLocalIncludePath($wdn_include_path); $page->setLocalIncludePath($wdn_include_path);
} }
...@@ -24,7 +24,7 @@ $page->titlegraphic = '<a class="dcf-txt-h5" href="' . $baseURL . '">UNL Lockup ...@@ -24,7 +24,7 @@ $page->titlegraphic = '<a class="dcf-txt-h5" href="' . $baseURL . '">UNL Lockup
$page->affiliation = '<a href="http://ucomm.unl.edu">University Communication</a>'; $page->affiliation = '<a href="http://ucomm.unl.edu">University Communication</a>';
// Add WDN Deprecated Styles // Add WDN Deprecated Styles
$page->head .= '<link rel="preload" href="https://unlcms.unl.edu/wdn/templates_5.0/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="https://unlcms.unl.edu/wdn/templates_5.0/css/deprecated.css"></noscript>'; $page->head .= '<link rel="preload" href="/wdn/templates_5.1/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="/wdn/templates_5.1/css/deprecated.css"></noscript>';
# css # css
$page->addStyleSheet($baseURL . 'css/main.css'); $page->addStyleSheet($baseURL . 'css/main.css');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment