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

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

may be plain text added

parent 177d36e3
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ EOF;
   * @param string $textRight Text of center button; Note: When $plainTextRight falls back to this, HTML is automatically escaped in the HTML email
   * @param string $urlCenter URL of center button
   * @param string $plainTextLeft Text of left button that is used in the plain text version - if unset the $textLeft is used
   * @param string $plainTextRight Text of center button that is used in the plain text version - if unset the $textCenter is used
   * @param string $plainTextRight Text of right button that is used in the plain text version - if unset the $textRight is used
   */
  public function addBodyButtonGroupTentative(
@@ -385,6 +386,7 @@ EOF;
    string $textCenter,
    string $urlCenter,
    string $plainTextLeft = "",
    string $plainTextCenter = "",
    string $plainTextRight = ""
  ) {
    if ($this->footerAdded) {
@@ -395,6 +397,11 @@ EOF;
      $textLeft = htmlspecialchars($textLeft);
    }

    if ($plainTextCenter === "") {
      $plainTextCenter = $textCenter;
      $textCenter = htmlspecialchars($textCenter);
    }

    if ($plainTextRight === "") {
      $plainTextRight = $textRight;
      $textRight = htmlspecialchars($textRight);
@@ -420,6 +427,7 @@ EOF;
      $textCenter,
    ]);
    $this->plainBody .= PHP_EOL . $plainTextLeft . ": " . $urlLeft . PHP_EOL;
    $this->plainBody .= $plainTextCenter . ": " . $urlCenter . PHP_EOL;
    $this->plainBody .= $plainTextRight . ": " . $urlRight . PHP_EOL . PHP_EOL;
  }
}
 No newline at end of file