-
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: update profile to use layout.latte
- Loading branch information
1 parent
f23fb4b
commit 15ad6cf
Showing
10 changed files
with
71 additions
and
177 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
<?php | ||
|
||
namespace ProcessWire; | ||
|
||
$htmlLang = "de"; | ||
|
||
$rockfrontend->styles() | ||
->add('/site/templates/uikit/src/less/uikit.theme.less') | ||
->add('/site/modules/RockFrontend/less/defaults.less') | ||
->addDefaultFolders() | ||
->minify(!$config->debug); | ||
|
||
$rockfrontend->scripts() | ||
->add('/site/templates/uikit/dist/js/uikit.min.js') | ||
->add('/site/templates/scripts/main.js', 'defer') | ||
->minify(!$config->debug); | ||
|
||
$seo = $rockfrontend->seo() | ||
->title($page->title . " | example.com"); |
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
profiles/rockpagebuilder/files/site/templates/layout.latte
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,30 @@ | ||
{* see _init.php *} | ||
<!DOCTYPE html> | ||
<html lang="{$htmlLang}"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
{* $seo and all assets are defined in _init.php *} | ||
{$seo|noescape} | ||
</head> | ||
|
||
<body> | ||
{include "sections/header.latte"} | ||
{include "sections/main.latte"} | ||
{include "sections/footer.latte"} | ||
|
||
{* | ||
Example of RockFrontend's consent tools | ||
You need to enable RockFrontend.js in RockFrontend's settings | ||
*} | ||
<template rf-consent="matomo" loadif="unchecked"> | ||
<script>console.log("Matomo is allowed, loading script")</script> | ||
</template> | ||
<template rf-consent="analytics" loadif="checked"> | ||
<script>console.log("This script is not loaded by default")</script> | ||
</template> | ||
</body> | ||
|
||
</html> |
3 changes: 3 additions & 0 deletions
3
profiles/rockpagebuilder/files/site/templates/less/_global.less
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,3 @@ | ||
/** | ||
* Global Project Stylesheet | ||
*/ |
3 changes: 3 additions & 0 deletions
3
profiles/rockpagebuilder/files/site/templates/less/_variables.less
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,3 @@ | ||
/** | ||
* Project Variables | ||
*/ |
32 changes: 0 additions & 32 deletions
32
profiles/rockpagebuilder/files/site/templates/less/blockmargins.less
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
profiles/rockpagebuilder/files/site/templates/less/typography.less
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
profiles/rockpagebuilder/files/site/templates/sections/main.latte
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{if $modules->isInstalled('RockPageBuilder')} | ||
<main sortable> | ||
{$rockpagebuilder->render(true)} | ||
</main> | ||
{else} | ||
<main style="padding:40px;border:5px solid red;"> | ||
RockPageBuilder is not installed!<br> | ||
Either add your own markup in /sections/main.latte or install RockPageBuilder | ||
</main> | ||
{/if} |