| @@ 30-46 (lines=17) @@ | ||
| 27 | /** |
|
| 28 | * @return void |
|
| 29 | */ |
|
| 30 | protected function setModuleValues():void{ |
|
| 31 | ||
| 32 | foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){ |
|
| 33 | $v = $this->options->moduleValues[$M_TYPE] ?? null; |
|
| 34 | ||
| 35 | if(!is_string($v)){ |
|
| 36 | $this->moduleValues[$M_TYPE] = $defaultValue |
|
| 37 | ? $this->options->textDark |
|
| 38 | : $this->options->textLight; |
|
| 39 | } |
|
| 40 | else{ |
|
| 41 | $this->moduleValues[$M_TYPE] = $v; |
|
| 42 | } |
|
| 43 | ||
| 44 | } |
|
| 45 | ||
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @return string |
|
| @@ 37-53 (lines=17) @@ | ||
| 34 | /** |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | protected function setModuleValues():void{ |
|
| 38 | ||
| 39 | foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){ |
|
| 40 | $v = $this->options->moduleValues[$M_TYPE] ?? null; |
|
| 41 | ||
| 42 | if(!is_string($v)){ |
|
| 43 | $this->moduleValues[$M_TYPE] = $defaultValue |
|
| 44 | ? $this->options->markupDark |
|
| 45 | : $this->options->markupLight; |
|
| 46 | } |
|
| 47 | else{ |
|
| 48 | $this->moduleValues[$M_TYPE] = trim(strip_tags($v), '\'"'); |
|
| 49 | } |
|
| 50 | ||
| 51 | } |
|
| 52 | ||
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @return string |
|