Lines Matching defs:attr

1515 	function MergeCSS($inherit, $tag, $attr)
1519 $attr = is_array($attr) ? $attr : [];
1522 if (isset($attr['CLASS'])) {
1525 }, Arrays::allUniqueSortedCombinations(preg_split('/\s+/', $attr['CLASS'])));
1527 if (!isset($attr['ID'])) {
1528 $attr['ID'] = '';
1532 if (!isset($attr['LANG'])) {
1533 $attr['LANG'] = '';
1535 $attr['LANG'] = strtolower($attr['LANG']);
1536 if (strlen($attr['LANG']) == 5) {
1537 $shortlang = substr($attr['LANG'], 0, 2);
1569 $attr['ID'],
1570 $attr['LANG']
1581 $attr['ID'],
1582 $attr['LANG']
1600 $this->_mergeFullCSS($this->cascadeCSS, $this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'], $tag, $classes, $attr['ID'], $attr['LANG']);
1605 $this->_mergeFullCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS'], $this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'], $tag, $classes, $attr['ID'], $attr['LANG']);
1671 if (isset($attr['DIR']) && $attr['DIR'] != '') {
1672 $p['DIRECTION'] = $attr['DIR'];
1675 if (isset($attr['LANG']) && $attr['LANG'] != '') {
1676 $p['LANG'] = $attr['LANG'];
1678 if (isset($attr['COLOR']) && $attr['COLOR'] != '') {
1679 $p['COLOR'] = $attr['COLOR'];
1683 if (isset($attr['WIDTH']) && $attr['WIDTH'] != '') {
1684 $p['WIDTH'] = $attr['WIDTH'];
1686 if (isset($attr['HEIGHT']) && $attr['HEIGHT'] != '') {
1687 $p['HEIGHT'] = $attr['HEIGHT'];
1691 if (isset($attr['FACE'])) {
1692 $p['FONT-FAMILY'] = $attr['FACE'];
1694 if (isset($attr['SIZE']) && $attr['SIZE'] != '') {
1696 if ($attr['SIZE'] === '+1') {
1698 } elseif ($attr['SIZE'] === '-1') {
1700 } elseif ($attr['SIZE'] === '1') {
1702 } elseif ($attr['SIZE'] == '2') {
1704 } elseif ($attr['SIZE'] == '3') {
1706 } elseif ($attr['SIZE'] == '4') {
1708 } elseif ($attr['SIZE'] == '5') {
1710 } elseif ($attr['SIZE'] == '6') {
1712 } elseif ($attr['SIZE'] == '7') {
1720 if (isset($attr['VALIGN']) && $attr['VALIGN'] != '') {
1721 $p['VERTICAL-ALIGN'] = $attr['VALIGN'];
1723 if (isset($attr['VSPACE']) && $attr['VSPACE'] != '') {
1724 $p['MARGIN-TOP'] = $attr['VSPACE'];
1725 $p['MARGIN-BOTTOM'] = $attr['VSPACE'];
1727 if (isset($attr['HSPACE']) && $attr['HSPACE'] != '') {
1728 $p['MARGIN-LEFT'] = $attr['HSPACE'];
1729 $p['MARGIN-RIGHT'] = $attr['HSPACE'];
1745 if ($tag === 'TABLE' && isset($attr['CELLSPACING'])) {
1746 $p['BORDER-SPACING-H'] = $p['BORDER-SPACING-V'] = $attr['CELLSPACING'];
1823 if (isset($attr['LANG'])) {
1824 if (isset($this->CSS['LANG>>' . $attr['LANG']]) && $this->CSS['LANG>>' . $attr['LANG']]) {
1825 $zp = $this->CSS['LANG>>' . $attr['LANG']];
1846 if (isset($attr['ID']) && isset($this->CSS['ID>>' . $attr['ID']]) && $this->CSS['ID>>' . $attr['ID']]) {
1847 $zp = $this->CSS['ID>>' . $attr['ID']];
1874 if (isset($attr['LANG'])) {
1875 if (isset($this->CSS[$tag . '>>LANG>>' . $attr['LANG']]) && $this->CSS[$tag . '>>LANG>>' . $attr['LANG']]) {
1876 $zp = $this->CSS[$tag . '>>LANG>>' . $attr['LANG']];
1897 if (isset($attr['ID']) && isset($this->CSS[$tag . '>>ID>>' . $attr['ID']]) && $this->CSS[$tag . '>>ID>>' . $attr['ID']]) {
1898 $zp = $this->CSS[$tag . '>>ID>>' . $attr['ID']];
1915 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS']['ID>>' . $attr['ID']], $p);
1919 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS'][$tag . '>>ID>>' . $attr['ID']], $p);
1926 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS']['ID>>' . $attr['ID']], $p);
1930 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'][$tag . '>>ID>>' . $attr['ID']], $p);
1967 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1]['ID>>' . $attr['ID']], $p, false, 9);
1971 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1][$tag . '>>ID>>' . $attr['ID']], $p, false, 9);
1975 if (isset($attr['STYLE'])) {
1976 $zp = $this->readInlineCSS($attr['STYLE']);
2133 function PreviewBlockCSS($tag, $attr)
2140 if (isset($attr['CLASS'])) {
2143 }, Arrays::allUniqueSortedCombinations(preg_split('/\s+/', $attr['CLASS'])));
2171 if (isset($attr['ID']) && isset($this->CSS['ID>>' . $attr['ID']])) {
2172 $zp = $this->CSS['ID>>' . $attr['ID']];
2188 if (isset($attr['ID']) && isset($this->CSS[$tag . '>>ID>>' . $attr['ID']])) {
2189 $zp = $this->CSS[$tag . '>>ID>>' . $attr['ID']];
2203 if (isset($attr['ID'])) {
2204 $this->_set_mergedCSS($oldcascadeCSS['ID>>' . $attr['ID']], $p);
2211 if (isset($attr['ID'])) {
2212 $this->_set_mergedCSS($oldcascadeCSS[$tag . '>>ID>>' . $attr['ID']], $p);
2216 if (isset($attr['STYLE'])) {
2217 $zp = $this->readInlineCSS($attr['STYLE']);