@@ -8,7 +8,8 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | class PageCustomize extends Page |
| 10 | 10 | { |
| 11 | - private function isChecked ($key, $testedValue = 1) { |
|
| 11 | + private function isChecked ($key, $testedValue = 1) |
|
| 12 | + { |
|
| 12 | 13 | $value = getCurrentOption ($key); |
| 13 | 14 | if (is_array ($value)) { |
| 14 | 15 | if (in_array ($testedValue, $value)) { |
@@ -22,14 +23,16 @@ discard block |
||
| 22 | 23 | return ""; |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | - private function isSelected ($key, $value) { |
|
| 26 | + private function isSelected ($key, $value) |
|
| 27 | + { |
|
| 26 | 28 | if (getCurrentOption ($key) == $value) { |
| 27 | 29 | return "selected='selected'"; |
| 28 | 30 | } |
| 29 | 31 | return ""; |
| 30 | 32 | } |
| 31 | 33 | |
| 32 | - private function getTemplateList () { |
|
| 34 | + private function getTemplateList () |
|
| 35 | + { |
|
| 33 | 36 | $result = array (); |
| 34 | 37 | foreach (glob ("templates/*") as $filename) { |
| 35 | 38 | if (preg_match ('/templates\/(.*)/', $filename, $m)) { |
@@ -39,7 +42,8 @@ discard block |
||
| 39 | 42 | return $result; |
| 40 | 43 | } |
| 41 | 44 | |
| 42 | - private function getStyleList () { |
|
| 45 | + private function getStyleList () |
|
| 46 | + { |
|
| 43 | 47 | $result = array (); |
| 44 | 48 | foreach (glob ("templates/" . getCurrentTemplate () . "/styles/style-*.css") as $filename) { |
| 45 | 49 | if (preg_match ('/styles\/style-(.*?)\.css/', $filename, $m)) { |