| @@ 147-155 (lines=9) @@ | ||
| 144 | /** |
|
| 145 | * Loop though set pages in functions.php->setControllers() |
|
| 146 | */ |
|
| 147 | foreach ($this->parentPages as $key => $page) { |
|
| 148 | if ($parentId == $this->returnId($key)) { |
|
| 149 | /** |
|
| 150 | * See if controller excists else fall back to default |
|
| 151 | */ |
|
| 152 | $file = get_template_directory() . '/controllers/pages/' . $page . '.php'; |
|
| 153 | $this->found = $page; |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Loop though set pages in functions.php->setControllers() |
|
| @@ 160-168 (lines=9) @@ | ||
| 157 | /** |
|
| 158 | * Loop though set pages in functions.php->setControllers() |
|
| 159 | */ |
|
| 160 | foreach ($this->pages as $key => $page) { |
|
| 161 | if ($pageId == $this->returnId($key)) { |
|
| 162 | /** |
|
| 163 | * See if controller excists else fall back to default |
|
| 164 | */ |
|
| 165 | $file = get_template_directory() . '/controllers/pages/' . $page . '.php'; |
|
| 166 | $this->found = $page; |
|
| 167 | } |
|
| 168 | } |
|
| 169 | ||
| 170 | if ($file && file_exists($file)) { |
|
| 171 | ||