Lines Matching refs:if

4if ($this->mpdf->CSSselectMedia && !preg_match('/('.trim($this->mpdf->CSSselectMedia).'|all)/i',$m…
10if ($this->mpdf->CSSselectMedia && !preg_match('/('.trim($this->mpdf->CSSselectMedia).'|all)/i',$m…
22 if (count($m[1])) {
43 if ($x) {
50 if ($x) {
59 if ($x) {
68 if ($x) {
76 if (!is_array($this->cascadeCSS)) $this->cascadeCSS = array();
85 if ($CSSextblock) {
92 if ($xem) {
102 if ($xem) {
106 if (!preg_match('/^data:image/i', $embedded)) { // mPDF 5.5.13
118 $match = 0; // reset value, if needed
122 if ($match) {
126 if ($xem) {
129 if (!preg_match('/^data:image/i', $embedded)) { // mPDF 5.5.13
141 if (preg_match('/@media/',$CSSstr)) {
144if ($this->mpdf->CSSselectMedia && !preg_match('/('.trim($this->mpdf->CSSselectMedia).'|all)/is',$…
156 if (count($idata[0])) {
173 if (strpos($CSSstr,'url(')!==false) {
193 if ($CSSstr ) {
201 if (trim($sta)) {
205 if (isset($tmp[1])) { $value = $tmp[1]; }
211 if ($property && ($value || $value==='0')) {
213if ((strtoupper($property)=='BACKGROUND-IMAGE' || strtoupper($property)=='BACKGROUND') && preg_mat…
226if (preg_match('/NTH-CHILD\((\s*(([\-+]?\d*)N(\s*[\-+]\s*\d+)?|[\-+]?\d+|ODD|EVEN)\s*)\)/',$tg,$m)…
234 if (trim($tags[0])=='@PAGE') {
235 if (isset($tags[0])) { $t = trim($tags[0]); }
236 if (isset($tags[1])) { $t2 = trim($tags[1]); }
237 if (isset($tags[2])) { $t3 = trim($tags[2]); }
239 if ($level==1) { $tag = $t; }
240 else if ($level==2 && preg_match('/^[:](.*)$/',$t2,$m)) {
242if ($m[1]=='LEFT' || $m[1]=='RIGHT') { $pageselectors = true; } // used to turn on $this->mpdf-…
244 else if ($level==2) { $tag = $t.'>>NAMED>>'.$t2; }
245 else if ($level==3 && preg_match('/^[:](.*)$/',$t3,$m)) {
247if ($m[1]=='LEFT' || $m[1]=='RIGHT') { $pageselectors = true; } // used to turn on $this->mpdf-…
249if (isset($this->CSS[$tag]) && $tag) { $this->CSS[$tag] = $this->array_merge_recursive_unique($thi…
250 else if ($tag) { $this->CSS[$tag] = $classproperties; }
253 else if ($level == 1) { // e.g. p or .class or #id or p.class or p#id
254 if (isset($tags[0])) { $t = trim($tags[0]); }
255 if ($t) {
257 if (preg_match('/^[.](.*)$/',$t,$m)) { $tag = 'CLASS>>'.$m[1]; }
258 else if (preg_match('/^[#](.*)$/',$t,$m)) { $tag = 'ID>>'.$m[1]; }
259 …else if (preg_match('/^\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/',$t,$m)) { $tag = 'LANG>>'…
260 …else if (preg_match('/^:LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/',$t,$m)) { $tag = 'LANG>>'…
261 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')[.](.*)$/',$t,$m)) { $tag = $m[1].'>>CLASS…
262 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')\s*:NTH-CHILD\((.*)\)$/',$t,$m)) { $tag = …
263 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')[#](.*)$/',$t,$m)) { $tag = $m[1].'>>ID>>'…
264 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,…
265 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.'):LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,…
266 … else if (preg_match('/^('.$this->mpdf->allowedCSStags.')$/',$t)) { $tag= $t; }
267if (isset($this->CSS[$tag]) && $tag) { $this->CSS[$tag] = $this->array_merge_recursive_unique($thi…
268 else if ($tag) { $this->CSS[$tag] = $classproperties; }
274 if (isset($tags[$n])) { $t = trim($tags[$n]); }
276 if ($t) {
278 if (preg_match('/^[.](.*)$/',$t,$m)) { $tag = 'CLASS>>'.$m[1]; }
279 else if (preg_match('/^[#](.*)$/',$t,$m)) { $tag = 'ID>>'.$m[1]; }
280 …else if (preg_match('/^\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/',$t,$m)) { $tag = 'LANG>>'…
281 …else if (preg_match('/^:LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/',$t,$m)) { $tag = 'LANG>>'…
282 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')[.](.*)$/',$t,$m)) { $tag = $m[1].'>>CLASS…
283 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')\s*:NTH-CHILD\((.*)\)$/',$t,$m)) { $tag = …
284 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')[#](.*)$/',$t,$m)) { $tag = $m[1].'>>ID>>'…
285 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.')\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,…
286 …else if (preg_match('/^('.$this->mpdf->allowedCSStags.'):LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,…
287 … else if (preg_match('/^('.$this->mpdf->allowedCSStags.')$/',$t)) { $tag= $t; }
289 if ($tag) $tmp[] = $tag;
294 if ($tag) {
302 if ($pageselectors) { $this->mpdf->mirrorMargins = true; }
307 } // end of if
308 //Remove CSS (tags and content), if any