projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5830 from davecivicrm/CRM-16502
[civicrm-core.git]
/
CRM
/
Event
/
Badge
/
Logo5395.php
diff --git
a/CRM/Event/Badge/Logo5395.php
b/CRM/Event/Badge/Logo5395.php
index 6d7352edf06386751906e319e74107a74e321018..411dfc74c59e835d123d09a947e808b66e240e3e 100644
(file)
--- a/
CRM/Event/Badge/Logo5395.php
+++ b/
CRM/Event/Badge/Logo5395.php
@@
-5,19
+5,27
@@
*/
class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
/**
*/
class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
/**
- *
*/
*/
- function __construct() {
+
public
function __construct() {
parent::__construct();
// A4
parent::__construct();
// A4
- $pw
= 210;
- $ph
= 297;
- $h
= 59.2;
- $w
= 85.7;
+ $pw = 210;
+ $ph = 297;
+ $h = 59.2;
+ $w = 85.7;
$this->format = array(
$this->format = array(
- 'name' => 'Avery 5395', 'paper-size' => 'A4', 'metric' => 'mm', 'lMargin' => 13.5,
- 'tMargin' => 3, 'NX' => 2, 'NY' => 4, 'SpaceX' => 15, 'SpaceY' => 8.5,
- 'width' => $w, 'height' => $h, 'font-size' => 12,
+ 'name' => 'Avery 5395',
+ 'paper-size' => 'A4',
+ 'metric' => 'mm',
+ 'lMargin' => 13.5,
+ 'tMargin' => 3,
+ 'NX' => 2,
+ 'NY' => 4,
+ 'SpaceX' => 15,
+ 'SpaceY' => 8.5,
+ 'width' => $w,
+ 'height' => $h,
+ 'font-size' => 12,
);
$this->lMarginLogo = 20;
$this->tMarginName = 20;
);
$this->lMarginLogo = 20;
$this->tMarginName = 20;
@@
-31,7
+39,13
@@
class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
$x = $this->pdf->GetAbsX();
$y = $this->pdf->GetY();
$this->printBackground(TRUE);
$x = $this->pdf->GetAbsX();
$y = $this->pdf->GetY();
$this->printBackground(TRUE);
- $this->pdf->SetLineStyle(array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200)));
+ $this->pdf->SetLineStyle(array(
+ 'width' => 0.1,
+ 'cap' => 'round',
+ 'join' => 'round',
+ 'dash' => '2,2',
+ 'color' => array(0, 0, 200),
+ ));
$this->pdf->SetFontSize(9);
$this->pdf->MultiCell($this->pdf->width - $this->lMarginLogo, 0, $participant['event_title'], $this->border, "L", 0, 1, $x + $this->lMarginLogo, $y);
$this->pdf->SetFontSize(9);
$this->pdf->MultiCell($this->pdf->width - $this->lMarginLogo, 0, $participant['event_title'], $this->border, "L", 0, 1, $x + $this->lMarginLogo, $y);
@@
-45,5
+59,5
@@
class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
$this->pdf->SetFontSize(15);
$this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
}
$this->pdf->SetFontSize(15);
$this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
}
-}
+}