@@ -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 |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @param string |
| 81 | 81 | * @param function |
| 82 | 82 | * |
| 83 | - * @return Blade |
|
| 83 | + * @return Templater |
|
| 84 | 84 | */ |
| 85 | 85 | public function addFunction($functionName, $callback) { |
| 86 | 86 | if($this->adapter_name == 'twig') { |
@@ -93,6 +93,7 @@ discard block |
||
| 93 | 93 | * Load adapter, currently we are using 2 adapters: twig and blade |
| 94 | 94 | * |
| 95 | 95 | * @var $adapter_name string Path to template folder. |
| 96 | + * @param string $adapter_name |
|
| 96 | 97 | * @return mixed |
| 97 | 98 | */ |
| 98 | 99 | public function loadAdapter($adapter_name) { |
@@ -134,7 +135,7 @@ discard block |
||
| 134 | 135 | * |
| 135 | 136 | * @var $app_name string Your application name, should be lowercase, letters only. |
| 136 | 137 | * |
| 137 | - * @return object \VA\Templater\Engine |
|
| 138 | + * @return Templater \VA\Templater\Engine |
|
| 138 | 139 | */ |
| 139 | 140 | public function setWordPressThemeSupport($app_name) { |
| 140 | 141 | // Path to templates folder in wordpress theme |