Skip to content

Commit

Permalink
LayMail template update
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosahon committed Jan 10, 2024
1 parent f276513 commit b0a23b1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/BobDBuilder/Cmd/Traits/Make/AutoDeploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ public function ad_default_files(string $pattern, string $domain_dir): void
{
$uuid = Gen::uuid(32);

// domain foundation file
file_put_contents(
$domain_dir . $this->plug->s . "foundation.php",
<<<FILE
<?php
use BrickLayer\Lay\Core\LayConfig;
LayConfig::set_cors(
[
"https://github.com",
],
fun: function () {
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Headers: *");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
}
);
FILE
);

// root index.php
file_put_contents(
$domain_dir . $this->plug->s . "index.php",
Expand All @@ -59,6 +80,8 @@ public function ad_default_files(string $pattern, string $domain_dir): void
include_once __DIR__ . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "foundation.php";
include_once "foundation.php";
// Replace [PRIMARY_DOMAIN] with your actual primary domain.
// Create a subdomain entry on your dns.
// Finally, paste the link below to github or your CI platform
Expand Down
3 changes: 2 additions & 1 deletion src/Libs/LayMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
declare(strict_types=1);
namespace BrickLayer\Lay\Libs;

use BrickLayer\Lay\Core\View\DomainResource;
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\ExpectedValues;
use BrickLayer\Lay\Core\LayConfig;
Expand Down Expand Up @@ -267,7 +268,7 @@ final public function queue() : ?bool {

public function email_template(string $message) : string {
$data = LayConfig::site_data();
$logo = $data->img->logo;
$logo = DomainResource::get()->shared->img_default->logo;
$company_name = $data->name->short;
$copyright = $data->copy;
$text_color = "#000000";
Expand Down

0 comments on commit b0a23b1

Please sign in to comment.