Commit da6177de authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Merge branch 'remove-wdn' into 'master'

Remove WDN references and other layout cleanup

See merge request !17
parents d42217c2 96dcb13f
Pipeline #45783 passed with stage
in 2 minutes and 12 seconds
......@@ -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": "c3c7a8fc44c3bf68a94eb2d5dcbe7244",
"content-hash": "2cf28c0ff1c77bb4defe29104a3e1654",
"packages": [
{
"name": "altorouter/altorouter",
......@@ -298,50 +298,6 @@
},
"time": "2019-12-10T10:24:42+00:00"
},
{
"name": "php-activerecord/php-activerecord",
"version": "v1.2.0",
"source": {
"type": "git",
"url": "https://github.com/jpfuentes2/php-activerecord.git",
"reference": "e6d2dad090617336dee730190be0294c5f132c69"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jpfuentes2/php-activerecord/zipball/e6d2dad090617336dee730190be0294c5f132c69",
"reference": "e6d2dad090617336dee730190be0294c5f132c69",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"pear/log": "~1.12",
"pear/pear_exception": "1.0-beta1",
"phpunit/phpunit": "4.*"
},
"type": "library",
"autoload": {
"files": [
"ActiveRecord.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "php-activerecord is an open source ORM library based on the ActiveRecord pattern.",
"homepage": "http://www.phpactiverecord.org/",
"keywords": [
"activerecord",
"orm"
],
"support": {
"issues": "https://github.com/jpfuentes2/php-activerecord/issues",
"source": "https://github.com/jpfuentes2/php-activerecord/tree/master"
},
"time": "2017-06-11T22:05:37+00:00"
},
{
"name": "phpmailer/phpmailer",
"version": "v5.2.27",
......@@ -473,6 +429,50 @@
],
"time": "2015-01-17T07:51:57+00:00"
},
{
"name": "unl/php-activerecord",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/unl/php-activerecord.git",
"reference": "7f5b9484ca093890186853ba435727909746540d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/php-activerecord/zipball/7f5b9484ca093890186853ba435727909746540d",
"reference": "7f5b9484ca093890186853ba435727909746540d",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"pear/log": "~1.12",
"pear/pear_exception": "1.0-beta1",
"phpunit/phpunit": "4.*"
},
"default-branch": true,
"type": "library",
"autoload": {
"files": [
"ActiveRecord.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Fork of php-activerecord/php-activerecord is an open source ORM library based on the ActiveRecord pattern.",
"homepage": "http://www.phpactiverecord.org/",
"keywords": [
"activerecord",
"orm"
],
"support": {
"source": "https://github.com/unl/php-activerecord/tree/master"
},
"time": "2021-12-21T20:24:37+00:00"
},
{
"name": "unl/php-dwt-parser",
"version": "v1.0.1",
......@@ -526,16 +526,16 @@
},
{
"name": "unl/php-wdn-templates",
"version": "v5.3.0",
"version": "v5.3.3",
"source": {
"type": "git",
"url": "https://github.com/unl/phpunltemplates.git",
"reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88"
"reference": "6e8d54a1405f69da508520c53dc059e66efa5ac1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/090d6c7c8ac8ab2828165bd06574ecb48caf1a88",
"reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/6e8d54a1405f69da508520c53dc059e66efa5ac1",
"reference": "6e8d54a1405f69da508520c53dc059e66efa5ac1",
"shasum": ""
},
"require": {
......@@ -581,9 +581,9 @@
"homepage": "http://wdn.unl.edu/",
"support": {
"issues": "https://github.com/unl/phpunltemplates/issues",
"source": "https://github.com/unl/phpunltemplates/tree/v5.3.0"
"source": "https://github.com/unl/phpunltemplates/tree/v5.3.3"
},
"time": "2021-01-27T17:05:21+00:00"
"time": "2021-03-29T21:02:08+00:00"
},
{
"name": "unl/unl_cache_lite",
......@@ -776,11 +776,12 @@
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"jasig/phpcas": 20
"jasig/phpcas": 20,
"unl/php-activerecord": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.0.0"
"plugin-api-version": "2.1.0"
}
......@@ -117,13 +117,14 @@ img.height-40 {
}
svg.preview {
border: 2px dashed #DDDDDD;
background-color: #FFF;
border: 2px dashed var(--b);
max-width: 100%;
/* disable for now, not displaying correctly in current 5.0 implementation */
/*max-height: 100%;*/
}
.wdn-hero {
.lockup-hero {
position: relative;
overflow: hidden;
height: 25.24em;
......@@ -140,7 +141,7 @@ svg.preview {
}
}
.wdn-hero-text {
.lockup-hero-text {
position: relative;
bottom: auto;
display: -webkit-flex;
......@@ -153,7 +154,7 @@ svg.preview {
text-align: center;
}
.wdn-hero-heading {
.lockup-hero-heading {
z-index: 1;
margin: 0;
font-size: 2.67em;
......@@ -167,7 +168,7 @@ svg.preview {
}
}
.is-video.wdn-hero .wdn-hero-video {
.is-video.lockup-hero .lockup-hero-video {
position: absolute;
top: 0;
left: 0;
......@@ -177,9 +178,9 @@ svg.preview {
> div {
position: absolute;
display: none;
background-color: #fff;
color: #000;
box-shadow: 0px 1px 4px RGBA(0,0,0,0.2);
background-color: var(--bg-body);
color: var(--body);
box-shadow: 0px 1px 4px var(--b);
padding: .75em;
bottom: 160%;
left: -91px;
......@@ -189,7 +190,7 @@ svg.preview {
}
> div:before {
background-color: white;
background-color: var(--bg-body);
content: "";
display: block;
width: 15px;
......@@ -210,7 +211,7 @@ svg.preview {
content:"";
height: 12px;
width: 40px;
background-color: #fff;
background-color: var(--bg-body);
display: block;
position: absolute;
bottom: 0px;
......@@ -246,18 +247,14 @@ svg.preview {
margin-left: -24px;
}
background-color: #1B9AE8;
border-radius: 2em;
height: 1.5em;
width: 1.5em;
padding: 0 0.2em;
color: #fff;
background-color: var(--bg-body);
color: #1B9AE8;
display: inline-block;
text-align: center;
font-size: 0.85em;
line-height: 1.6em;
position: relative;
line-height: 1.6em;
font-size: .8125rem;
ul li {
margin-bottom: .75em;
}
......@@ -281,17 +278,17 @@ svg.preview {
}
.toolbox, .visual-island {
background: #f9f8f5;
background: var(--bg-dialog);
margin-bottom: 1em;
word-wrap: break-word;
padding: 0 !important;
.tools, .details {
padding: 1em;
border-left: 1px solid #d5d5d2;
border-right: 1px solid #d5d5d2;
border-bottom: 1px solid #d5d5d2;
border-left: 1px solid var(--b);
border-right: 1px solid var(--b);
border-bottom: 1px solid var(--b);
&.top-border {
border-top: 1px solid #d5d5d2;
border-top: 1px solid var(--b);
}
}
......@@ -299,13 +296,13 @@ svg.preview {
display: block;
font-size: .802em !important;
margin: 0;
border-bottom: 1px solid #474746;
border-bottom: 1px solid var(--heading);
font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;
width: 100%;
background-color: #474746;
background-color: var(--heading);
padding: 1em;
text-transform: uppercase;
color:#fff;
color: var(--inverse);
font-weight: 400;
font-style: normal;
text-align: center;
......@@ -327,7 +324,7 @@ svg.preview {
}
@media (min-width: 0px) {
.wdn-hero {
.lockup-hero {
height: 5em;
height: 10vh;
max-height: 8em;
......@@ -335,7 +332,7 @@ svg.preview {
}
@media (min-height: 480px) and (min-width: 480px) {
.wdn-hero {
.lockup-hero {
height: 15em;
height: 30vh;
max-height: 22em;
......@@ -343,7 +340,7 @@ svg.preview {
}
@media (min-height: 718px) and (min-width: 960px) {
.wdn-hero {
.lockup-hero {
height: 25.24em;
height: 56vh;
max-height: 31.474em;
......@@ -351,7 +348,7 @@ svg.preview {
}
@media (min-height: 895px) and (min-width: 1044px) {
.wdn-hero {
.lockup-hero {
height: 31.474em;
height: 75vh;
max-height: 33.645em;
......@@ -360,17 +357,17 @@ svg.preview {
@media (min-width: 480px) {
.wdn-hero-heading {
.lockup-hero-heading {
font-size: 3.16em;
}
}
@media (min-width: 768px) {
.wdn-hero-heading {
.lockup-hero-heading {
font-size: 4.21em;
}
}
@media (min-width: 1044px) {
.wdn-hero-heading {
.lockup-hero-heading {
font-size: 4.74em;
}
}
......
.dcf-nav-menu-child ul{list-style:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");margin-bottom:0;padding-left:0}a{text-decoration:none}label>input{visibility:hidden;position:absolute}label img{padding:5px}label>input+img,label>input+img+img{cursor:pointer;-webkit-box-shadow:0 0 8px #DDD;box-shadow:0 0 8px #DDD}label>input:checked+img,label>input:checked+img+img{-webkit-box-shadow:0 0 8px #1B9AE8;box-shadow:0 0 8px #1B9AE8}form legend{font-size:1.5em}textarea{resize:vertical}.page-title{margin-top:0}div.left,section.left,td.left,th.left{text-align:left}div.center,label.center,section.center,td.center,th.center{text-align:center}div.right,section.right,td.right,th.right{text-align:right}img.height-36{max-height:108px}img.height-38{max-height:114px}img.height-40{max-height:120px}.approval-bug{text-align:center;background:#1b9ae8;border:1px solid #137cbd;border-radius:1em;padding:1em;color:#fefdfa;font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;font-weight:400;font-style:normal}.approval-bug.approved{background:#00bc3c;border:1px solid #00892c}.approval-bug.denied{background:#ff5151;border:1px solid #d00000}.caps{text-transform:uppercase;color:inherit}.featured-icon{background-color:#00BD3C;height:144px;width:144px;border-radius:80px;float:none!important;margin:0 auto!important}.featured-icon.red{background-color:#D00000}.featured-icon.blue{background-color:#1B9AE8}.table-actions{line-height:1}.table-actions a,.table-actions button{vertical-align:middle}.delete-form{display:inline;padding:0}svg.preview{border:2px dashed #DDD;max-width:100%}.wdn-hero{position:relative;overflow:hidden;height:25.24em;height:42vh;background-color:#000;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center}.wdn-hero video{width:100%}.wdn-hero-text{position:relative;bottom:auto;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:100%;text-align:center}.wdn-hero-heading{z-index:1;margin:0;font-size:2.67em;text-transform:uppercase;color:#fff}.wdn-hero-heading .hero-line{display:inline-block;line-height:1;border-top:1px solid rgba(255,255,255,.2);border-bottom:1px solid rgba(255,255,255,.2)}.is-video.wdn-hero .wdn-hero-video{position:absolute;top:0;left:0}.tooltip{background-color:#1B9AE8;border-radius:2em;height:1.5em;width:1.5em;padding:0 .2em;color:#fff;display:inline-block;text-align:center;font-size:.85em;line-height:1.6em;position:relative;font-size:.8125rem}.tooltip>div{position:absolute;display:none;background-color:#fff;color:#000;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px rgba(0,0,0,.2);padding:.75em;bottom:160%;left:-91px;width:200px;text-align:left;z-index:250}.tooltip>div:before{background-color:#fff;content:"";display:block;width:15px;height:15px;position:absolute;bottom:-8px;left:50%;margin-left:-7px;transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);-webkit-box-shadow:0 0 4px rgba(0,0,0,.25);box-shadow:0 0 4px rgba(0,0,0,.25)}.tooltip>div:after{content:"";height:12px;width:40px;background-color:#fff;display:block;position:absolute;bottom:0;left:50%;margin-left:-24px}.tooltip.hang-right>div{left:-27px}.tooltip.hang-left>div{left:-157px}.tooltip.hang-right>div:before{left:34px;margin-left:-7px}.tooltip.hang-right>div:after{left:34px;margin-left:-24px}.tooltip.hang-left>div:before{left:166px;margin-left:-7px}.tooltip.hang-left>div:after{left:166px;margin-left:-24px}.tooltip ul li{margin-bottom:.75em}.tooltip span.heading{font-family:"Tungsten A","Tungsten B",HelveticaNeueCondensed,HelveticaNeue-Condensed,"Helvetica Neue Condensed",HelveticaNeueRomanCondensed,HelveticaNeue-Roman-Condensed,"Helvetica Neue Roman Condensed","Arial Narrow",HelveticaNeue,"Helvetica Neue",HelveticaNeueRoman,HelveticaNeue-Roman,"Helvetica Neue Roman",Helvetica,Tahoma,Geneva,Arial,sans-serif;font-size:1.777em}.tooltip:hover>div{display:block}.tooltip p{margin:0}.tooltip.italic *{font-style:italic}.toolbox,.visual-island{background:#f9f8f5;margin-bottom:1em;word-wrap:break-word;padding:0!important}.toolbox .details,.toolbox .tools,.visual-island .details,.visual-island .tools{padding:1em;border-left:1px solid #d5d5d2;border-right:1px solid #d5d5d2;border-bottom:1px solid #d5d5d2}.toolbox .details.top-border,.toolbox .tools.top-border,.visual-island .details.top-border,.visual-island .tools.top-border{border-top:1px solid #d5d5d2}.toolbox .vi-header,.toolbox h1,.toolbox h2,.toolbox h3,.toolbox h4,.toolbox h5,.toolbox h6,.visual-island .vi-header,.visual-island h1,.visual-island h2,.visual-island h3,.visual-island h4,.visual-island h5,.visual-island h6{display:block;font-size:.802em!important;margin:0;border-bottom:1px solid #474746;font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;width:100%;background-color:#474746;padding:1em;text-transform:uppercase;color:#fff;font-weight:400;font-style:normal;text-align:center}.toolbox p,.visual-island p{padding:0 1em 1em 1em}.toolbox ul,.visual-island ul{padding:0;padding-left:1em;margin:0}.toolbox ul a,.visual-island ul a{border-bottom:none;font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif}@media (min-width:0px){.wdn-hero{height:5em;height:10vh;max-height:8em}}@media (min-height:480px) and (min-width:480px){.wdn-hero{height:15em;height:30vh;max-height:22em}}@media (min-height:718px) and (min-width:960px){.wdn-hero{height:25.24em;height:56vh;max-height:31.474em}}@media (min-height:895px) and (min-width:1044px){.wdn-hero{height:31.474em;height:75vh;max-height:33.645em}}@media (min-width:480px){.wdn-hero-heading{font-size:3.16em}}@media (min-width:768px){.wdn-hero-heading{font-size:4.21em}}@media (min-width:1044px){.wdn-hero-heading{font-size:4.74em}}
\ No newline at end of file
.dcf-nav-menu-child ul{list-style:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");margin-bottom:0;padding-left:0}a{text-decoration:none}label>input{visibility:hidden;position:absolute}label img{padding:5px}label>input+img,label>input+img+img{cursor:pointer;-webkit-box-shadow:0 0 8px #DDD;box-shadow:0 0 8px #DDD}label>input:checked+img,label>input:checked+img+img{-webkit-box-shadow:0 0 8px #1B9AE8;box-shadow:0 0 8px #1B9AE8}form legend{font-size:1.5em}textarea{resize:vertical}.page-title{margin-top:0}div.left,section.left,td.left,th.left{text-align:left}div.center,label.center,section.center,td.center,th.center{text-align:center}div.right,section.right,td.right,th.right{text-align:right}img.height-36{max-height:108px}img.height-38{max-height:114px}img.height-40{max-height:120px}.approval-bug{text-align:center;background:#1b9ae8;border:1px solid #137cbd;border-radius:1em;padding:1em;color:#fefdfa;font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;font-weight:400;font-style:normal}.approval-bug.approved{background:#00bc3c;border:1px solid #00892c}.approval-bug.denied{background:#ff5151;border:1px solid #d00000}.caps{text-transform:uppercase;color:inherit}.featured-icon{background-color:#00BD3C;height:144px;width:144px;border-radius:80px;float:none!important;margin:0 auto!important}.featured-icon.red{background-color:#D00000}.featured-icon.blue{background-color:#1B9AE8}.table-actions{line-height:1}.table-actions a,.table-actions button{vertical-align:middle}.delete-form{display:inline;padding:0}svg.preview{background-color:#FFF;border:2px dashed var(--b);max-width:100%}.lockup-hero{position:relative;overflow:hidden;height:25.24em;height:42vh;background-color:#000;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center}.lockup-hero video{width:100%}.lockup-hero-text{position:relative;bottom:auto;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:100%;text-align:center}.lockup-hero-heading{z-index:1;margin:0;font-size:2.67em;text-transform:uppercase;color:#fff}.lockup-hero-heading .hero-line{display:inline-block;line-height:1;border-top:1px solid rgba(255,255,255,.2);border-bottom:1px solid rgba(255,255,255,.2)}.is-video.lockup-hero .lockup-hero-video{position:absolute;top:0;left:0}.tooltip{background-color:var(--bg-body);color:#1B9AE8;display:inline-block;text-align:center;position:relative;line-height:1.6em;font-size:.8125rem}.tooltip>div{position:absolute;display:none;background-color:var(--bg-body);color:var(--body);-webkit-box-shadow:0 1px 4px var(--b);box-shadow:0 1px 4px var(--b);padding:.75em;bottom:160%;left:-91px;width:200px;text-align:left;z-index:250}.tooltip>div:before{background-color:var(--bg-body);content:"";display:block;width:15px;height:15px;position:absolute;bottom:-8px;left:50%;margin-left:-7px;transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);-webkit-box-shadow:0 0 4px rgba(0,0,0,.25);box-shadow:0 0 4px rgba(0,0,0,.25)}.tooltip>div:after{content:"";height:12px;width:40px;background-color:var(--bg-body);display:block;position:absolute;bottom:0;left:50%;margin-left:-24px}.tooltip.hang-right>div{left:-27px}.tooltip.hang-left>div{left:-157px}.tooltip.hang-right>div:before{left:34px;margin-left:-7px}.tooltip.hang-right>div:after{left:34px;margin-left:-24px}.tooltip.hang-left>div:before{left:166px;margin-left:-7px}.tooltip.hang-left>div:after{left:166px;margin-left:-24px}.tooltip ul li{margin-bottom:.75em}.tooltip span.heading{font-family:"Tungsten A","Tungsten B",HelveticaNeueCondensed,HelveticaNeue-Condensed,"Helvetica Neue Condensed",HelveticaNeueRomanCondensed,HelveticaNeue-Roman-Condensed,"Helvetica Neue Roman Condensed","Arial Narrow",HelveticaNeue,"Helvetica Neue",HelveticaNeueRoman,HelveticaNeue-Roman,"Helvetica Neue Roman",Helvetica,Tahoma,Geneva,Arial,sans-serif;font-size:1.777em}.tooltip:hover>div{display:block}.tooltip p{margin:0}.tooltip.italic *{font-style:italic}.toolbox,.visual-island{background:var(--bg-dialog);margin-bottom:1em;word-wrap:break-word;padding:0!important}.toolbox .details,.toolbox .tools,.visual-island .details,.visual-island .tools{padding:1em;border-left:1px solid var(--b);border-right:1px solid var(--b);border-bottom:1px solid var(--b)}.toolbox .details.top-border,.toolbox .tools.top-border,.visual-island .details.top-border,.visual-island .tools.top-border{border-top:1px solid var(--b)}.toolbox .vi-header,.toolbox h1,.toolbox h2,.toolbox h3,.toolbox h4,.toolbox h5,.toolbox h6,.visual-island .vi-header,.visual-island h1,.visual-island h2,.visual-island h3,.visual-island h4,.visual-island h5,.visual-island h6{display:block;font-size:.802em!important;margin:0;border-bottom:1px solid var(--heading);font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif;width:100%;background-color:var(--heading);padding:1em;text-transform:uppercase;color:var(--inverse);font-weight:400;font-style:normal;text-align:center}.toolbox p,.visual-island p{padding:0 1em 1em 1em}.toolbox ul,.visual-island ul{padding:0;padding-left:1em;margin:0}.toolbox ul a,.visual-island ul a{border-bottom:none;font-family:"Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif}@media (min-width:0px){.lockup-hero{height:5em;height:10vh;max-height:8em}}@media (min-height:480px) and (min-width:480px){.lockup-hero{height:15em;height:30vh;max-height:22em}}@media (min-height:718px) and (min-width:960px){.lockup-hero{height:25.24em;height:56vh;max-height:31.474em}}@media (min-height:895px) and (min-width:1044px){.lockup-hero{height:31.474em;height:75vh;max-height:33.645em}}@media (min-width:480px){.lockup-hero-heading{font-size:3.16em}}@media (min-width:768px){.lockup-hero-heading{font-size:4.21em}}@media (min-width:1044px){.lockup-hero-heading{font-size:4.74em}}
\ No newline at end of file
......@@ -147,7 +147,12 @@ class LockupsController extends Controller {
\Core::redirect('/lockups/create/');
}
$model->save();
try {
$model->save();
} catch (\Exception $e) {
self::flashNotice(parent::NOTICE_LEVEL_ERROR, 'Error', 'The lockup failed to create.');
\Core::redirect('/lockups/create/');
}
\Core::redirect($model->getPreviewURL());
}
......@@ -322,7 +327,12 @@ class LockupsController extends Controller {
\Core::redirect($lockup_model->getEditURL());
}
$lockup_model->save();
try {
$lockup_model->save();
} catch (\Exception $e) {
self::flashNotice(parent::NOTICE_LEVEL_ERROR, 'Error', 'The lockup failed to update.');
\Core::redirect($lockup_model->getEditURL());
}
\Core::redirect($lockup_model->getPreviewURL());
}
......@@ -541,7 +551,7 @@ UNL Lockup Factory';
}
$frontend_output = $lockup_model->createAllVersions();
self::storeGenerateOutput(join($frontend_output, '
 
'));
self::storeGenerateOutput(join('
 
', $frontend_output));
$lockup_model->status = Lockup::GENERATED;
$lockup_model->creative_status = Lockup::GENERATED;
......@@ -579,7 +589,7 @@ UNL Lockup Factory';
# then run the generate functionality again
$frontend_output = $lockup_model->createAllVersions();
self::storeGenerateOutput(join($frontend_output, '
 
'));
self::storeGenerateOutput(join('
 
', $frontend_output));
$lockup_model->version = self::LOCKUP_VERSION;
$lockup_model->save();
......
......@@ -244,7 +244,7 @@ class Lockup extends \ActiveRecord\Model {
$frontend_output = array();
$return_var = NULL;
exec('inkscape -h800 --export-png=' . $new_png . ' ' . $starting_svg . ' 2>&1', $backend_output, $return_var);
if ($return_var == 0) {
# attempt to write this to the DB
......@@ -363,13 +363,18 @@ class Lockup extends \ActiveRecord\Model {
}
# cleanup these files
unlink($new_jpg);
unlink($new_pdf);
unlink($new_png);
unlink($new_eps);
unlink($new_svg);
$this->removeFile($new_jpg);
$this->removeFile($new_pdf);
$this->removeFile($new_png);
$this->removeFile($new_eps);
$this->removeFile($new_svg);
return $frontend_output;
}
}
\ No newline at end of file
private function removeFile($file) {
if (file_exists($file)) {
unlink($file);
}
}
}
......@@ -6,7 +6,7 @@
<img src="<?php echo $context->lockup->getPNGDownloadURL() ?>" role="presentation">
</div>
<br>
<table>
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th>Download Entire Package as ZIP</th>
......@@ -19,7 +19,7 @@
</tbody>
</table>
<br>
<table>
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th><strong>Please Read!</strong> Instructions for Pantone Lockups</th>
......@@ -44,7 +44,7 @@
</tbody>
</table>
<br>
<table>
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th>Download Specific File</th>
......
<div class="dcf-bleed">
<section class="wdn-hero is-video center">
<video class="wdn-hero-video" muted autoplay="" loop="" poster="features/2016-spring-break-service/hero/2016-spring-break-service-md-min.jpg">
<section class="lockup-hero is-video center">
<video class="lockup-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">
</video>
<div class="wdn-hero-text">
<h2 class="wdn-hero-heading">
<div class="lockup-hero-text">
<h2 class="lockup-hero-heading">
<span class="hero-line">UNL Lockup Factory</span>
</h2>
</div>
......
......@@ -9,18 +9,19 @@
<div class="dcf-wrapper">
<h3 class="page-title">Lockup Library</h3>
<form class="dcf-form">
<label for="search-term">Search Lockups</label>
<div class="dcf-input-group">
<input style="width: auto;" value="<?php echo $context->search_term ?>" type="text" placeholder="Search..." name="search_term">
<button type="submit" class="dcf-btn dcf-btn-secondary">Search</button>
<input value="<?php echo $context->search_term ?>" type="text" id="search-term" name="search_term">
<button type="submit" class="dcf-btn dcf-btn-primary">Search</button>
<?php if (!empty($context->search_term)): ?>
<button id="clear-search" class="dcf-btn dcf-btn-primary" type="button">&times;</button>
<button id="clear-search" class="dcf-btn dcf-btn-secondary" type="button">&times;</button>
<?php endif; ?>
</div>
</form>
<br>
<?php foreach ($context->lockups as $chunk): ?>
<h4>Lockups Approved For <?php echo $chunk[0]->approver == '' ? '(unknown)' : $chunk[0]->approver->organization ?></h4>
<table class="dcf-table">
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th>Title</th>
......
......@@ -23,9 +23,6 @@ $page->doctitle = '<title>UNL Lockup Factory</title>';
$page->titlegraphic = '<a class="dcf-txt-h5" href="' . $baseURL . '">UNL Lockup Factory</a>';
$page->affiliation = '<a href="http://ucomm.unl.edu">University Communication</a>';
// Add WDN Deprecated Styles
$page->head .= '<link rel="preload" href="/wdn/templates_5.3/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="/wdn/templates_5.3/css/deprecated.css"></noscript>';
# css
$page->addStyleSheet($baseURL . 'css/main.css');
......
......@@ -28,23 +28,23 @@
$str = '?';
return $str . implode('&', array_map('outputParam', array_keys($array), $array));
}
// TODO: No 5.0 pagination css, so using 4.1
$context->scriptState->loadScriptDeclaration("WDN.loadCSS('https://unlcms.unl.edu/wdn/templates_4.1/css/modules/pagination.css');");
?>
<div class="dcf-bleed dcf-pt-8 dcf-pb-8">
<div class="dcf-wrapper">
<h3 class="page-title">Manage Lockups</h3>
<form>
<input style="width: auto;" value="<?php echo $context->search_term ?>" type="text" placeholder="Search..." name="search_term">
<button type="submit" class="dcf-btn wdn-button-triad">Search</button>
<?php if (!empty($context->search_term)): ?>
<button id="clear-search" class="dcf-btn dcf-btn-primary" type="button">&times;</button>
<?php endif; ?>
<form class="dcf-form">
<label for="search-term">Search Lockups</label>
<div class="dcf-input-group">
<input value="<?php echo $context->search_term ?>" type="text" name="search_term" id="search-term">
<button type="submit" class="dcf-btn dcf-btn-primary" >Search</button>
<?php if (!empty($context->search_term)): ?>
<button id="clear-search" class="dcf-btn dcf-btn-secondary" type="button">&times;</button>
<?php endif; ?>
</div>
</form>
<?php if (\Auth::$current_user->isAdmin()): ?>
<h4 class="dcf-mt-6">All Lockups</h4>
<table>
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th>ID</th>
......@@ -69,21 +69,21 @@
<td><?php echo $lockup->version; ?></td>
<td class="table-actions right" style="min-width: 250px;">
<?php if ($lockup->isEditable()): ?>
<a class="dcf-btn wdn-button-triad" href="<?php echo $lockup->getEditURL(); ?>">Edit</a>
<a class="dcf-btn dcf-btn-secondary" href="<?php echo $lockup->getEditURL(); ?>">Edit</a>
<?php endif; ?>
<?php if ($lockup->isGenerated() && $lockup->isPublished()): ?>
<form action="<?php echo $lockup->getUnpublishURL(); ?>" method="POST" class="delete-form">
<button type="submit" class="dcf-btn">Unpublish</button>
<form action="<?php echo $lockup->getUnpublishURL(); ?>" method="POST" class="dcf-form delete-form">
<button type="submit" class="dcf-btn dcf-btn-primary">Unpublish</button>
<input type="hidden" name="id" value="<?php echo $lockup->id ?>">
</form>
<?php endif; ?>
<?php if ($lockup->isGenerated() && !$lockup->isPublished()): ?>
<form action="<?php echo $lockup->getPublishURL(); ?>" method="POST" class="delete-form">
<button type="submit" class="dcf-btn wdn-button-complement">Publish</button>
<form action="<?php echo $lockup->getPublishURL(); ?>" method="POST" class="dcf-form delete-form">
<button type="submit" class="dcf-btn dcf-btn-secondary">Publish</button>
<input type="hidden" name="id" value="<?php echo $lockup->id ?>">
</form>
<?php endif; ?>
<form action="<?php echo $lockup->getDeleteURL(); ?>" method="POST" class="delete-form">
<form action="<?php echo $lockup->getDeleteURL(); ?>" method="POST" class="dcf-form delete-form">
<button type="submit" class="dcf-btn dcf-btn-primary">Delete</button>
<input type="hidden" name="id" value="<?php echo $lockup->id ?>">
</form>
......@@ -126,7 +126,7 @@
<?php else: ?>
<?php if (\Auth::$current_user->isApprover()): ?>
<h4>Lockups Needing Communicator Approval</h4>
<table>
<table class="dcf-table dcf-table-bordered">
<thead>
<tr>
<th>Title</th>
......@@ -181,7 +181,7 @@