@@ -134,12 +134,12 @@ |
||
| 134 | 134 | |
| 135 | 135 | // Preapare template folders |
| 136 | 136 | $template_folders = [ |
| 137 | - $theme_template_path, // Load this path first |
|
| 138 | - $this->dir_path // Load this path second |
|
| 139 | - ]; |
|
| 140 | - $loader = new \Twig_Loader_Filesystem($template_folders); |
|
| 141 | - $this->adapter->setLoader($loader); |
|
| 142 | - return $this; |
|
| 137 | + $theme_template_path, // Load this path first |
|
| 138 | + $this->dir_path // Load this path second |
|
| 139 | + ]; |
|
| 140 | + $loader = new \Twig_Loader_Filesystem($template_folders); |
|
| 141 | + $this->adapter->setLoader($loader); |
|
| 142 | + return $this; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | } |
| 146 | 146 | \ No newline at end of file |
@@ -78,6 +78,7 @@ discard block |
||
| 78 | 78 | * Load adapter, currently we are using 2 adapters: twig and blade |
| 79 | 79 | * |
| 80 | 80 | * @var $adapter_name string Path to template folder. |
| 81 | + * @param string $adapter_name |
|
| 81 | 82 | * @return mixed |
| 82 | 83 | */ |
| 83 | 84 | public function loadAdapter($adapter_name) { |
@@ -119,7 +120,7 @@ discard block |
||
| 119 | 120 | * |
| 120 | 121 | * @var $app_name string Your application name, should be lowercase, letters only. |
| 121 | 122 | * |
| 122 | - * @return object \VA\Templater\Engine |
|
| 123 | + * @return Templater \VA\Templater\Engine |
|
| 123 | 124 | */ |
| 124 | 125 | public function setWordPressThemeSupport($app_name) { |
| 125 | 126 | // Path to templates folder in wordpress theme |