-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add feature to autoload latte layout-file
- Loading branch information
1 parent
102da82
commit 4b6123d
Showing
3 changed files
with
143 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace ProcessWire; | ||
|
||
/** | ||
* This file was created by RockFrontend | ||
* Do not change it to make sure that updating RockFrontend will not break | ||
* your site! Use _init.php to add custom modifications to your site. | ||
*/ | ||
|
||
$file = $config->paths->templates . $page->template . ".latte"; | ||
if (is_file($file)) $render = $page->template . ".latte"; | ||
else $render = $config->paths->siteModules . "RockFrontend/default.latte"; | ||
|
||
echo $rockfrontend->render($render); |