| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/vendor/mpdf/mpdf/src/Tag/ |
Upload File : |
<?php
namespace Mpdf\Tag;
class THead extends Tag
{
public function open($attr, &$ahtml, &$ihtml)
{
$this->mpdf->lastoptionaltag = 'THEAD'; // Save current HTML specified optional endtag
$this->cssManager->tbCSSlvl++;
$this->mpdf->tablethead = 1;
$this->mpdf->tabletfoot = 0;
$properties = $this->cssManager->MergeCSS('TABLE', 'THEAD', $attr);
if (isset($properties['FONT-WEIGHT'])) {
$this->mpdf->thead_font_weight = '';
if (strtoupper($properties['FONT-WEIGHT']) === 'BOLD') {
$this->mpdf->thead_font_weight = 'B';
}
}
if (isset($properties['FONT-STYLE'])) {
$this->mpdf->thead_font_style = '';
if (strtoupper($properties['FONT-STYLE']) === 'ITALIC') {
$this->mpdf->thead_font_style = 'I';
}
}
if (isset($properties['FONT-VARIANT'])) {
$this->mpdf->thead_font_smCaps = '';
if (strtoupper($properties['FONT-VARIANT']) === 'SMALL-CAPS') {
$this->mpdf->thead_font_smCaps = 'S';
}
}
if (isset($properties['VERTICAL-ALIGN'])) {
$this->mpdf->thead_valign_default = $properties['VERTICAL-ALIGN'];
}
if (isset($properties['TEXT-ALIGN'])) {
$this->mpdf->thead_textalign_default = $properties['TEXT-ALIGN'];
}
}
public function close(&$ahtml, &$ihtml)
{
$this->mpdf->lastoptionaltag = '';
unset($this->cssManager->tablecascadeCSS[$this->cssManager->tbCSSlvl]);
$this->cssManager->tbCSSlvl--;
$this->mpdf->tablethead = 0;
$this->mpdf->tabletheadjustfinished = true;
$this->mpdf->ResetStyles();
$this->mpdf->thead_font_weight = '';
$this->mpdf->thead_font_style = '';
$this->mpdf->thead_font_smCaps = '';
$this->mpdf->thead_valign_default = '';
$this->mpdf->thead_textalign_default = '';
}
}