diff --git a/composer.json b/composer.json index 80ca18de96518d7adb0de75aee2e57d79c140267..3dbf8c69036b5e0a8872b46a06dbcf1e3f75d9c8 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "tedivm/stash": "0.12.*", "unl/php-wdn-templates": "^5.3", "unl/unl_cache_lite": "0.1.*", - "php-activerecord/php-activerecord": "^1.1", + "unl/php-activerecord": "dev-master", "altorouter/altorouter": "1.1.0", "phpmailer/phpmailer": "^5.2" }, diff --git a/composer.lock b/composer.lock index 1a91bc483b47e9b81da4228e6ae07fdd8378bcb1..b709e126715575749e900f9bcc7456268d21debd 100644 --- a/composer.lock +++ b/composer.lock @@ -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" } diff --git a/less/main.less b/less/main.less index 7386762c09a349c379c34f27f4dd5a0c1abbc23f..51713e67612d35c1ad8d068db85ebc40469944f3 100644 --- a/less/main.less +++ b/less/main.less @@ -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; } } diff --git a/public/css/main.css b/public/css/main.css index 02463cf2af460ed18fe1bd70d78dfe8c39fd01c0..0a5096fd2f343d1f3f42dd1b13be4e628418cfab 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -1 +1 @@ -.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 diff --git a/src/Controllers/LockupsController.php b/src/Controllers/LockupsController.php index 96a677685f180815b2db49560895379f88a3792c..96f7cd02e148fb88fac955020d39a10af7ed6ebb 100644 --- a/src/Controllers/LockupsController.php +++ b/src/Controllers/LockupsController.php @@ -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(); diff --git a/src/Models/Lockup.php b/src/Models/Lockup.php index 6c14c120ac4d76bf7aa6e3560f9a258eec8dc3eb..8971dc9f12a9ecbfffbdd427ff85833681c8c971 100644 --- a/src/Models/Lockup.php +++ b/src/Models/Lockup.php @@ -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); + } + } +} diff --git a/src/Views/download_lockup_files.php b/src/Views/download_lockup_files.php index 4ede91cd8fed942b58ea148d168c57a72ec6b1c2..6ff6b34b532bf468e3b0a8683a8f013f9cd4d534 100644 --- a/src/Views/download_lockup_files.php +++ b/src/Views/download_lockup_files.php @@ -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> diff --git a/src/Views/home.php b/src/Views/home.php index b4279a7b63a18368295b4cb633ec1f2f5491cc94..aee230e7d90d73e867ab94e9c7f821e5287d0896 100644 --- a/src/Views/home.php +++ b/src/Views/home.php @@ -1,10 +1,10 @@ <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> diff --git a/src/Views/lockup_library.php b/src/Views/lockup_library.php index fc8598cd0ef39ecd797dcbc214f4cf57cb6e718c..eca09133917e43689c258fb1b8e720f6814fe38c 100644 --- a/src/Views/lockup_library.php +++ b/src/Views/lockup_library.php @@ -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">×</button> + <button id="clear-search" class="dcf-btn dcf-btn-secondary" type="button">×</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> diff --git a/src/Views/main_template.php b/src/Views/main_template.php index c2450e7f388d9248226f771b6f52b3be02fccadc..0c4133c6cb01bc1d4a2d99419fa77b81430be911 100644 --- a/src/Views/main_template.php +++ b/src/Views/main_template.php @@ -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'); diff --git a/src/Views/manage_lockups.php b/src/Views/manage_lockups.php index b20134367781c21f700f36ffb31d7d12d52e1d00..72d10d8f2b31e7064d230e5aa517d02cb249e564 100644 --- a/src/Views/manage_lockups.php +++ b/src/Views/manage_lockups.php @@ -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">×</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">×</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 @@ <?php endif; ?> <?php if (\Auth::$current_user->isCreative()): ?> <h4>Lockups Needing Creative Approval</h4> - <table> + <table class="dcf-table dcf-table-bordered"> <thead> <tr> <th>Title</th> @@ -235,7 +235,7 @@ <br> <?php endif; ?> <h4>My Lockups</h4> - <table> + <table class="dcf-table dcf-table-bordered"> <thead> <tr> <th>Title</th> @@ -252,21 +252,21 @@ <td><?php echo $lockup->getFullStatusText(); ?></td> <td class="table-actions right" style="min-width: 200px;"> <?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> diff --git a/src/Views/new_lockup.php b/src/Views/new_lockup.php index 4d614bf2596a62c6939feebf4b7a6a15153702fa..77ad7c30dc15561f1b0266fc26300423a5e11748 100644 --- a/src/Views/new_lockup.php +++ b/src/Views/new_lockup.php @@ -1,3 +1,4 @@ +<?php $infoIconSVG = \UNL\Templates\Icons::get(\UNL\Templates\Icons::ICON_INFO, '{"title": "Info Tooltip", "size": 6}'); ?> <div class="dcf-bleed dcf-pt-8 dcf-pb-8"> <div class="dcf-wrapper"> <h3 class="page-title">Create New Lockup</h3> @@ -187,7 +188,8 @@ <div id="organization-field"> <label for="organization">Organization</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 31 characters max </div> @@ -196,7 +198,8 @@ </div> <div id="organization-second-line-field" style="display: none;"> <label for="organization-second-line">Organization Second Line</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 31 characters max </div> @@ -205,7 +208,8 @@ </div> <div id="subject-field" style="display: none;"> <label for="subject">Subject</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 40 characters max </div> @@ -215,7 +219,8 @@ </div> <div id="subject-second-line-field" style="display: none;"> <label for="subject-second-line">Subject Second Line</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 40 characters max </div> @@ -225,7 +230,8 @@ </div> <div id="acronym-field" style="display: none;"> <label for="acronym">Acronym</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 10 characters max </div> @@ -235,7 +241,8 @@ </div> <div id="acronym-second-line-field" style="display: none;"> <label for="acronym-second-line">Acronym Second Line</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 10 characters max </div> @@ -245,7 +252,8 @@ </div> <div id="acronym-subject-field" style="display: none;"> <label for="acronym-subject">Subject Acronym</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 15 characters max </div> @@ -255,7 +263,8 @@ </div> <div id="extension-county-field" style="display: none;"> <label for="extension-county">Extension County</label> - <div class="tooltip wdn-icon-info italic hang-right"> + <div class="tooltip italic hang-right"> + <?php echo $infoIconSVG; ?> <div> 40 characters max </div> diff --git a/src/Views/preview_lockup.php b/src/Views/preview_lockup.php index a1df9da5518aa3024e3e62211f271ebf48ba5a42..cf6c7b93fd8f01c206426134cd92d7c63aa0b67d 100644 --- a/src/Views/preview_lockup.php +++ b/src/Views/preview_lockup.php @@ -64,15 +64,21 @@ </div> <div class="tools dcf-txt-center"> <?php if ($context->lockup->user_id == \Auth::$current_user->id || \Auth::$current_user->isAdmin()): ?> - <div><a class="dcf-btn wdn-button-triad" href="<?php echo $context->lockup->getEditURL(); ?>">Edit Lockup</a></div><br> + <div><a class="dcf-btn dcf-btn-secondary" href="<?php echo $context->lockup->getEditURL(); ?>">Edit Lockup</a></div><br> <?php endif; ?> <?php if ($context->lockup->isFullyApproved() && ($context->lockup->user_id == \Auth::$current_user->id || \Auth::$current_user->isAdmin())): ?> - <form method="POST" action="/lockups/generate/" id="generate" class="dcf-txt-center" style="background-color: #DDDDDD"> - <div><label>You have permission to generate this lockup. Click "Generate Files" below to begin.</label></div> - <input type="text" class="hidden" value="<?php echo $context->lockup->id ?>" name="id"> - <button type="submit" class="dcf-btn wdn-button-complement" id="submit-generate">Generate Files</button><br> - <input type="checkbox" checked="checked" id="publish-lockup" name="publish-lockup"><label for="publish-lockup">Publish lockup for all UNL users?</label> - <div style="display: none;" id="going-message"> + + <form method="POST" action="/lockups/generate/" id="generate" class="dcf-form dcf-txt-center dcf-p-4 dcf-b-1 dcf-b-solid dcf-m-auto" style="max-width: 500px"> + <p>You have permission to generate this lockup. Click "Generate Files" below to begin.</p> + <input type="hidden" value="<?php echo $context->lockup->id ?>" name="id"> + <button type="submit" class="dcf-btn dcf-btn-secondary" id="submit-generate">Generate Files</button> + <div class="dcf-form-group"> + <div class="dcf-mt-3 dcf-input-checkbox dcf-m-auto" style="max-width: 300px"> + <input type="checkbox" checked="checked" id="publish-lockup" name="publish-lockup"> + <label for="publish-lockup">Publish lockup for all UNL users?</label> + </div> + </div> + <div style="display: none;" id="going-message"> <img src="/images/spinner.svg" style="height: 16px;"> <label style="font-style: italic;">And off we go! This will take a little while. Please be patient, we'll redirect you when this is complete.</label> </div> @@ -80,12 +86,12 @@ <br> <?php endif; ?> - <form id="approve" class="dcf-txt-center"> + <form id="approve" class="dcf-form dcf-txt-center"> <?php if ((\Auth::$current_user->isApprover() && $context->lockup->approver_id == \Auth::$current_user->id) || (\Auth::$current_user->isCreative()) || \Auth::$current_user->isAdmin()): ?> - <button id="approve-lockup" type="button" class="dcf-btn wdn-button-complement">Approve This Lockup</button> - <button id="leave-feedback" type="button" class="dcf-btn wdn-button-triad">Just Leave Feedback</button> + <button id="approve-lockup" type="button" class="dcf-btn dcf-btn-secondary">Approve This Lockup</button> + <button id="leave-feedback" type="button" class="dcf-btn dcf-btn-secondary">Just Leave Feedback</button> <button id="deny-lockup" type="button" class="dcf-btn dcf-btn-primary">Deny This Lockup</button> <div style="margin-top: 1em;"><label>Feedback will be left whichever option you choose above.</label></div> <?php endif; ?> diff --git a/src/Views/regenerate.php b/src/Views/regenerate.php index c4873a5c2e690f38bbc17c3468d97adc7b4e5d88..74be1acd76b79b99210e2e8498f8ae8c6b67c1c7 100644 --- a/src/Views/regenerate.php +++ b/src/Views/regenerate.php @@ -17,9 +17,9 @@ </div> <div class="tools dcf-txt-center"> <?php if ($context->lockup->isFullyApproved()): ?> - <form method="POST" action="/lockups/regenerate/" id="regenerate" class="dcf-txt-center"> - <input type="text" class="hidden" value="<?php echo $context->lockup->id ?>" name="id"> - <button type="submit" class="dcf-btn wdn-button-triad" id="submit-regenerate">Regenerate Files</button> + <form method="POST" action="/lockups/regenerate/" id="regenerate" class="dcf-form dcf-txt-center"> + <input type="hidden" value="<?php echo $context->lockup->id ?>" name="id"> + <button type="submit" class="dcf-btn dcf-btn-secondary" id="submit-regenerate">Regenerate Files</button> <div style="display: none;" id="going-message"> <img src="/images/spinner.svg" style="height: 16px;"> <label style="font-style: italic;">And off we go! This will take a little while. Please be patient, we'll redirect you when this is complete.</label>