@@ -41,57 +41,57 @@ |
||
| 41 | 41 | // html result. start with an empty string or a html comment |
| 42 | 42 | $html = $this->getBuilder()->getHtmlComment('ROW CONTAINER' . ' //', $indent); |
| 43 | 43 | |
| 44 | - $html .= $indent . '<tr>'.PHP_EOL; |
|
| 45 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 44 | + $html .= $indent . '<tr>' . PHP_EOL; |
|
| 45 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 46 | 46 | |
| 47 | 47 | $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . ' '); |
| 48 | 48 | |
| 49 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL; |
|
| 50 | - $html .= $indent . ' <tr '. $this->getRowStyle() .'>'.PHP_EOL; |
|
| 51 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 49 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 50 | + $html .= $indent . ' <tr ' . $this->getRowStyle() . '>' . PHP_EOL; |
|
| 51 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 52 | 52 | |
| 53 | 53 | $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . ' '); |
| 54 | 54 | |
| 55 | 55 | $html .= $indent . ' <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . |
| 56 | - '" bgcolor="'. $this->getEffectiveStyle('background-color'). |
|
| 57 | - '" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 58 | - '" class="flexibleContainer">'.PHP_EOL; |
|
| 59 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 60 | - $html .= $indent . ' <td '. $this->getRowStyle() . |
|
| 61 | - ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 62 | - '" class="flexibleContainerCell">'.PHP_EOL; |
|
| 56 | + '" bgcolor="' . $this->getEffectiveStyle('background-color') . |
|
| 57 | + '" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 58 | + '" class="flexibleContainer">' . PHP_EOL; |
|
| 59 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 60 | + $html .= $indent . ' <td ' . $this->getRowStyle() . |
|
| 61 | + ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 62 | + '" class="flexibleContainerCell">' . PHP_EOL; |
|
| 63 | 63 | |
| 64 | 64 | $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . ' '); |
| 65 | 65 | |
| 66 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL; |
|
| 67 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 68 | - $html .= $indent . ' <td align="'. $this->horizontalAlign .'" valign="'. $this->verticalAlign .'" style="color:'. $this->getEffectiveStyle('color') . ';" bgcolor="'. $this->getEffectiveStyle('background-color') . '">'.PHP_EOL; |
|
| 66 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL; |
|
| 67 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 68 | + $html .= $indent . ' <td align="' . $this->horizontalAlign . '" valign="' . $this->verticalAlign . '" style="color:' . $this->getEffectiveStyle('color') . ';" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 69 | 69 | |
| 70 | 70 | // render child elements collection |
| 71 | - foreach ($this->childElements as $element){ |
|
| 72 | - $html .= $element->getHtml($indent . ' '). PHP_EOL; |
|
| 71 | + foreach ($this->childElements as $element) { |
|
| 72 | + $html .= $element->getHtml($indent . ' ') . PHP_EOL; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 76 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 77 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 75 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 76 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 77 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 78 | 78 | |
| 79 | 79 | $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . ' '); |
| 80 | 80 | |
| 81 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 82 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 83 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 81 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 82 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 83 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 84 | 84 | |
| 85 | 85 | $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . ' '); |
| 86 | 86 | |
| 87 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 88 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 89 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 87 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 88 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 89 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 90 | 90 | |
| 91 | 91 | $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . ' '); |
| 92 | 92 | |
| 93 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 94 | - $html .= $indent . '</tr>'.PHP_EOL; |
|
| 93 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 94 | + $html .= $indent . '</tr>' . PHP_EOL; |
|
| 95 | 95 | |
| 96 | 96 | $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW CONTAINER', $indent); |
| 97 | 97 | return $html; |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | $this->buttonText = $content; |
| 53 | 53 | $this->buttonSrc = $src; |
| 54 | 54 | $this->styles['button_background'] = '#DA5A20'; |
| 55 | - $this->styles['button_color'] = '#EEEEEE'; |
|
| 56 | - $this->styles['button_padding'] = '15'; |
|
| 55 | + $this->styles['button_color'] = '#EEEEEE'; |
|
| 56 | + $this->styles['button_padding'] = '15'; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -110,69 +110,69 @@ discard block |
||
| 110 | 110 | // html result. start with an empty string or a html comment |
| 111 | 111 | $html = $this->getBuilder()->getHtmlComment('ROW BUTTON ' . ' //', $indent); |
| 112 | 112 | |
| 113 | - $html .= $indent . '<tr>'.PHP_EOL; |
|
| 114 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 113 | + $html .= $indent . '<tr>' . PHP_EOL; |
|
| 114 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 115 | 115 | |
| 116 | 116 | $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . ' '); |
| 117 | 117 | |
| 118 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL; |
|
| 119 | - $html .= $indent . ' <tr '. $this->getRowStyle() .'>'.PHP_EOL; |
|
| 120 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 118 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL; |
|
| 119 | + $html .= $indent . ' <tr ' . $this->getRowStyle() . '>' . PHP_EOL; |
|
| 120 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 121 | 121 | |
| 122 | 122 | $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . ' '); |
| 123 | 123 | |
| 124 | - $html .= $indent . ' <table border="0" cellpadding="' . $this->cellPadding. |
|
| 125 | - '" cellspacing="0" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 126 | - '" class="flexibleContainer">'.PHP_EOL; |
|
| 124 | + $html .= $indent . ' <table border="0" cellpadding="' . $this->cellPadding . |
|
| 125 | + '" cellspacing="0" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 126 | + '" class="flexibleContainer">' . PHP_EOL; |
|
| 127 | 127 | |
| 128 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 129 | - $html .= $indent . ' <td '. $this->getRowStyle() . |
|
| 130 | - ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 131 | - '" class="flexibleContainerCell">'.PHP_EOL; |
|
| 128 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 129 | + $html .= $indent . ' <td ' . $this->getRowStyle() . |
|
| 130 | + ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 131 | + '" class="flexibleContainerCell">' . PHP_EOL; |
|
| 132 | 132 | |
| 133 | 133 | $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . ' '); |
| 134 | 134 | |
| 135 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="50%"'. |
|
| 136 | - ' class="emailButton" style="background-color: '. |
|
| 137 | - $this->getEffectiveStyle('background-color') . ';">'.PHP_EOL; |
|
| 135 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="50%"' . |
|
| 136 | + ' class="emailButton" style="background-color: ' . |
|
| 137 | + $this->getEffectiveStyle('background-color') . ';">' . PHP_EOL; |
|
| 138 | 138 | |
| 139 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 140 | - $html .= $indent . ' <td align="center" valign="middle" class="buttonContent" cellpadding="0" '. |
|
| 141 | - 'bgcolor="'.$this->getEffectiveStyle('button_background').'"'. |
|
| 142 | - ' style="'. |
|
| 143 | - 'padding-top:' . $this->getEffectiveStyle('button_padding'). 'px;'. |
|
| 144 | - 'padding-bottom:' . $this->getEffectiveStyle('button_padding'). 'px;'. |
|
| 145 | - 'padding-left:' . $this->getEffectiveStyle('button_padding'). 'px;'. |
|
| 146 | - 'padding-right:' . $this->getEffectiveStyle('button_padding'). 'px;'. |
|
| 147 | - '"'. |
|
| 148 | - '>'.PHP_EOL; |
|
| 149 | - $html .= $indent . ' <a style="color:'. $this->getEffectiveStyle('button_color') . |
|
| 139 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 140 | + $html .= $indent . ' <td align="center" valign="middle" class="buttonContent" cellpadding="0" ' . |
|
| 141 | + 'bgcolor="' . $this->getEffectiveStyle('button_background') . '"' . |
|
| 142 | + ' style="' . |
|
| 143 | + 'padding-top:' . $this->getEffectiveStyle('button_padding') . 'px;' . |
|
| 144 | + 'padding-bottom:' . $this->getEffectiveStyle('button_padding') . 'px;' . |
|
| 145 | + 'padding-left:' . $this->getEffectiveStyle('button_padding') . 'px;' . |
|
| 146 | + 'padding-right:' . $this->getEffectiveStyle('button_padding') . 'px;' . |
|
| 147 | + '"' . |
|
| 148 | + '>' . PHP_EOL; |
|
| 149 | + $html .= $indent . ' <a style="color:' . $this->getEffectiveStyle('button_color') . |
|
| 150 | 150 | ';text-decoration:none;font-family:' . $this->getEffectiveStyle('font') . |
| 151 | 151 | ';font-size:20px;line-height:135%;" ' . |
| 152 | 152 | 'href="' . $this->buttonSrc . '" target="_blank">' . |
| 153 | 153 | $this->buttonText . |
| 154 | - '</a>'.PHP_EOL; |
|
| 154 | + '</a>' . PHP_EOL; |
|
| 155 | 155 | |
| 156 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 157 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 158 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 156 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 157 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 158 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 159 | 159 | |
| 160 | 160 | $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . ' '); |
| 161 | 161 | |
| 162 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 163 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 164 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 162 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 163 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 164 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 165 | 165 | |
| 166 | 166 | $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . ' '); |
| 167 | 167 | |
| 168 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 169 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 170 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 168 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 169 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 170 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 171 | 171 | |
| 172 | 172 | $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . ' '); |
| 173 | 173 | |
| 174 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 175 | - $html .= $indent . '</tr>'.PHP_EOL; |
|
| 174 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 175 | + $html .= $indent . '</tr>' . PHP_EOL; |
|
| 176 | 176 | |
| 177 | 177 | $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW BUTTON', $indent); |
| 178 | 178 | return $html; |
@@ -99,59 +99,59 @@ |
||
| 99 | 99 | // html result. start with an empty string or a html comment |
| 100 | 100 | $html = $this->getBuilder()->getHtmlComment('ROW TWO COLUMNS CONTAINER' . ' //', $indent); |
| 101 | 101 | |
| 102 | - $html .= $indent . '<tr>'.PHP_EOL; |
|
| 103 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 102 | + $html .= $indent . '<tr>' . PHP_EOL; |
|
| 103 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 104 | 104 | |
| 105 | 105 | $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . ' '); |
| 106 | 106 | |
| 107 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL; |
|
| 108 | - $html .= $indent . ' <tr'. $this->getRowStyle() .'>'.PHP_EOL; |
|
| 109 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 107 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 108 | + $html .= $indent . ' <tr' . $this->getRowStyle() . '>' . PHP_EOL; |
|
| 109 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 110 | 110 | |
| 111 | 111 | $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . ' '); |
| 112 | 112 | |
| 113 | - $html .= $indent . ' <table border="0" cellspacing="0" cellpadding="'. $this->cellPadding . |
|
| 114 | - '" bgcolor="'. $this->getEffectiveStyle('background-color'). |
|
| 115 | - '" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 116 | - '" class="flexibleContainer">'.PHP_EOL; |
|
| 117 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 118 | - $html .= $indent . ' <td'.$this->getRowStyle(). |
|
| 119 | - ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 120 | - '" class="flexibleContainerCell">'.PHP_EOL; |
|
| 113 | + $html .= $indent . ' <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . |
|
| 114 | + '" bgcolor="' . $this->getEffectiveStyle('background-color') . |
|
| 115 | + '" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 116 | + '" class="flexibleContainer">' . PHP_EOL; |
|
| 117 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 118 | + $html .= $indent . ' <td' . $this->getRowStyle() . |
|
| 119 | + ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 120 | + '" class="flexibleContainerCell">' . PHP_EOL; |
|
| 121 | 121 | |
| 122 | 122 | $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . ' '); |
| 123 | 123 | |
| 124 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL; |
|
| 125 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 124 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL; |
|
| 125 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 126 | 126 | |
| 127 | 127 | $html .= $this->getBuilder()->getHtmlComment('COLUMN LEFT //', $indent . ' '); |
| 128 | 128 | $html .= $this->leftColumn()->getHtml($indent . ' '); |
| 129 | 129 | $html .= $this->getBuilder()->getHtmlComment('// COLUMN LEFT', $indent . ' '); |
| 130 | 130 | |
| 131 | - $html .= $this->getBuilder()->getHtmlComment('COLUMN RIGHT //', $indent. ' '); |
|
| 131 | + $html .= $this->getBuilder()->getHtmlComment('COLUMN RIGHT //', $indent . ' '); |
|
| 132 | 132 | $html .= $this->rightColumn()->getHtml($indent . ' '); |
| 133 | - $html .= $this->getBuilder()->getHtmlComment('// COLUMN RIGHT', $indent. ' '); |
|
| 133 | + $html .= $this->getBuilder()->getHtmlComment('// COLUMN RIGHT', $indent . ' '); |
|
| 134 | 134 | |
| 135 | 135 | |
| 136 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 137 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 136 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 137 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 138 | 138 | |
| 139 | 139 | $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . ' '); |
| 140 | 140 | |
| 141 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 142 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 143 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 141 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 142 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 143 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 144 | 144 | |
| 145 | 145 | $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . ' '); |
| 146 | 146 | |
| 147 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 148 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 149 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 147 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 148 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 149 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 150 | 150 | |
| 151 | 151 | $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . ' '); |
| 152 | 152 | |
| 153 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 154 | - $html .= $indent . '</tr>'.PHP_EOL; |
|
| 153 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 154 | + $html .= $indent . '</tr>' . PHP_EOL; |
|
| 155 | 155 | |
| 156 | 156 | $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW TWO COLUMNS CONTAINER', $indent); |
| 157 | 157 | return $html; |
@@ -39,50 +39,50 @@ |
||
| 39 | 39 | // html result. start with an empty string or a html comment |
| 40 | 40 | $html = $this->getBuilder()->getHtmlComment('ROW DIVIDER' . ' //', $indent); |
| 41 | 41 | |
| 42 | - $html .= $indent . '<tr>'.PHP_EOL; |
|
| 43 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 42 | + $html .= $indent . '<tr>' . PHP_EOL; |
|
| 43 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 44 | 44 | |
| 45 | 45 | $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . ' '); |
| 46 | 46 | |
| 47 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL; |
|
| 48 | - $html .= $indent . ' <tr '. $this->getRowStyle() .'>'.PHP_EOL; |
|
| 49 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 47 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 48 | + $html .= $indent . ' <tr ' . $this->getRowStyle() . '>' . PHP_EOL; |
|
| 49 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 50 | 50 | |
| 51 | 51 | $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . ' '); |
| 52 | 52 | |
| 53 | 53 | $html .= $indent . ' <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . |
| 54 | - '" bgcolor="'. $this->getEffectiveStyle('background-color'). |
|
| 55 | - '" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 56 | - '" class="flexibleContainer">'.PHP_EOL; |
|
| 57 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 58 | - $html .= $indent . ' <td '. $this->getRowStyle(). |
|
| 59 | - ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 60 | - '" class="flexibleContainerCell">'.PHP_EOL; |
|
| 54 | + '" bgcolor="' . $this->getEffectiveStyle('background-color') . |
|
| 55 | + '" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 56 | + '" class="flexibleContainer">' . PHP_EOL; |
|
| 57 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 58 | + $html .= $indent . ' <td ' . $this->getRowStyle() . |
|
| 59 | + ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 60 | + '" class="flexibleContainerCell">' . PHP_EOL; |
|
| 61 | 61 | |
| 62 | 62 | $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . ' '); |
| 63 | 63 | |
| 64 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL; |
|
| 65 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 66 | - $html .= $indent . ' <td align="center" valign="top" style="border-top:1px solid '. $this->getEffectiveStyle('color') . ';"></td>'.PHP_EOL; |
|
| 67 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 68 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 64 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL; |
|
| 65 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 66 | + $html .= $indent . ' <td align="center" valign="top" style="border-top:1px solid ' . $this->getEffectiveStyle('color') . ';"></td>' . PHP_EOL; |
|
| 67 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 68 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 69 | 69 | |
| 70 | 70 | $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . ' '); |
| 71 | 71 | |
| 72 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 73 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 74 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 72 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 73 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 74 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 75 | 75 | |
| 76 | 76 | $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . ' '); |
| 77 | 77 | |
| 78 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 79 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 80 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 78 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 79 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 80 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 81 | 81 | |
| 82 | 82 | $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . ' '); |
| 83 | 83 | |
| 84 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 85 | - $html .= $indent . '</tr>'.PHP_EOL; |
|
| 84 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 85 | + $html .= $indent . '</tr>' . PHP_EOL; |
|
| 86 | 86 | |
| 87 | 87 | $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW DIVIDER', $indent); |
| 88 | 88 | return $html; |
@@ -70,54 +70,54 @@ |
||
| 70 | 70 | // html result. start with an empty string or a html comment |
| 71 | 71 | $html = $this->getBuilder()->getHtmlComment('ROW IMAGE CONTAINER' . ' //', $indent); |
| 72 | 72 | |
| 73 | - $html .= $indent . '<tr>'.PHP_EOL; |
|
| 74 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 73 | + $html .= $indent . '<tr>' . PHP_EOL; |
|
| 74 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 75 | 75 | |
| 76 | 76 | $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . ' '); |
| 77 | 77 | |
| 78 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL; |
|
| 79 | - $html .= $indent . ' <tr '.$this->getRowStyle() .'>'.PHP_EOL; |
|
| 80 | - $html .= $indent . ' <td align="center" valign="top">'.PHP_EOL; |
|
| 78 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 79 | + $html .= $indent . ' <tr ' . $this->getRowStyle() . '>' . PHP_EOL; |
|
| 80 | + $html .= $indent . ' <td align="center" valign="top">' . PHP_EOL; |
|
| 81 | 81 | |
| 82 | 82 | $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . ' '); |
| 83 | 83 | |
| 84 | 84 | $html .= $indent . ' <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . |
| 85 | - '" bgcolor="'. $this->getEffectiveStyle('background-color'). |
|
| 86 | - '" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 87 | - '" class="flexibleContainer">'.PHP_EOL; |
|
| 88 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 89 | - $html .= $indent . ' <td '. $this->getRowStyle() . |
|
| 90 | - ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . |
|
| 91 | - '" class="flexibleContainerCell">'.PHP_EOL; |
|
| 85 | + '" bgcolor="' . $this->getEffectiveStyle('background-color') . |
|
| 86 | + '" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 87 | + '" class="flexibleContainer">' . PHP_EOL; |
|
| 88 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 89 | + $html .= $indent . ' <td ' . $this->getRowStyle() . |
|
| 90 | + ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . |
|
| 91 | + '" class="flexibleContainerCell">' . PHP_EOL; |
|
| 92 | 92 | |
| 93 | 93 | $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . ' '); |
| 94 | 94 | |
| 95 | - $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL; |
|
| 96 | - $html .= $indent . ' <tr>'.PHP_EOL; |
|
| 97 | - $html .= $indent . ' <td valign="top" class="imageContent" color="'. $this->getEffectiveStyle('color') . '" bgcolor="'. $this->getEffectiveStyle('background-color') . '">'.PHP_EOL; |
|
| 95 | + $html .= $indent . ' <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL; |
|
| 96 | + $html .= $indent . ' <tr>' . PHP_EOL; |
|
| 97 | + $html .= $indent . ' <td valign="top" class="imageContent" color="' . $this->getEffectiveStyle('color') . '" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL; |
|
| 98 | 98 | |
| 99 | - $html .= $this->image->getHtml($indent . ' ').PHP_EOL;; |
|
| 99 | + $html .= $this->image->getHtml($indent . ' ') . PHP_EOL; ; |
|
| 100 | 100 | |
| 101 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 102 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 103 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 101 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 102 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 103 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 104 | 104 | |
| 105 | 105 | $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . ' '); |
| 106 | 106 | |
| 107 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 108 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 109 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 107 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 108 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 109 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 110 | 110 | |
| 111 | 111 | $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . ' '); |
| 112 | 112 | |
| 113 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 114 | - $html .= $indent . ' </tr>'.PHP_EOL; |
|
| 115 | - $html .= $indent . ' </table>'.PHP_EOL; |
|
| 113 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 114 | + $html .= $indent . ' </tr>' . PHP_EOL; |
|
| 115 | + $html .= $indent . ' </table>' . PHP_EOL; |
|
| 116 | 116 | |
| 117 | 117 | $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . ' '); |
| 118 | 118 | |
| 119 | - $html .= $indent . ' </td>'.PHP_EOL; |
|
| 120 | - $html .= $indent . '</tr>'.PHP_EOL; |
|
| 119 | + $html .= $indent . ' </td>' . PHP_EOL; |
|
| 120 | + $html .= $indent . '</tr>' . PHP_EOL; |
|
| 121 | 121 | |
| 122 | 122 | $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW IMAGE CONTAINER', $indent); |
| 123 | 123 | return $html; |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected function getMeta() |
| 35 | 35 | { |
| 36 | - $html = ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'.PHP_EOL; |
|
| 37 | - $html .= ' <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">'.PHP_EOL; |
|
| 38 | - $html .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0">'.PHP_EOL; |
|
| 36 | + $html = ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />' . PHP_EOL; |
|
| 37 | + $html .= ' <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">' . PHP_EOL; |
|
| 38 | + $html .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0">' . PHP_EOL; |
|
| 39 | 39 | $html .= $this->getHtmlComment('Disable auto telephone linking in iOS', ' '); |
| 40 | - $html .= ' <meta name="format-detection" content="telephone=no" />'.PHP_EOL; |
|
| 40 | + $html .= ' <meta name="format-detection" content="telephone=no" />' . PHP_EOL; |
|
| 41 | 41 | return $html; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function getTitle(string $title) |
| 53 | 53 | { |
| 54 | - return ' <title>' . $title . '</title>' . PHP_EOL; |
|
| 54 | + return ' <title>' . $title . '</title>' . PHP_EOL; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -64,41 +64,41 @@ discard block |
||
| 64 | 64 | protected function getStyles() |
| 65 | 65 | { |
| 66 | 66 | // start style tag |
| 67 | - $html = ' <style type="text/css">'.PHP_EOL; |
|
| 67 | + $html = ' <style type="text/css">' . PHP_EOL; |
|
| 68 | 68 | $html .= PHP_EOL; |
| 69 | 69 | |
| 70 | 70 | // -- reset styles ---------------------------------------- |
| 71 | 71 | $html .= $this->getCssComment('--- RESET STYLES ---', ' '); |
| 72 | - $html .= ' html { background-color:'. $this->backsideBackgroundColor . '; margin:0; padding:0; }'.PHP_EOL; |
|
| 72 | + $html .= ' html { background-color:' . $this->backsideBackgroundColor . '; margin:0; padding:0; }' . PHP_EOL; |
|
| 73 | 73 | $html .= ' body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0;'; |
| 74 | - $html .= ' width:100% !important; font-family:'. $this->emailBodyFont .';}'.PHP_EOL; |
|
| 75 | - $html .= ' table{border-collapse:collapse;}'.PHP_EOL; |
|
| 76 | - $html .= ' table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important; color:'. $this->emailBodyColor . ';font-weight:normal;}'.PHP_EOL; |
|
| 77 | - $html .= ' img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;}'.PHP_EOL; |
|
| 78 | - $html .= ' a {text-decoration:none !important;border-bottom: 1px solid;}'.PHP_EOL; |
|
| 74 | + $html .= ' width:100% !important; font-family:' . $this->emailBodyFont . ';}' . PHP_EOL; |
|
| 75 | + $html .= ' table{border-collapse:collapse;}' . PHP_EOL; |
|
| 76 | + $html .= ' table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important; color:' . $this->emailBodyColor . ';font-weight:normal;}' . PHP_EOL; |
|
| 77 | + $html .= ' img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;}' . PHP_EOL; |
|
| 78 | + $html .= ' a {text-decoration:none !important;border-bottom: 1px solid;}' . PHP_EOL; |
|
| 79 | 79 | |
| 80 | 80 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 81 | 81 | // todo custom COLOR !!!!!!!!!!!!!! font size ? line height ? margin ? see |
| 82 | 82 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 83 | - $html .= ' h1, h2, h3, h4, h5, h6 {color:#5F5F5F; font-weight:normal; font-family:'. $this->emailBodyFont .';'.PHP_EOL; |
|
| 84 | - $html .= ' font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;'.PHP_EOL; |
|
| 85 | - $html .= ' margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;'.PHP_EOL; |
|
| 86 | - $html .= ' padding-top:0;padding-bottom:10px;padding-left:0;padding-right:0;}'.PHP_EOL; |
|
| 83 | + $html .= ' h1, h2, h3, h4, h5, h6 {color:#5F5F5F; font-weight:normal; font-family:' . $this->emailBodyFont . ';' . PHP_EOL; |
|
| 84 | + $html .= ' font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;' . PHP_EOL; |
|
| 85 | + $html .= ' margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;' . PHP_EOL; |
|
| 86 | + $html .= ' padding-top:0;padding-bottom:10px;padding-left:0;padding-right:0;}' . PHP_EOL; |
|
| 87 | 87 | // custom |
| 88 | 88 | $html .= ' p {margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;'; |
| 89 | - $html .= 'padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;}'.PHP_EOL; |
|
| 90 | - $html .= ' p + p {padding-top:10px;}'.PHP_EOL; |
|
| 89 | + $html .= 'padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;}' . PHP_EOL; |
|
| 90 | + $html .= ' p + p {padding-top:10px;}' . PHP_EOL; |
|
| 91 | 91 | $html .= PHP_EOL; |
| 92 | 92 | |
| 93 | 93 | // -- client specific styles ------------------------------------------- |
| 94 | 94 | $html .= $this->getCssComment('--- CLIENT-SPECIFIC STYLES ---', ' '); |
| 95 | - $html .= ' .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}'. $this->getCssComment(' Force Hotmail/Outlook.com to display emails at full width.'); |
|
| 95 | + $html .= ' .ReadMsgBody{width:100%;} .ExternalClass{width:100%;}' . $this->getCssComment(' Force Hotmail/Outlook.com to display emails at full width.'); |
|
| 96 | 96 | $html .= ' .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;}' . $this->getCssComment(' Force Hotmail/Outlook.com to display line heights normally.'); |
| 97 | 97 | $html .= ' table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}' . $this->getCssComment(' Remove spacing between tables in Outlook 2007 and up.'); |
| 98 | - $html .= ' #outlook a{padding:0;}'. $this->getCssComment(' Force Outlook 2007 and up to provide a "view in browser" message.'); |
|
| 99 | - $html .= ' img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;}'. $this->getCssComment(' Force IE to smoothly render resized images.'); |
|
| 100 | - $html .= ' body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;}'. $this->getCssComment(' Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. '); |
|
| 101 | - $html .= ' .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} '. $this->getCssComment(' Force hotmail to push 2-grid sub headers down'); |
|
| 98 | + $html .= ' #outlook a{padding:0;}' . $this->getCssComment(' Force Outlook 2007 and up to provide a "view in browser" message.'); |
|
| 99 | + $html .= ' img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;}' . $this->getCssComment(' Force IE to smoothly render resized images.'); |
|
| 100 | + $html .= ' body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;}' . $this->getCssComment(' Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. '); |
|
| 101 | + $html .= ' .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} ' . $this->getCssComment(' Force hotmail to push 2-grid sub headers down'); |
|
| 102 | 102 | $html .= PHP_EOL; |
| 103 | 103 | |
| 104 | 104 | // -- our styles -------------------------------------------------------- |
@@ -107,24 +107,24 @@ discard block |
||
| 107 | 107 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 108 | 108 | // todo custom font size ? line height ? colors .. |
| 109 | 109 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#3497D9!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 110 | - $html .= ' h1{display:block;font-size:32px;font-style:normal;font-weight:200!important;line-height:100%;}'.PHP_EOL; |
|
| 111 | - $html .= ' h2{display:block;font-size:27px;font-style:normal;font-weight:200!important;line-height:120%;}'.PHP_EOL; |
|
| 112 | - $html .= ' h3{display:block;font-size:24px;font-style:normal;font-weight:200!important;line-height:110%;}'.PHP_EOL; |
|
| 113 | - $html .= ' h4{display:block;font-size:22px;font-style:normal;font-weight:200!important;line-height:100%;}'.PHP_EOL; |
|
| 114 | - $html .= ' h5{display:block;font-size:20px;font-style:normal;font-weight:200!important;line-height:110%;}'.PHP_EOL; |
|
| 115 | - $html .= ' h6{display:block;font-size:18px;font-style:normal;font-weight:200!important;line-height:110%;}'.PHP_EOL; |
|
| 110 | + $html .= ' h1{display:block;font-size:32px;font-style:normal;font-weight:200!important;line-height:100%;}' . PHP_EOL; |
|
| 111 | + $html .= ' h2{display:block;font-size:27px;font-style:normal;font-weight:200!important;line-height:120%;}' . PHP_EOL; |
|
| 112 | + $html .= ' h3{display:block;font-size:24px;font-style:normal;font-weight:200!important;line-height:110%;}' . PHP_EOL; |
|
| 113 | + $html .= ' h4{display:block;font-size:22px;font-style:normal;font-weight:200!important;line-height:100%;}' . PHP_EOL; |
|
| 114 | + $html .= ' h5{display:block;font-size:20px;font-style:normal;font-weight:200!important;line-height:110%;}' . PHP_EOL; |
|
| 115 | + $html .= ' h6{display:block;font-size:18px;font-style:normal;font-weight:200!important;line-height:110%;}' . PHP_EOL; |
|
| 116 | 116 | |
| 117 | - $html .= ' .flexibleImage{height:auto;}'.PHP_EOL; |
|
| 118 | - $html .= ' .linkRemoveBorder{border-bottom:0 !important;}'.PHP_EOL; |
|
| 119 | - $html .= ' table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;}'.PHP_EOL; |
|
| 120 | - |
|
| 121 | - $html .= ' body, #bodyTable{background-color:'. $this->backsideBackgroundColor . ';}'.PHP_EOL; |
|
| 122 | - $html .= ' #emailHeader{background-color:' . $this->backsideBackgroundColor . ';}'.PHP_EOL; |
|
| 123 | - $html .= ' #emailBody{background-color:' . $this->emailBodyBackgroundColor . ';}'.PHP_EOL; |
|
| 124 | - $html .= ' #emailFooter{background-color:' . $this->backsideBackgroundColor . ';}'.PHP_EOL; |
|
| 125 | - $html .= ' .emailButton{background-color:#3497D9; border-collapse:separate;}'.PHP_EOL; |
|
| 126 | - $html .= ' .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:200; line-height:100%; padding:15px; text-align:center;}'.PHP_EOL; |
|
| 127 | - $html .= ' .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;}'.PHP_EOL; |
|
| 117 | + $html .= ' .flexibleImage{height:auto;}' . PHP_EOL; |
|
| 118 | + $html .= ' .linkRemoveBorder{border-bottom:0 !important;}' . PHP_EOL; |
|
| 119 | + $html .= ' table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;}' . PHP_EOL; |
|
| 120 | + |
|
| 121 | + $html .= ' body, #bodyTable{background-color:' . $this->backsideBackgroundColor . ';}' . PHP_EOL; |
|
| 122 | + $html .= ' #emailHeader{background-color:' . $this->backsideBackgroundColor . ';}' . PHP_EOL; |
|
| 123 | + $html .= ' #emailBody{background-color:' . $this->emailBodyBackgroundColor . ';}' . PHP_EOL; |
|
| 124 | + $html .= ' #emailFooter{background-color:' . $this->backsideBackgroundColor . ';}' . PHP_EOL; |
|
| 125 | + $html .= ' .emailButton{background-color:#3497D9; border-collapse:separate;}' . PHP_EOL; |
|
| 126 | + $html .= ' .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:200; line-height:100%; padding:15px; text-align:center;}' . PHP_EOL; |
|
| 127 | + $html .= ' .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;}' . PHP_EOL; |
|
| 128 | 128 | $html .= PHP_EOL; |
| 129 | 129 | |
| 130 | 130 | |
@@ -132,49 +132,49 @@ discard block |
||
| 132 | 132 | // -- mobiles styles ------------------------------------------- |
| 133 | 133 | // ------------------------------------------------------------- |
| 134 | 134 | $html .= $this->getCssComment('--- MOBILE STYLES ---', ' '); |
| 135 | - $html .= ' @media only screen and (max-width: '. strval($this->emailBodyWidth - 20) . 'px) {'.PHP_EOL; |
|
| 135 | + $html .= ' @media only screen and (max-width: ' . strval($this->emailBodyWidth - 20) . 'px) {' . PHP_EOL; |
|
| 136 | 136 | $html .= PHP_EOL; |
| 137 | 137 | |
| 138 | 138 | // -- client specific styles ------------------------------------------- |
| 139 | 139 | $html .= $this->getCssComment('--- CLIENT-SPECIFIC STYLES ---', ' '); |
| 140 | - $html .= ' body{width:100% !important; min-width:100% !important;}'. $this->getCssComment(' Force iOS Mail to render the email at full width.'); |
|
| 140 | + $html .= ' body{width:100% !important; min-width:100% !important;}' . $this->getCssComment(' Force iOS Mail to render the email at full width.'); |
|
| 141 | 141 | $html .= PHP_EOL; |
| 142 | 142 | |
| 143 | 143 | //todo |
| 144 | 144 | $html .= $this->getCssComment('--- FRAMEWORK STYLES ---', ' '); |
| 145 | - $html .= ' table[id="emailHeader"],'.PHP_EOL; |
|
| 146 | - $html .= ' table[id="emailBody"],'.PHP_EOL; |
|
| 147 | - $html .= ' table[id="emailFooter"],'.PHP_EOL; |
|
| 148 | - $html .= ' table[class="flexibleContainer"],'.PHP_EOL; |
|
| 149 | - $html .= ' td[class="flexibleContainerCell"] {width:100% !important;}'.PHP_EOL; |
|
| 150 | - $html .= ' td[class="flexibleContainerBox"], '.PHP_EOL; |
|
| 151 | - $html .= ' td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;}'.PHP_EOL; |
|
| 145 | + $html .= ' table[id="emailHeader"],' . PHP_EOL; |
|
| 146 | + $html .= ' table[id="emailBody"],' . PHP_EOL; |
|
| 147 | + $html .= ' table[id="emailFooter"],' . PHP_EOL; |
|
| 148 | + $html .= ' table[class="flexibleContainer"],' . PHP_EOL; |
|
| 149 | + $html .= ' td[class="flexibleContainerCell"] {width:100% !important;}' . PHP_EOL; |
|
| 150 | + $html .= ' td[class="flexibleContainerBox"], ' . PHP_EOL; |
|
| 151 | + $html .= ' td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;}' . PHP_EOL; |
|
| 152 | 152 | |
| 153 | 153 | //todo |
| 154 | 154 | |
| 155 | 155 | $html .= $this->getCssComment('The following style rule makes any image classed with \'flexibleImage\'fluid' . PHP_EOL |
| 156 | - . ' when the query activates. Make sure you add an inline max-width to those '. PHP_EOL |
|
| 156 | + . ' when the query activates. Make sure you add an inline max-width to those ' . PHP_EOL |
|
| 157 | 157 | . ' to prevent them from blowing out.', ' '); |
| 158 | 158 | |
| 159 | - $html .= ' td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; }'. PHP_EOL; |
|
| 160 | - $html .= ' img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;}'. PHP_EOL; |
|
| 161 | - $html .= ' img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;}'. PHP_EOL; |
|
| 159 | + $html .= ' td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; }' . PHP_EOL; |
|
| 160 | + $html .= ' img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;}' . PHP_EOL; |
|
| 161 | + $html .= ' img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;}' . PHP_EOL; |
|
| 162 | 162 | |
| 163 | 163 | $html .= $this->getCssComment('Create top space for every second element in a block', ' '); |
| 164 | - $html .= ' table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;}'. PHP_EOL; |
|
| 164 | + $html .= ' table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;}' . PHP_EOL; |
|
| 165 | 165 | |
| 166 | 166 | $html .= $this->getCssComment('Make buttons in the email span the full width of their container, allowing' |
| 167 | 167 | . 'for left- or right-handed ease of use.', ' '); |
| 168 | 168 | |
| 169 | - $html .= ' table[class="emailButton"]{width:100% !important;}'. PHP_EOL; |
|
| 170 | - $html .= ' td[class="buttonContent"]{padding:0 !important;}'. PHP_EOL; |
|
| 171 | - $html .= ' td[class="buttonContent"] a{padding:15px !important;}'. PHP_EOL; |
|
| 172 | - $html .= ' }'.PHP_EOL; |
|
| 169 | + $html .= ' table[class="emailButton"]{width:100% !important;}' . PHP_EOL; |
|
| 170 | + $html .= ' td[class="buttonContent"]{padding:0 !important;}' . PHP_EOL; |
|
| 171 | + $html .= ' td[class="buttonContent"] a{padding:15px !important;}' . PHP_EOL; |
|
| 172 | + $html .= ' }' . PHP_EOL; |
|
| 173 | 173 | |
| 174 | 174 | //todo more ... |
| 175 | 175 | |
| 176 | 176 | // close style tag |
| 177 | - $html .= ' </style>'.PHP_EOL; |
|
| 177 | + $html .= ' </style>' . PHP_EOL; |
|
| 178 | 178 | |
| 179 | 179 | // ------- conditional formatting for outlook -------------------- |
| 180 | 180 | $html .= $this->getHtmlComment('Outlook Conditional CSS. ' . PHP_EOL |
@@ -182,18 +182,18 @@ discard block |
||
| 182 | 182 | . ' columns into a single vertical stack as on mobile clients. This is' . PHP_EOL |
| 183 | 183 | . ' primarily done to avoid the \'page break bug\' and is optional.' . PHP_EOL |
| 184 | 184 | . ' More information here: https://templates.mailchimp.com/development/css/outlook-conditional-css' . PHP_EOL |
| 185 | - . ' ',' '); |
|
| 186 | - |
|
| 187 | - $html .= ' <!--[if mso 12]>'.PHP_EOL; |
|
| 188 | - $html .= ' <style type="text/css">'.PHP_EOL; |
|
| 189 | - $html .= ' .flexibleContainer{display:block !important; width:100% !important;}'.PHP_EOL; |
|
| 190 | - $html .= ' </style>'.PHP_EOL; |
|
| 191 | - $html .= ' <![endif]-->'.PHP_EOL; |
|
| 192 | - $html .= ' <!--[if mso 14]>'.PHP_EOL; |
|
| 193 | - $html .= ' <style type="text/css">'.PHP_EOL; |
|
| 194 | - $html .= ' .flexibleContainer{display:block !important; width:100% !important;}'.PHP_EOL; |
|
| 195 | - $html .= ' </style>'.PHP_EOL; |
|
| 196 | - $html .= ' <![endif]-->'.PHP_EOL; |
|
| 185 | + . ' ', ' '); |
|
| 186 | + |
|
| 187 | + $html .= ' <!--[if mso 12]>' . PHP_EOL; |
|
| 188 | + $html .= ' <style type="text/css">' . PHP_EOL; |
|
| 189 | + $html .= ' .flexibleContainer{display:block !important; width:100% !important;}' . PHP_EOL; |
|
| 190 | + $html .= ' </style>' . PHP_EOL; |
|
| 191 | + $html .= ' <![endif]-->' . PHP_EOL; |
|
| 192 | + $html .= ' <!--[if mso 14]>' . PHP_EOL; |
|
| 193 | + $html .= ' <style type="text/css">' . PHP_EOL; |
|
| 194 | + $html .= ' .flexibleContainer{display:block !important; width:100% !important;}' . PHP_EOL; |
|
| 195 | + $html .= ' </style>' . PHP_EOL; |
|
| 196 | + $html .= ' <![endif]-->' . PHP_EOL; |
|
| 197 | 197 | |
| 198 | 198 | // done |
| 199 | 199 | return $html; |