Adding pdf_logo_header setting see BT#8730

1.9.x
Julio Montoya 10 years ago
parent cd61a51e69
commit 75045f72eb
  1. 11
      main/inc/lib/pdf.lib.php
  2. 2
      main/install/configuration.dist.php

@ -68,6 +68,7 @@ class PDF
*/
public function html_to_pdf_with_template($content)
{
global $_configuration;
Display :: display_no_header();
//Assignments
@ -84,6 +85,16 @@ class PDF
}
}
if (isset($_configuration['pdf_logo_header']) &&
$_configuration['pdf_logo_header']
) {
$img = api_get_path(SYS_CODE_PATH).'css/'.api_get_visual_theme().'/images/pdf_logo_header.png';
if (file_exists($img)) {
$img = api_get_path(WEB_CODE_PATH) . 'css/' . api_get_visual_theme() . '/images/pdf_logo_header.png';
$organization = "<img src='$img'>";
}
}
Display::$global_template->assign('organization', $organization);
//Showing only the current teacher/admin instead the all teacher list name see BT#4080

@ -205,3 +205,5 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
//$_configuration['session_days_before_coach_access'] = 0;
// Default session days after coach access
//$_configuration['session_days_after_coach_access'] = 0;
// PDF Logo header located in main/css/xxx/images/pdf_logo_header.png
//$_configuration['pdf_logo_header'] = false;

Loading…
Cancel
Save