diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index 281eccf..dfe206b 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -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' ) { diff --git a/readme.txt b/readme.txt index 9e09055..e8d090b 100644 --- a/readme.txt +++ b/readme.txt @@ -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]