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

Support 5.2

parent 690ccb04
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "1fee95e109099d7af553ddf71f0a989d",
"content-hash": "418f404820492c5b99c30c47e5f21fbf",
"packages": [
{
"name": "altorouter/altorouter",
......@@ -538,16 +538,16 @@
},
{
"name": "unl/php-wdn-templates",
"version": "v5.1.0",
"version": "v5.2.1",
"source": {
"type": "git",
"url": "https://github.com/unl/phpunltemplates.git",
"reference": "44e42acb1252e41569810660998adb00d108aa06"
"reference": "7648850d99cc8b6f03307a7feca7d31b18e9a233"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/44e42acb1252e41569810660998adb00d108aa06",
"reference": "44e42acb1252e41569810660998adb00d108aa06",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/7648850d99cc8b6f03307a7feca7d31b18e9a233",
"reference": "7648850d99cc8b6f03307a7feca7d31b18e9a233",
"shasum": ""
},
"require": {
......@@ -591,7 +591,7 @@
],
"description": "A PHP library for rendering the UNL templates",
"homepage": "http://wdn.unl.edu/",
"time": "2020-03-11T16:55:17+00:00"
"time": "2020-07-16T20:24:35+00:00"
},
{
"name": "unl/unl_cache_lite",
......
This diff is collapsed.
<?php
use UNL\Templates\Templates;
$page = Templates::factory('AppLocal', Templates::VERSION_5_1);
$page = Templates::factory('AppLocal', Templates::VERSION_5_2);
# 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.1 on there for you
# the templates library will stick /wdn/templates_5.2 on there for you
$wdn_include_path = \Core::ROOT . '/public';
if (file_exists($wdn_include_path . '/wdn/templates_5.1')) {
if (file_exists($wdn_include_path . '/wdn/templates_5.2')) {
$page->setLocalIncludePath($wdn_include_path);
}
......@@ -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>';
// Add WDN Deprecated Styles
$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>';
$page->head .= '<link rel="preload" href="/wdn/templates_5.2/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="/wdn/templates_5.2/css/deprecated.css"></noscript>';
# css
$page->addStyleSheet($baseURL . 'css/main.css');
......
......@@ -43,7 +43,7 @@
<?php endif; ?>
</form>
<?php if (\Auth::$current_user->isAdmin()): ?>
<h4>All Lockups</h4>
<h4 class="dcf-mt-6">All Lockups</h4>
<table>
<thead>
<tr>
......
......@@ -301,7 +301,7 @@
</fieldset>
<?php if (\Auth::$current_user !== NULL): ?>
<button type="submit" class="dcf-btn dcf-btn-primary">Submit Lockup</button>
<button type="submit" class="dcf-btn dcf-btn-primary dcf-mt-6">Submit Lockup</button>
<?php else: ?>
<a class="dcf-btn dcf-btn-primary" href="https://shib.unl.edu/idp/profile/cas/login?service=<?php echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>">Login</a>
<?php endif; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment