diff --git a/plugins/EmailSummary/useremailsummaryhandler.php b/plugins/EmailSummary/useremailsummaryhandler.php index 7372a27943..8ba8a7a20b 100644 --- a/plugins/EmailSummary/useremailsummaryhandler.php +++ b/plugins/EmailSummary/useremailsummaryhandler.php @@ -124,13 +124,18 @@ class UserEmailSummaryHandler extends QueueHandler $out = new XMLStringer(); - $out->raw(sprintf(_('
Recent updates from %1s for %2s:
'), + $out->elementStart('div', array('width' => '100%', + 'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;')); + + $out->elementStart('div', array('style' => 'color: #ffffff; background-color: #4c609a; font-weight: bold; margin-bottom: 10px; padding: 4px;')); + $out->raw(sprintf(_('Recent updates from %1s for %2s:'), common_config('site', 'name'), $profile->getBestName())); - + $out->elementEnd('div'); + + $out->elementStart('table', array('width' => '550px', + 'style' => 'border: none; border-collapse: collapse;', 'cellpadding' => '6')); - $out->elementStart('table', array('width' => '541px', 'style' => 'border: none')); - while ($notice->fetch()) { $profile = Profile::staticGet('id', $notice->profile_id); @@ -145,30 +150,30 @@ class UserEmailSummaryHandler extends QueueHandler $out->elementStart('td', array('width' => AVATAR_STREAM_SIZE, 'height' => AVATAR_STREAM_SIZE, 'align' => 'left', - 'valign' => 'top')); + 'valign' => 'top', + 'style' => 'border-bottom: 1px dotted #C5CEE3; padding: 10px 6px 10px 6px;')); $out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE), - 'class' => 'avatar photo', 'width' => AVATAR_STREAM_SIZE, 'height' => AVATAR_STREAM_SIZE, 'alt' => $profile->getBestName())); $out->elementEnd('td'); $out->elementStart('td', array('align' => 'left', - 'valign' => 'top')); + 'valign' => 'top', + 'style' => 'border-bottom: 1px dotted #C5CEE3; padding: 10px 6px 10px 6px;')); $out->element('a', array('href' => $profile->profileurl), $profile->nickname); $out->text(' '); $out->raw($notice->rendered); - $out->element('br'); // yeah, you know it. I just wrote a