HEX
Server: LiteSpeed
System: Linux server137.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: bibuzptr (1123)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/bibuzptr/tvetelearning.bibu-edu.us/admin/mpdf/vendor/mpdf/mpdf/src/Tag/TFoot.php
<?php

namespace Mpdf\Tag;

// TODO: Extend THEAD instead?

class TFoot extends Tag
{

	public function open($attr, &$ahtml, &$ihtml)
	{
		$this->mpdf->lastoptionaltag = 'TFOOT'; // Save current HTML specified optional endtag
		$this->cssManager->tbCSSlvl++;
		$this->mpdf->tabletfoot = 1;
		$this->mpdf->tablethead = 0;
		$properties = $this->cssManager->MergeCSS('TABLE', 'TFOOT', $attr);
		if (isset($properties['FONT-WEIGHT'])) {
			$this->mpdf->tfoot_font_weight = '';
			if (strtoupper($properties['FONT-WEIGHT']) === 'BOLD') {
				$this->mpdf->tfoot_font_weight = 'B';
			}
		}

		if (isset($properties['FONT-STYLE'])) {
			$this->mpdf->tfoot_font_style = '';
			if (strtoupper($properties['FONT-STYLE']) === 'ITALIC') {
				$this->mpdf->tfoot_font_style = 'I';
			}
		}
		if (isset($properties['FONT-VARIANT'])) {
			$this->mpdf->tfoot_font_smCaps = '';
			if (strtoupper($properties['FONT-VARIANT']) === 'SMALL-CAPS') {
				$this->mpdf->tfoot_font_smCaps = 'S';
			}
		}

		if (isset($properties['VERTICAL-ALIGN'])) {
			$this->mpdf->tfoot_valign_default = $properties['VERTICAL-ALIGN'];
		}
		if (isset($properties['TEXT-ALIGN'])) {
			$this->mpdf->tfoot_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->tabletfoot = 0;
		$this->mpdf->ResetStyles();
		$this->mpdf->tfoot_font_weight = '';
		$this->mpdf->tfoot_font_style = '';
		$this->mpdf->tfoot_font_smCaps = '';

		$this->mpdf->tfoot_valign_default = '';
		$this->mpdf->tfoot_textalign_default = '';
	}
}