Add premium logo and professional theme for high-end clients
- Create custom SVG logo with professional branding - Implement premium color scheme with blue and gold accents - Add custom CSS with professional styling for cards, tables, buttons - Update logo template to use new logo.svg file - Create custom favicon for complete branding - Redesign homepage with premium content sections - Update resources page with membership tiers and premium pricing - Enhance contact page with testimonials and detailed information - Target audience: high-paying clients ($100+/hour) - Professional yet approachable design language 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
103
config/www/user/plugins/email/classes/Message.php
Normal file
103
config/www/user/plugins/email/classes/Message.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
namespace Grav\Plugin\Email;
|
||||
|
||||
use Symfony\Component\Mime\Email as SymfonyEmail;
|
||||
|
||||
class Message
|
||||
{
|
||||
/** @var SymfonyEmail */
|
||||
protected $email;
|
||||
|
||||
public function __construct() {
|
||||
$this->email = new SymfonyEmail();
|
||||
}
|
||||
|
||||
public function subject($subject): self
|
||||
{
|
||||
$this->email->subject($subject);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setSubject($subject): self
|
||||
{
|
||||
$this->subject($subject);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function to($to): self
|
||||
{
|
||||
$this->email->to($to);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function from($from): self
|
||||
{
|
||||
$this->email->from($from);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function cc($cc): self
|
||||
{
|
||||
$this->email->cc($cc);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function bcc($bcc): self
|
||||
{
|
||||
$this->email->bcc($bcc);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function replyTo($reply_to): self
|
||||
{
|
||||
$this->email->replyTo($reply_to);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function text($text): self
|
||||
{
|
||||
$this->email->text($text);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function html($html): self
|
||||
{
|
||||
$this->email->html($html);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function attachFromPath($path): self
|
||||
{
|
||||
$this->email->attachFromPath($path);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function embedFromPath($path): self
|
||||
{
|
||||
$this->email->embedFromPath($path);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function reply_to($reply_to): self
|
||||
{
|
||||
$this->replyTo($reply_to);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setFrom($from): self
|
||||
{
|
||||
$this->from($from);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setTo($to): self
|
||||
{
|
||||
$this->to($to);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): SymfonyEmail
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user