59d1d18231c30a0d8968176921426934679d3aca
4 * Class CRM_Event_Badge_Logo5395
6 class CRM_Event_Badge_Logo5395
extends CRM_Event_Badge
{
9 public function __construct() {
10 parent
::__construct();
16 $this->format
= array(
17 'name' => 'Avery 5395',
30 $this->lMarginLogo
= 20;
31 $this->tMarginName
= 20;
32 // $this->setDebug ();
38 public function generateLabel($participant) {
39 $x = $this->pdf
->GetAbsX();
40 $y = $this->pdf
->GetY();
41 $this->printBackground(TRUE);
42 $this->pdf
->SetLineStyle(array(
47 'color' => array(0, 0, 200)
50 $this->pdf
->SetFontSize(9);
51 $this->pdf
->MultiCell($this->pdf
->width
- $this->lMarginLogo
, 0, $participant['event_title'], $this->border
, "L", 0, 1, $x +
$this->lMarginLogo
, $y);
53 $this->pdf
->SetXY($x, $y +
$this->pdf
->height
- 5);
54 $date = CRM_Utils_Date
::customFormat($participant['event_start_date'], "%e %b");
55 $this->pdf
->Cell($this->pdf
->width
, 0, $date, $this->border
, 2, "R");
57 $this->pdf
->SetFontSize(20);
58 $this->pdf
->MultiCell($this->pdf
->width
, 10, $participant['display_name'], $this->border
, "C", 0, 1, $x, $y +
$this->tMarginName
);
59 $this->pdf
->SetFontSize(15);
60 $this->pdf
->MultiCell($this->pdf
->width
, 0, $participant['current_employer'], $this->border
, "C", 0, 1, $x, $this->pdf
->getY());