|
@@ 1179-1186 (lines=8) @@
|
| 1176 |
|
$y_axis = $this->wm_vrt_offset + $this->wm_padding; |
| 1177 |
|
|
| 1178 |
|
// Set the vertical position |
| 1179 |
|
if ($this->wm_vrt_alignment === 'M') |
| 1180 |
|
{ |
| 1181 |
|
$y_axis += ($this->orig_height / 2) - ($wm_height / 2); |
| 1182 |
|
} |
| 1183 |
|
elseif ($this->wm_vrt_alignment === 'B') |
| 1184 |
|
{ |
| 1185 |
|
$y_axis += $this->orig_height - $wm_height; |
| 1186 |
|
} |
| 1187 |
|
|
| 1188 |
|
// Set the horizontal position |
| 1189 |
|
if ($this->wm_hor_alignment === 'C') |
|
@@ 1328-1335 (lines=8) @@
|
| 1325 |
|
$this->wm_hor_alignment = strtoupper($this->wm_hor_alignment[0]); |
| 1326 |
|
|
| 1327 |
|
// Set vertical alignment |
| 1328 |
|
if ($this->wm_vrt_alignment === 'M') |
| 1329 |
|
{ |
| 1330 |
|
$y_axis += ($this->orig_height / 2) + ($fontheight / 2); |
| 1331 |
|
} |
| 1332 |
|
elseif ($this->wm_vrt_alignment === 'B') |
| 1333 |
|
{ |
| 1334 |
|
$y_axis += $this->orig_height - $fontheight - $this->wm_shadow_distance - ($fontheight / 2); |
| 1335 |
|
} |
| 1336 |
|
|
| 1337 |
|
// Set horizontal alignment |
| 1338 |
|
if ($this->wm_hor_alignment === 'R') |