2023-07-23 07:27:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Template for starting a message
|
|
|
|
*/
|
|
|
|
namespace App\Traits;
|
|
|
|
|
|
|
|
use App\Classes\{ANSI,Page};
|
|
|
|
use App\Classes\Fonts\{Thick,Thin};
|
|
|
|
|
|
|
|
trait PageTemplate
|
|
|
|
{
|
|
|
|
protected function page(bool $addlogo=FALSE,string $leftbox=''): Page
|
|
|
|
{
|
|
|
|
$page = new Page;
|
|
|
|
if ($addlogo)
|
2023-09-18 13:12:43 +00:00
|
|
|
$page->addLogo(new ANSI(public_path('logo/netmail.bin')));
|
2023-07-23 07:27:52 +00:00
|
|
|
|
|
|
|
$header = new Thick;
|
|
|
|
$header->addText('Clearing Houz');
|
|
|
|
$page->addHeader($header,'FTN Mailer and Tosser',TRUE,0xc4);
|
|
|
|
|
|
|
|
if ($leftbox) {
|
|
|
|
$lbc = new Thin;
|
|
|
|
$lbc->addText($leftbox);
|
|
|
|
$page->addLeftBoxContent($lbc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $page;
|
|
|
|
}
|
|
|
|
}
|