| @@ 44-52 (lines=9) @@ | ||
| 41 | $args = new stdClass(); |
|
| 42 | $args->layout = '.'; |
|
| 43 | $output = executeQueryArray('layout.getLayoutDotList', $args); |
|
| 44 | if($output->data && count($output->data) > 0) |
|
| 45 | { |
|
| 46 | foreach($output->data as $layout) |
|
| 47 | { |
|
| 48 | $layout_path = explode('.', $layout->layout); |
|
| 49 | if(count($layout_path) != 2) continue; |
|
| 50 | if(is_dir(sprintf(_XE_PATH_ . 'themes/%s/layouts/%s', $layout_path[0], $layout_path[1]))) return true; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | return false; |
|
| 55 | } |
|
| @@ 93-101 (lines=9) @@ | ||
| 90 | ||
| 91 | $args->skin = '.'; |
|
| 92 | $output = executeQueryArray('module.getModuleSkinDotList', $args); |
|
| 93 | if($output->data && count($output->data) > 0) |
|
| 94 | { |
|
| 95 | foreach($output->data as $item) |
|
| 96 | { |
|
| 97 | $skin_path = explode('.', $item->skin); |
|
| 98 | if(count($skin_path) != 2) continue; |
|
| 99 | if(is_dir(sprintf(_XE_PATH_ . 'themes/%s/modules/%s', $skin_path[0], $skin_path[1]))) return true; |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | // XE 1.7 |
|
| 104 | ||