Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efb4482e authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

added the update cancel head banner

parent ccea0fcf
Loading
Loading
Loading
Loading
Loading
+29 −1
Original line number Diff line number Diff line
@@ -47,6 +47,25 @@ protected $bodyBegin = <<<EOF
                <td style="-moz-hyphens:auto;-webkit-hyphens:auto;Margin:0;border-collapse:collapse!important;color:#0a0a0a;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:400;hyphens:auto;line-height:1.3;margin:0;padding:0;text-align:left;vertical-align:top;word-wrap:break-word">
EOF;

protected $bannerHeading = <<<EOF
<tr style="border: 1px solid #EAEDF2;box-sizing: border-box;">
<td>
<table class="spacer float-center" style="Margin:0 auto;border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;padding:0;text-align:center;vertical-align:top;width:100%%">
	<tbody>
	<tr style="padding:0;text-align:left;vertical-align:top">
		<td style="-moz-hyphens:auto;-webkit-hyphens:auto;Margin:0;border-collapse:collapse!important;color:#0a0a0a;font-size:40px;font-weight:400;hyphens:auto;line-height:36px;margin:0;mso-line-height-rule:exactly;padding:0;text-align:left;vertical-align:top;word-wrap:break-word;background:%s;font-size:18px;text-align:center;font-weight:500;">%s</td>
	</tr>
	</tbody>
</table>
<table class="spacer float-center" style="Margin:0 auto;border-collapse:collapse;border-spacing:0;float:none;margin:0 auto;padding:0;text-align:center;vertical-align:top;width:100%%">
	<tbody>
	<tr style="padding:0;text-align:left;vertical-align:top">
		<td style="-moz-hyphens:auto;-webkit-hyphens:auto;Margin:0;border-collapse:collapse!important;color:#0a0a0a;font-size:40px;font-weight:400;hyphens:auto;line-height:36px;margin:0;mso-line-height-rule:exactly;padding:0;text-align:left;vertical-align:top;word-wrap:break-word">&#xA0;</td>
	</tr>
	</tbody>
</table>
EOF;

protected $buttonGrouptentative = <<<EOF
<table class="spacer" style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%%">
	<tbody>
@@ -126,7 +145,16 @@ EOF;
		$this->htmlBody .= vsprintf($this->header, [$logoMailUrl, $this->themingDefaults->getName()]);
	}


	/**
	 * Adds a header banner
	 */
	public function addHeadingBanner(string $color,string $text, $plainText = '') {
		$this->htmlBody .= vsprintf($this->bannerHeading, [$color,$text]);
		if ($plainText !== false) {
			$this->plainBody .= $plainText . PHP_EOL . PHP_EOL;
		}
		$this->bodyOpened = true;
	}

	/**
	 * Adds a list item to the body of the email