diff --git a/data/html/Main.tpl.php b/data/html/Main.tpl.php index 4c95e3edad95d7f54233782e2fa413b48499bf76..55dbd7c1a90375a5b907c5d6f727548cafd3a007 100644 --- a/data/html/Main.tpl.php +++ b/data/html/Main.tpl.php @@ -1,137 +1,107 @@ <?php /* @var $context UNL_WDN_Emailer_Main */ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title><?php echo $context->subject ?></title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>UNL Marketplace Email</title> <style type="text/css"> - #outlook a{padding:0;} - .ReadMsgBody {width: 100%;} - .ExternalClass {width: 100%;} - .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} - body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} - table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} - img{-ms-interpolation-mode:bicubic;} - body{margin:0; padding:0;} - img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;} - table{border-collapse:collapse !important;} - body{height:100% !important; margin:0; padding:0; width:100% !important;} - .appleBody a {color:#999999; text-decoration: none;} - .appleFooter a {color:#ffffff;} - .appleEvents a {color: #abadb3; font-weight:bold; text-decoration: none;} - .appleEventsBody a {color: #81261d;; text-decoration: none;} - blockquote .original-only, .WordSection1 .original-only {display: none !important;} - blockquote table.forwarded-only, .WordSection1 table.forwarded-only {display: block !important;} + .ExternalClass {width: 100%;} + .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} + body {-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} + body {margin:0; padding:0;} + table td {border-collapse:collapse} - @media screen and (max-width: 650px) { - table[class="wrapper"]{ - width:100% !important;} - td[class="mobile-hide"]{ - display:none;} - td[class="mobile-show"]{ - display:block!important;} - td[class="mobile-logo"] img{ - height:54px!important; - width:54px!important;} - td[class="mobile-unl"]{ - height:23px;} - td[class="mobile-unl"] img{ - height:23px!important; - width:266px!important;} - td[class="mobile-header"]{ - vertical-align: top; - font-size: 23px!important; - line-height: 1.1!important;} - td[class="head1"]{ - font-size: 30px!important; - padding: 0 10px 20px!important;} - td[class="head2"]{ - font-size: 16px!important; - padding: 25px 20px 20px 20px!important;} - td[class="head3"]{ - font-size: 15px!important; - padding: 0 0 25px 0!important;} - td[class="head4"]{ - padding: 0 20px 25px 20px !important;} - table[class="button"]{ - width:85%!important; - height:auto} - td[class="button"]{ - font-size: 20px!important; - padding: 10px!important;} - img[class="img-full"]{ - width:100% !important; - max-width: 100%; - height:auto;} - table[class="responsive-table"]{ - float: none!important; - width:100%!important;} - td[class="padding"]{ - padding: 10px 8% 10px 8% !important; - text-align: center !important;} - td[class="section-padding"]{ - padding: 50px 15px 50px 15px !important;} - } + @media screen and (max-width: 650px) { + body[yahoo] .wrapper{ + width:100% !important;} + body[yahoo] .mobile-hide{ + display:none;} + body[yahoo] .mobile-show{ + display:block!important;} + body[yahoo] .wdn-header-top img{ + height:30px!important; + width:auto!important; + } + body[yahoo] .wdn-logo{ + width:66px!important; + } + body[yahoo] .wdn-logo img{ + height:71px!important; + width:auto!important; + } + body[yahoo] .wdn-logo-lockup img{ + height:71px!important; + width:auto!important; + } + body[yahoo] table.button{ + width:85%!important; + height:auto} + body[yahoo] td.button { + font-size: 20px!important; + padding: 10px!important;} + body[yahoo] .img-full{ + width:100% !important; + max-width: 100%; + height:auto;} + body[yahoo] .responsive-table{ + float: none!important; + width:100%!important;} + body[yahoo] .padding { + padding: 10px 8% 10px 8% !important; + text-align: center !important;} + body[yahoo] .section-padding{ + padding: 50px 15px 50px 15px !important;} + } </style> </head> -<body style="margin: 0; padding: 0; line-height: 0"> - <table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: normal;"> - <tr> - <td style="border-bottom: 1px solid #ECDEC5;"> - <table border="0" cellpadding="0" cellspacing="0" width="100%"> - <tr> - <td bgcolor="#F2EEE4" class="mobile-hide"> - <table align="center" border="0" cellpadding="0" cellspacing="0" width="650" class="responsive-table"> - <tr> - <td><a href="http://www.unl.edu/" target="_blank"><img src="<?php echo $context->imgHost ?>header_01.gif" alt="" height="41" width="650" border="0" align="left" style="display: block;"></a></td> - </tr> - </table> - </td> - </tr> - <tr> - <td bgcolor="#F8F5EC" class="mobile-hide"> - <table align="center" border="0" cellpadding="0" cellspacing="0" width="650" class="responsive-table"> - <tr> - <td><a href="http://www.unl.edu/" target="_blank"><img src="<?php echo $context->imgHost ?>header_02.gif" alt="" height="30" width="650" border="0" align="left" style="display: block;"></a></td> - </tr> - <tr> - <td align="center" style="font-size: 30px; line-height: 1.5; font-family: Georgia, serif;"><a href="<?php echo $context->main_uri ?>" target="_blank" style="text-decoration: none; color:#444341"><?php echo $context->html_header ?></a></td> - </tr> - </table> - </td> - </tr> - <tr> - <td bgcolor="#F8F5EC" style="display: none;" class="mobile-show"> - <table align="center" border="0" cellpadding="0" cellspacing="0" width="650" class="responsive-table"> - <tr> - <td class="mobile-logo" rowspan="2" width="54"><a href="http://www.unl.edu/" target="_blank"><img src="<?php echo $context->imgHost ?>header_05.gif" width="1" height="1" alt="" border="0" align="left" style="display: block; width: 0px; height: 0px;"></a></td> - <td class="mobile-unl"><img src="<?php echo $context->imgHost ?>header_06.gif" width="1" height="1" alt="" border="0" align="left" style="display: block; width: 0px; height: 0px;"></td> - </tr> - <tr> - <td class="mobile-header" style="font-size: 0px; line-height: 0; font-family: Georgia, serif;"><a href="<?php echo $context->main_uri ?>" target="_blank" style="text-decoration: none; color: #444341;"><?php echo isset($context->html_header_short) ? $context->html_header_short : $context->html_header ?></a></td> - </tr> - </table> - </td> - </tr> - </table> - </td> - </tr> +<body yahoo="fix" style="margin: 0; padding: 0; color:#5b5b5a; font-size:16px; line-height:1.777; font-family:Georgia, serif;" bgcolor="#fefdfa" link="#d00000"> + <table border="0" cellpadding="0" cellspacing="0" width="100%"> + <td> + <table border="0" cellpadding="0" cellspacing="0" width="100%"> + <tr> + <td bgcolor="#FEFDFA" class="wdn-header-top"> + <table align="center" border="0" cellpadding="0" cellspacing="0" width="650" class="responsive-table"> + <tr> + <td><a href="http://www.unl.edu/" target="_blank" style="text-decoration: none; color: #d00000;"><img src="<?php echo $context->imgHost ?>41_01.gif" width="320" height="36" alt="" border="0" align="left" style="display: block;"></a></td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td style="border-top:1px solid #EAE9E6"> + <table border="0" cellpadding="0" cellspacing="0" width="100%"> + <tr> + <td bgcolor="#FEFDFA"> + <table align="center" border="0" cellpadding="0" cellspacing="0" width="650" class="responsive-table"> + <tr> + <td width="77" class="wdn-logo"><a href="http://www.unl.edu/" target="_blank"><img src="<?php echo $context->imgHost ?>41_02.gif" width="77" height="83" alt="" border="0" align="left" style="display: block;"></a></td> + <td valign="middle" class="wdn-logo-lockup" style="font-size:38px; line-height:1; font-family: 'Arial Narrow', Arial, sans-serif; text-transform:uppercase; white-space:nowrap"><a href="<?php echo $context->main_uri ?>" target="_blank" style="text-decoration: none; color:#474746"><?php echo $context->html_header ?></a></td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> </table> - + <?php echo $context->html_body ?> <?php echo $context->getChildHtml() ?> - - <table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: normal;"> + + <table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: normal;"> <tr> - <td bgcolor="#525151" align="center"> + <td bgcolor="#333332" align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding: 20px 20px 20px 20px;"> <table width="610" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table"> <tr> - <td align="left" valign="middle" style="font-size: 10px; line-height: 16px; font-family: Helvetica, Arial, sans-serif; color:#cfcfcf; -webkit-text-size-adjust: none"><span class="appleFooter" style="color:#cfcfcf; -webkit-text-size-adjust: none"> - <?php echo $context->html_footer ?> + <td align="left" valign="middle" style="font-size: 10px; line-height: 16px; font-family: Verdana, sans-serif; color:#adacaa; -webkit-text-size-adjust: none"><span class="appleFooter" style="color:#adacaa; -webkit-text-size-adjust: none"> + <?php echo $context->html_footer ?> </span></td> - <td width="111" valign="top" class="mobile-hide" style="padding-left:20px"><a href="http://www.unl.edu/" target="_blank" style="font-family: Arial; color: #ffffff; font-size: 14px;"><img alt="University of Nebraska-Lincoln" src="<?php echo $context->imgHost ?>wordmark.gif" width="111" height="43" style="display: block;" border="0"></a></td> + <td width="111" valign="top" class="mobile-hide" style="padding-left:20px"><a href="http://www.unl.edu/" target="_blank" style="font-family: Verdana; color: #ffffff; font-size: 14px;"><img alt="University of Nebraska-Lincoln" src="<?php echo $context->imgHost ?>wordmark.gif" width="111" height="43" style="display: block;" border="0"></a></td> </tr> </table> </td> @@ -139,6 +109,5 @@ </table> </td> </tr> - </table> -</body> + </table></body> </html> diff --git a/data/html/template/Band.tpl.php b/data/html/template/Band.tpl.php index b2467058591378252129a0cd801d82d0cc853be5..2fcefb3cb13e36048aa0d6999f5a752a39e15dd9 100644 --- a/data/html/template/Band.tpl.php +++ b/data/html/template/Band.tpl.php @@ -1,6 +1,6 @@ <?php /* @var $context UNL_WDN_Emailer_Template_Band */ ?> -<?php $color = isset($context->foreground) ? $context->foreground : '#444431'; ?> -<?php $bgcolor = isset($context->background) ? $context->background : '#F8F5EC'; ?> +<?php $color = isset($context->foreground) ? $context->foreground : '#474746'; ?> +<?php $bgcolor = isset($context->background) ? $context->background : '#FEFDFA'; ?> <?php $hcolor = isset($context->headlineColor) ? $context->headlineColor : $color; ?> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: normal;"> <tr> @@ -14,7 +14,7 @@ <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php if (isset($context->headline)): ?> <tr> - <td align="left" style="font-size: 25px; font-family: Helvetica, Arial, sans-serif; color: <?php echo $hcolor ?>; padding-bottom:20px;"> + <td align="left" style="font-size: 25px; font-family: 'Arial Narrow', Arial, sans-serif; color: <?php echo $hcolor ?>; padding-bottom:20px;"> <?php echo $context->headline ?> </td> </tr> diff --git a/data/html/template/Link.tpl.php b/data/html/template/Link.tpl.php index b0c1aab703cb016391a7bda24d38eaf7705fd08e..8c60057c5bd85adbfa99a4da5630aae432fd1f60 100644 --- a/data/html/template/Link.tpl.php +++ b/data/html/template/Link.tpl.php @@ -1,2 +1,2 @@ <?php /* @var $context UNL_WDN_Emailer_Template_Link */ ?> -<a href="<?php echo $context->href ?>" style="text-decoration:none; border-bottom:1px dotted #cc0000; color: #cc0000;"><?php echo $context->label ?></a> \ No newline at end of file +<a href="<?php echo $context->href ?>" style="text-decoration:none; border-bottom:1px dotted #d00000; color: #d00000;"><?php echo $context->label ?></a> \ No newline at end of file diff --git a/data/txt/Main.tpl.php b/data/txt/Main.tpl.php index 566022f90887634e454a060e641ed0fe31f5f9b7..b72b521a510f1dbdc044088b002ae75ca1f2cdd7 100644 --- a/data/txt/Main.tpl.php +++ b/data/txt/Main.tpl.php @@ -1,28 +1,9 @@ <?php /* @var $context UNL_WDN_Emailer_Main */ ?> - -DDDDDDDDDDDD ?DDDDDDDDDDDDDDDD -DDDNNNNNNNDDZ ?DDNNNNNNNNNNNDDD -DDN7= $NDD~ ?DDDZZ7 ,IZZNDD -DDDDDN :NDD. ?DDDDDDZ MDDDDDD __ __ __ ___ __ __ -888DDD? .NDDD ?8888DDD NDD888D / \|\ ||\ /|_ |__)(_ | | \_/ / \|_ - ?DD? :DDDO. .DDD NDD, \__/| \|| \/ |__| \ __)| | | \__/| - ?DD? +M $NDD= .DDD NDD, - ?DD? +ND: :NDD. .DDD NDD, __ __ __ __ - ?DD? +NDDI $DDD .DDD NDD, |\ ||_ |__)|__) /\ (_ |_/ /\ - ?DD? +NDDN: DDDZ,DDD NDD, | \||__|__)| \ /--\__)| \/--\ - ?DD? +NDDDDN $NDDDDD NDD, - ?DD? +NDDZDDD: :NDDDD NDD, __ __ - ?DD? +NDD IDDDI $DDD NDD, | ||\ |/ / \| |\ | - ?DD? +NDD ,DDND DND NDD, |__|| \|\__\__/|__| \| - ?DD? +NDD IDDN N NDD, - ?DD? +NDD ODDD: : NDD, http://www.unl.edu/ -DDDDDD? +NDDDDDD: DDDI NDDDDDD -DDDDDD+ =NDDDDDD: .DDND MDDDDDD -DDN77~ I7ZDDD: ?DDNI =7NDD -DDNOOOOOOOOO8DDD: ODDNOOOOOOONDD -DDDDDDDDDDDDDDDD: DDDDDDDDDDDD <?php echo strip_tags($context->html_header) . "\n" ?> -8888888888888888, ,Z8888888888 <?php echo $context->main_uri . "\n" ?> +UNIVERSITY OF NEBRASKA–LINCOLN +------------------------------------------------------------------------------------------ +<?php echo strip_tags($context->html_header) . "\n" ?> +<?php echo $context->main_uri . "\n" ?> ========================================================================================== diff --git a/src/UNL/WDN/Emailer/Main.php b/src/UNL/WDN/Emailer/Main.php index 51ad5caff2292bf7c3ce446c6f2341342acad19d..48837452f83d58aa842d935fa984105de1b1a6a4 100644 --- a/src/UNL/WDN/Emailer/Main.php +++ b/src/UNL/WDN/Emailer/Main.php @@ -11,8 +11,8 @@ class UNL_WDN_Emailer_Main extends UNL_WDN_Emailer_Template public $subject; - public $imgHost = 'http://www.unl.edu/wdn/templates_4.0/images/email/'; - + public $imgHost = 'http://www.unl.edu/images/email/4-1/'; + public $html_body; public $text_body; diff --git a/src/UNL/WDN/Emailer/Template/Button.php b/src/UNL/WDN/Emailer/Template/Button.php index 4d41f5ae1a352187695cabd0fa91aa4e8e2f305b..1ded4c5d1c58b59d4c9f622f19be1dcf2ecae624 100644 --- a/src/UNL/WDN/Emailer/Template/Button.php +++ b/src/UNL/WDN/Emailer/Template/Button.php @@ -18,7 +18,7 @@ class UNL_WDN_Emailer_Template_Button extends UNL_WDN_Emailer_Template_Link switch ($this->color) { case 'brand': case 'red'; - return '#cc0000'; + return '#d00000'; case 'triad': case 'blue': return '#137cbd'; @@ -27,7 +27,7 @@ class UNL_WDN_Emailer_Template_Button extends UNL_WDN_Emailer_Template_Link return '#008a2c'; case 'neutral': case 'tan': - return '4a3b13'; + return '#4a3b13'; case 'energetic': case 'orange': return '#d4440b'; diff --git a/src/UNL/WDN/Emailer/Template/Callout.php b/src/UNL/WDN/Emailer/Template/Callout.php index 63b4bd48d384969f28ba3d53b73121b890a38b47..66e2726682652856c6c6b2252e721a0fa16ccd7e 100644 --- a/src/UNL/WDN/Emailer/Template/Callout.php +++ b/src/UNL/WDN/Emailer/Template/Callout.php @@ -2,9 +2,9 @@ class UNL_WDN_Emailer_Template_Callout extends UNL_WDN_Emailer_Template { - public $color = '#f6f5f0'; + public $color = '#FEFDFA'; - public $colorAccent = '#d5d0c1'; + public $colorAccent = '#d5d5d2'; public function __construct() {