Skip to content

Commit

Permalink
Update bmlt-meeting-list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jul 31, 2019
1 parent 847338e commit 4ba0726
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ function bmlt_meeting_list($atts = null, $content = null) {
}
$this->options['page_orientation'] = 'L';
}
if (substr($this->options['meeting_sort'],0,8) == 'weekday_') {
$this->options['sub_header_shown'] = true;
}
}
// TODO: The page number is always 5 from botton...this should be adjustable
if ( $this->options['page_fold'] == 'half') {
Expand Down Expand Up @@ -825,8 +828,8 @@ function bmlt_meeting_list($atts = null, $content = null) {
'margin_header' => $this->options['margin_header'],
];
}
$this->mpdf = new mPDF(array_merge($mpdf_init_options, $page_type_settings));
$mpdf_init_options = array_merge($mpdf_init_options, $page_type_settings);
$this->mpdf = new mPDF($mpdf_init_options);
$this->mpdf->setAutoBottomMargin = 'pad';

// TODO: Adding a page number really could just be an option or tag.
Expand Down Expand Up @@ -877,7 +880,7 @@ function bmlt_meeting_list($atts = null, $content = null) {
$this->mpdf_column=new mPDF([
'mode' => $mode,
'tempDir' => get_temp_dir(),
'format' => $this->options['page_size']."-".$this->options['page_orientation'],
'format' => $mpdf_init_options['format'],
'default_font_size' => 7,
'default_font' => $default_font,
'margin_left' => $this->options['margin_left'],
Expand Down

0 comments on commit 4ba0726

Please sign in to comment.