Lines Matching defs:content

1843 	 *   content: file content
1852 * 'content' => 'file content',
2150 if (isset($properties['BACKGROUND-ORIGIN']) && ($properties['BACKGROUND-ORIGIN'] == 'border-box' || $properties['BACKGROUND-ORIGIN'] == 'content-box')) {
2829 if ($this->blklvl == 0 && !empty($this->textbuffer)) { // Output previously buffered content
2841 if ($b == $this->blklvl && !empty($this->textbuffer)) { // Output previously buffered content
2848 } elseif (!empty($this->textbuffer)) { // Output previously buffered content
6421 $this->flowingBlockAttr['content'] = [];
6445 $content = & $this->flowingBlockAttr['content'];
6467 // Right trim last content and adjust width if needed to justify (later)
6468 if (isset($content[count($content) - 1]) && preg_match('/[ ]+$/', $content[count($content) - 1], $m)) {
6470 $content[count($content) - 1] = substr($content[count($content) - 1], 0, (strlen($content[count($content) - 1]) - $strip));
6537 $this->_setInlineBlockHeights($lineBox, $stackHeight, $content, $font, $is_table);
6539 if ($is_table && count($content) == 0) {
6554 foreach ($content as $k => $chunk) {
6564 $content[$k] = $chunk;
6566 $content[$k] = $chunk = str_replace("\xc2\xad", '', $chunk);
6567 $content[$k] = $chunk = str_replace(chr(194) . chr(160), chr(32), $chunk);
6570 $content[$k] = $chunk = str_replace(chr(173), '', $chunk);
6571 $content[$k] = $chunk = str_replace(chr(160), chr(32), $chunk);
6601 if ($endofblock && $newblock && $blockstate == 0 && !$content) {
6605 // if (!$content) { $check_h = 0; }
6625 if ($endofblock && $blockstate > 1 && !$content) {
6735 if ($content) {
6737 // but if CJKorphan has allowed content width to go over max width, use J charspacing to compress line
6746 foreach ($content as $k => $chunk) {
6771 $chunkorder = range(0, count($content) - 1); // mPDF 6
6775 $this->otl->bidiReorder($chunkorder, $content, $cOTLdata, $blockdir);
6776 // From this point on, $content and $cOTLdata may contain more elements (and re-ordered) compared to
6816 $lastchar = mb_substr($content[(count($chunkorder) - 1)], mb_strlen($content[(count($chunkorder) - 1)], $this->mb_enc) - 1, 1, $this->mb_enc);
6822 if ((((($contentWidth + $lastitalic) > $maxWidth) && ($content[(count($chunkorder) - 1)] != ' ') ) ||
6828 $hanger = mb_substr($content[(count($chunkorder) - 1)], mb_strlen($content[(count($chunkorder) - 1)], $this->mb_enc) - 1, 1, $this->mb_enc);
6830 $content[(count($chunkorder) - 1)] = mb_substr($content[(count($chunkorder) - 1)], 0, mb_strlen($content[(count($chunkorder) - 1)], $this->mb_enc) - 1, $this->mb_enc);
6897 $chunk = $content[$aord];
6923 $s = preg_split('/' . preg_quote($dp, '/') . '/', $content[0], 2); // ? needs to be /u if not core
7664 unset($content);
7689 function _moveToPrevChar(&$contentctr, &$charctr, $content)
7693 while ($charctr < 0) { // go back to previous $content[]
7699 $charctr = strlen($content[$contentctr]) - 1;
7701 $charctr = mb_strlen($content[$contentctr], $this->mb_enc) - 1;
7705 $lastchar = $content[$contentctr][$charctr];
7707 $lastchar = mb_substr($content[$contentctr], $charctr, 1, $this->mb_enc);
7713 function _getPrevChar($contentctr, $charctr, $content)
7717 while ($charctr < 0) { // go back to previous $content[]
7723 $charctr = strlen($content[$contentctr]) - 1;
7725 $charctr = mb_strlen($content[$contentctr], $this->mb_enc) - 1;
7729 $lastchar = $content[$contentctr][$charctr];
7731 $lastchar = mb_substr($content[$contentctr], $charctr, 1, $this->mb_enc);
7742 // width of all the content so far in points
7750 $content = & $this->flowingBlockAttr['content'];
7768 $content[] = '';
7771 $currContent = & $content[count($content) - 1];
7850 $this->objectbuffer[count($content) - 1] = $objattr;
7979 // contains any content that didn't make it into this print
7996 $contentctr = count($content) - 1;
8003 $prevchar = $this->_getPrevChar($contentctr, $charctr, $content);
8088 $prevchar = $this->_moveToPrevChar($contentctr, $charctr, $content);
8126 $content[$contentctr] = mb_substr($content[$contentctr], 0, $charctr, $this->mb_enc) . '-' . mb_substr($content[$contentctr], $charctr + 1, mb_strlen($content[$contentctr]), $this->mb_enc);
8133 $content[$contentctr] = substr($content[$contentctr], 0, $charctr) . '-' . substr($content[$contentctr], $charctr + 1);
8164 for ($ix = count($content) - 1; $ix > $cutcontentctr; $ix--) {
8172 $savedPreContent[] = array_pop($content);
8179 $savedPreContent[] = substr($content[$cutcontentctr], $cutcharctr);
8181 $savedPreContent[] = mb_substr($content[$cutcontentctr], $cutcharctr, mb_strlen($content[$cutcontentctr]), $this->mb_enc);
8192 // Finally adjust the Current content which ends this line
8194 array_pop($content);
8200 $currContent = & $content[count($content) - 1];
8212 $contentB[count($content) - 1] = preg_replace('/R/', '', $contentB[count($content) - 1]); // ???
8240 if ($content[count($content) - 1] == '' && !isset($this->objectbuffer[count($content) - 1])) {
8241 array_pop($content);
8245 $currContent = & $content[count($content) - 1];
8248 // Right Trim current content - including CJK space, and for OTLdata
8262 if (isset($this->objectbuffer[(count($content) - 1)]) && (!isset($type) || $type != 'discard')) {
8263 $objtype = $this->objectbuffer[(count($content) - 1)]['type'];
8277 $this->_setInlineBlockHeights($lineBox, $stackHeight, $content, $font, $is_table);
8283 foreach ($content as $k => $chunk) {
8295 if ($this->checkCJK && $k == count($content) - 1 && $CJKoverflow && $align == 'J' && $this->allowCJKoverflow && $this->CJKforceend) {
8299 $content[$k] = $chunk = mb_substr($chunk, 0, mb_strlen($chunk, $this->mb_enc) - 1, $this->mb_enc);
8311 $content[$k] = $chunk;
8313 $content[$k] = $chunk = str_replace("\xc2\xad", '', $chunk);
8314 $content[$k] = $chunk = str_replace(chr(194) . chr(160), chr(32), $chunk);
8317 $content[$k] = $chunk = str_replace(chr(173), '', $chunk);
8318 $content[$k] = $chunk = str_replace(chr(160), chr(32), $chunk);
8347 $chunkorder = range(0, count($content) - 1); // mPDF 5.7
8351 $this->otl->bidiReorder($chunkorder, $content, $cOTLdata, $blockdir);
8352 // From this point on, $content and $cOTLdata may contain more elements (and re-ordered) compared to
8400 $chunk = isset($content[$aord]) ? $content[$aord] : '';
8529 $chunk = isset($content[$aord]) ? $content[$aord] : '';
8650 // move on to the next line, reset variables, tack on saved content and current char
8670 $content = [];
8677 $content[] = '';
8685 $content[] = $savedPreContent[$ix];
8710 $content[(count($content) - 1)] .= $c;
8713 $content[] = $savedContent . $c;
8718 $currContent = & $content[(count($content) - 1)];
8751 unset($content);
11115 function _setInlineBlockHeights(&$lineBox, &$stackHeight, &$content, &$font, $is_table)
11167 foreach ($content as $k => $chunk) {
11225 } elseif ($content[$k] || $content[$k] === '0') {
11355 foreach ($content as $k => $chunk) {
11384 } elseif ($content[$k] || $content[$k] === '0') {
11730 function Header($content = '')
11744 function TableHeaderFooter($content = '', $tablestartpage = '', $tablestartcolumn = '', $horf = 'H', $level = 0, $firstSpread = true, $finalSpread = true)
11746 if (($horf == 'H' || $horf == 'F') && !empty($content)) { // mPDF 5.7.2
11757 if (empty($content[$firstrow])) {
11782 $topy = $content[$firstrow][0]['y'] - $this->y;
11794 $divh = $content[$i][0]['h'];
11807 foreach ($content[$i] as $tablehf) {
11893 if ($colctr == count($content[$i])) { // Right
11926 } elseif (isset($content[$i][0]['trbgcolor']) && $content[$i][0]['trbgcolor'] && $content[$i][0]['trbgcolor'] != 'transparent') { // Row color
11927 $fill = $content[$i][0]['trbgcolor'];
12032 // Print cell content
12134 if (isset($content[$i][0]['trgradients']) && ($colctr == 1 || $table['borders_separate'])) {
12135 $g = $this->gradient->parseBackgroundGradient($content[$i][0]['trgradients']);
12156 if (isset($content[$i][0]['trbackground-images']) && ($colctr == 1 || $table['borders_separate'])) {
12157 if ($content[$i][0]['trbackground-images']['gradient'] && preg_match('/(-moz-)*(repeating-)*(linear|radial)-gradient/', $content[$i][0]['trbackground-images']['gradient'])) {
12158 $g = $this->gradient->parseMozGradient($content[$i][0]['trbackground-images']['gradient']);
12178 $image_id = $content[$i][0]['trbackground-images']['image_id'];
12179 $orig_w = $content[$i][0]['trbackground-images']['orig_w'];
12180 $orig_h = $content[$i][0]['trbackground-images']['orig_h'];
12181 $x_pos = $content[$i][0]['trbackground-images']['x_pos'];
12182 $y_pos = $content[$i][0]['trbackground-images']['y_pos'];
12183 $x_repeat = $content[$i][0]['trbackground-images']['x_repeat'];
12184 $y_repeat = $content[$i][0]['trbackground-images']['y_repeat'];
12185 $resize = $content[$i][0]['trbackground-images']['resize'];
12186 $opacity = $content[$i][0]['trbackground-images']['opacity'];
12187 $itype = $content[$i][0]['trbackground-images']['itype'];
12240 if ($colctr == count($content[$i]) && $finalSpread) { // Right
12247 }// end column $content
12529 $lContent = (isset($arr['L']['content']) ? $arr['L']['content'] : '');
12530 $cContent = (isset($arr['C']['content']) ? $arr['C']['content'] : '');
12531 $rContent = (isset($arr['R']['content']) ? $arr['R']['content'] : '');
13526 $this->selectoption['ITEMS'][] = ['exportValue' => $this->selectoption['currentVAL'], 'content' => $e, 'selected' => $this->selectoption['currentSEL']];
13655 // li end tag may be omitted if there is no more content in the parent element
13660 // dd end tag may be omitted if there is no more content in the parent element
13665 // p end tag may be omitted if there is no more content in the parent element and the parent element is not an A element [??????]
13670 // option end tag may be omitted if there is no more content in the parent element
16144 // Print-out special content
16418 } // END If special content
16428 if ($this->flowingBlockAttr['content']) {
17147 } elseif (isset($this->blk[$blvl]['background_clip']) && $this->blk[$blvl]['background_clip'] == 'content-box') {
17619 } elseif ($this->blk[$blvl]['background-image']['origin'] == 'content-box') {
17702 } elseif ($this->blk[$blvl]['background-image']['origin'] == 'content-box') {
18085 preg_match_all('/<meta [^>]*?(name|content)="([^>]*?)" [^>]*?(name|content)="([^>]*?)".*?>/si', $html, $aux);
18090 $content = ( strtoupper($firstattr[$i]) == "CONTENT" ) ? $aux[2][$i] : $aux[4][$i];
18093 $this->SetKeywords($content);
18096 $this->SetAuthor($content);
18099 $this->SetSubject($content);
18330 $this->blk[$this->blklvl]['background_clip'] = 'content-box';
21844 // Nested content
22337 // $this->AcceptPageBreak() has moved tablebuffer to $this->pages content
27022 // Preserve '\n's in content between the tags <pre> and </pre>
27049 // Preserve '\n's in content between the tags <textarea> and </textarea>
27077 while ($thereispre) { // Recover <pre attributes>content</pre>
27092 while ($thereistextarea) { // Recover <textarea attributes>content</textarea>