| @@ 389-395 (lines=7) @@ | ||
| 386 | ||
| 387 | for ($level = $this->arranged_menu_array[$index]['level']; $level >= 0; $level--) { |
|
| 388 | if ($is_active) { |
|
| 389 | if ($item_active_tpl) { |
|
| 390 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$item_active_tpl]; |
|
| 391 | if ($this->test_tpl($tpl)) { |
|
| 392 | $is_good = TRUE; |
|
| 393 | break; |
|
| 394 | } |
|
| 395 | } |
|
| 396 | if ($item_tpl) { |
|
| 397 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$item_tpl]; |
|
| 398 | if ($this->test_tpl($tpl)) { |
|
| @@ 396-402 (lines=7) @@ | ||
| 393 | break; |
|
| 394 | } |
|
| 395 | } |
|
| 396 | if ($item_tpl) { |
|
| 397 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$item_tpl]; |
|
| 398 | if ($this->test_tpl($tpl)) { |
|
| 399 | $is_good = TRUE; |
|
| 400 | break; |
|
| 401 | } |
|
| 402 | } |
|
| 403 | ||
| 404 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$default_item_active_tpl]; |
|
| 405 | if ($this->test_tpl($tpl)) { |
|
| @@ 416-422 (lines=7) @@ | ||
| 413 | break; |
|
| 414 | } |
|
| 415 | } else { |
|
| 416 | if ($item_tpl) { |
|
| 417 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$item_tpl]; |
|
| 418 | if ($this->test_tpl($tpl)) { |
|
| 419 | $is_good = TRUE; |
|
| 420 | break; |
|
| 421 | } |
|
| 422 | } |
|
| 423 | $tpl = $this->tpl_folder_prefix . $level . '/' . $this->tpl_file_names[$default_item_tpl]; |
|
| 424 | if ($this->test_tpl($tpl)) { |
|
| 425 | $is_good = TRUE; |
|