|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/www/kite.mata-lashes.com/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 = '';
}
}