| @@ 173-179 (lines=7) @@ | ||
| 170 | $request = $subject->Request(); |
|
| 171 | ||
| 172 | switch ($request->getActionName()) { |
|
| 173 | case 'index': |
|
| 174 | $subject->View()->addTemplateDir($this->pluginPath . 'Views/', 'connect'); |
|
| 175 | $this->snippetManager->addConfigDir($this->pluginPath . 'Snippets/'); |
|
| 176 | $subject->View()->extendsTemplate( |
|
| 177 | 'backend/article/connect.js' |
|
| 178 | ); |
|
| 179 | break; |
|
| 180 | case 'load': |
|
| 181 | $subject->View()->addTemplateDir($this->pluginPath . 'Views/', 'connect'); |
|
| 182 | $this->snippetManager->addConfigDir($this->pluginPath . 'Snippets/'); |
|
| @@ 87-93 (lines=7) @@ | ||
| 84 | $request = $subject->Request(); |
|
| 85 | ||
| 86 | switch ($request->getActionName()) { |
|
| 87 | case 'load': |
|
| 88 | $subject->View()->addTemplateDir($this->pluginPath . '/Views', 'connect'); |
|
| 89 | $this->snippetManager->addConfigDir($this->pluginPath . '/Snippets'); |
|
| 90 | $subject->View()->extendsTemplate( |
|
| 91 | 'backend/article_list/connect.js' |
|
| 92 | ); |
|
| 93 | break; |
|
| 94 | case 'list': |
|
| 95 | case 'filter': |
|
| 96 | $subject->View()->data = $this->markConnectProducts( |
|