Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / differential / mail / DifferentialMailView.php
blob81b78367656ed7cdcb0d536d2ba20737690aab17
1 <?php
3 abstract class DifferentialMailView
4 extends Phobject {
6 protected function renderCodeBlock($block) {
7 $style = array(
8 'font: 11px/15px "Menlo", "Consolas", "Monaco", monospace;',
9 'white-space: pre-wrap;',
10 'clear: both;',
11 'padding: 4px 0;',
12 'margin: 0;',
15 return phutil_tag(
16 'div',
17 array(
18 'style' => implode(' ', $style),
20 $block);
23 protected function renderHeaderBlock($block) {
24 $style = array(
25 'color: #74777d;',
26 'background: #eff2f4;',
27 'padding: 6px 8px;',
28 'overflow: hidden;',
31 return phutil_tag(
32 'div',
33 array(
34 'style' => implode(' ', $style),
36 $block);
39 protected function renderHeaderBold($content) {
40 return phutil_tag(
41 'span',
42 array(
43 'style' => 'color: #4b4d51; font-weight: bold;',
45 $content);
48 protected function renderContentBox($content) {
49 $style = array(
50 'border: 1px solid #C7CCD9;',
51 'border-radius: 3px;',
54 return phutil_tag(
55 'div',
56 array(
57 'style' => implode(' ', $style),
59 $content);