Skip to content

Commit

Permalink
fix for day continuation header
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Jan 21, 2019
1 parent 946b91e commit 30132c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
24 changes: 12 additions & 12 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1274,24 +1274,24 @@ function bmlt_meeting_list($atts = null, $content = null) {
$data = utf8_encode($data);
$this->mpdf->WriteHTML($data);
$ph = intval($this->options['margin_bottom']) + intval($this->options['margin_top']) + $this->mpdf->y + -intval($this->options['page_height_fix']);
if ($this->options['margin_bottom'] == '5') {
$ph_footer_fix_bot = 0;
}
if ($this->options['margin_top'] == '5') {
$ph_footer_fix_top = 0;
}
if ($this->options['margin_bottom'] < '5') {
$ph_footer_fix_bot = 5 - $this->options['margin_bottom'];

$ph_footer_fix_top = 0;
$ph_footer_fix_bot = 0;

if (intval($this->options['margin_bottom']) < 5) {
$ph_footer_fix_bot = 5 - intval($this->options['margin_bottom']);
}
if ($this->options['margin_top'] < '5') {
$ph_footer_fix_top = 5 - $this->options['top'];
if (intval($this->options['margin_top']) < 5) {
$ph_footer_fix_top = 5 - intval($this->options['top']);
}

$PH_FOOTER_MM = $ph_footer_fix_top + $ph_footer_fix_bot;
$DAY_HEADER_HEIGHT = 22;
$PH_FOOTER_MM = $DAY_HEADER_HEIGHT + $ph_footer_fix_top + $ph_footer_fix_bot;

if ( strpos($this->options['front_page_content'], 'sethtmlpagefooter') !== false ) {
$ph = $ph + $PH_FOOTER_MM;
$ph += $PH_FOOTER_MM;
}

if ( $ph + $PH_FOOTER_MM >= $this->mpdf->h ) {
$newCol = true;
if ( $this->options['page_fold'] === 'half' ) {
Expand Down
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ Follow all these steps, keep in mind that once you start using bread, it's not g

== Changelog ==

= 1.9.1 = *UNRELEASED*
* Added a check for checking if temp folder is writable. Using the Wordpress influenced temp folder.
* Changed latest version source of truth.
= 1.9.1 =
* Added a check for checking if temp folder is writable. Using the Wordpress influenced temp folder. [#64]
* Changed latest root server version source of truth. [#60]
* Fix for column separator checkbox.
* Fix for day continuation headers [#62]

= 1.9.0 =
* Added a feature to change the start day of the week [#55]
Expand Down

0 comments on commit 30132c5

Please sign in to comment.