initial commit

This commit is contained in:
2025-04-29 13:58:05 -07:00
commit c074a5ef18
25 changed files with 7230 additions and 0 deletions

0
tpl/.gitkeep Normal file
View File

10
tpl/footer.tpl Normal file
View File

@@ -0,0 +1,10 @@
{{#wp-footer}}
<footer class="site-footer mt-5">
<div class="container">
<p class="text-center">&copy; {{ year }}. Powered by <a id="bottom-link" href="{{ powered-by-url }}" target="_blank">{{ powered-by }}</a></p>
</div>
</footer>
</body>
</html>

61
tpl/header.tpl Normal file
View File

@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<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">
<title>{{#wp-title}}</title>
<!-- the following CSS is included for a fancy pants intro page. Feel free
to delete it! -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=montserrat:400,400i,700,700i" rel="stylesheet" />
<style>
* {
font-family: 'Montserrat', sans-serif;
}
body, html {
background-color: #212529;
color: #dee2e6;
font-size: 1.1rem;
line-height: 1.5;
}
.container {
max-width: 900px;
padding: 0 1rem;
display: block;
margin: 0 auto;
}
a {
color: #f472b6;
text-decoration: none;
}
.text-center {
text-align: center;
}
.m-0 {
margin: 0;
}
.mb-4 {
margin-bottom: 1.25rem;
}
code {
font-family: monospace;
color: white;
background-color: black;
display: inline-block;
line-height: 1.1;
font-size: 1rem;
padding: 2px 4px;
}
.outro h2 {
font-size: 1.2rem;
}
footer {
font-size: .8rem;
}
</style>
{{#wp-header}}
</head>
<body {{#body-classes}}>

39
tpl/index.tpl Normal file
View File

@@ -0,0 +1,39 @@
<section class="intro">
<div class="container">
<h1 class="text-center">
<a href = "https://rad-theme-engine.ofco.cloud/" target = "_blank">Welcome to Rad Theme Engine!</a>
</h1>
<div class="col-lg-12 text-center mb-4">
<a href = "https://rad-theme-engine.ofco.cloud/" target = "_blank">
<h1>
<img class="title-logo" src="https://rad-theme-engine.ofco.cloud/images/rebrand/Rad%20Logo%201%20OF-TOP.png" alt="Check out the RAD Theme Engine Docs">
</h1>
</a>
</div>
<p id="get-started">Get started by editing these template files to build out your site layouts and content.</p>
<p id="description">All template files need to be valid <a href="https://rad-theme-engine.ofco.cloud/docs/guides/handlebars/" target="_blank">handlebars</a> files, with tags that look like this: <code>{{#raw}}{{#formatDate now}}{{/raw}}</code>. Note: the <code>now</code> variable got its value passed by the PHP file to this template, and the <code>#formatDate</code> prefix is a <a href="https://rad-theme-engine.ofco.cloud/docs/guides/helpers/" target="_blank">handlebars helper</a>. You can write your own helpers very easily, and RAD comes preloaded with a bunch of really useful ones!</p>
<p>That tag is rendered into this: <code>{{#formatDate now }}</code></p>
<hr/>
</div>
</section>
<section>
<div class="container">
<p>We also passed the WordPress saved content to this template, asking specifically for the content, title, and published_at date. Here is a quick example of how to use that data:</p>
<p class="m-0">Title: {{ post.title }}</p>
<p class="m-0">Published: {{ post.published_at }}</p>
<p class="m-0">Content:</p>
{{{ post.content }}}
<hr/>
</div>
</section>
<section class="outro">
<h2 class="text-center">
For more help getting started on your new <em>RAD</em> project, visit the <br />
<a class="bottom-link" href="https://rad-theme-engine.ofco.cloud" target="_blank">RAD Theme Engine Docs</a>
</h2>
</section>