feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
24
modules/backend/controllers/preferences/_example_code.php
Normal file
24
modules/backend/controllers/preferences/_example_code.php
Normal file
@@ -0,0 +1,24 @@
|
||||
form, fieldset, h5, h6, pre, blockquote, ol, dl, dt, dd, address, dd, dtm, div, td, th, hr {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* This is a comment */
|
||||
body {
|
||||
background-color: white;
|
||||
font: 62.5% Helvetica, Arial, Tahoma, Verdana, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.alert {
|
||||
color: #ff0000;
|
||||
border: 1px solid #ff0000;
|
||||
padding: 2rem;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
<p class="help-block" style="margin-bottom: -15px">
|
||||
<?= e(trans('backend::lang.editor.preview')) ?>:
|
||||
<a href="#" data-switch-lang="css">CSS</a> |
|
||||
<a href="#" data-switch-lang="html">HTML</a> |
|
||||
<a href="#" data-switch-lang="javascript">JavaScript</a> |
|
||||
<a href="#" data-switch-lang="twig">Twig</a> |
|
||||
<a href="#" data-switch-lang="php">PHP</a>
|
||||
</p>
|
||||
|
||||
<script type="x-template" data-lang-snippet="css">
|
||||
form, fieldset, h5, h6, pre, blockquote, ol, dl, dt, dd, address, dd, dtm, div, td, th, hr {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* This is a comment */
|
||||
body {
|
||||
background-color: white;
|
||||
font: 62.5% Helvetica, Arial, Tahoma, Verdana, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.alert {
|
||||
color: #ff0000;
|
||||
border: 1px solid #ff0000;
|
||||
padding: 2rem;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="x-template" data-lang-snippet="html">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Winter CMS</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Winter CMS</h1>
|
||||
<!-- The number one platform for content management -->
|
||||
|
||||
<div class="container">
|
||||
<p style="font-weight: bold">Winter CMS is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</script>
|
||||
|
||||
<script type="x-template" data-lang-snippet="javascript">
|
||||
((Snowboard) => {
|
||||
class WinterCms extends Snowboard.PluginBase {
|
||||
|
||||
// Create a new function
|
||||
myFunction(arg) {
|
||||
arg = arg.toLowerCase();
|
||||
|
||||
return arg;
|
||||
}
|
||||
|
||||
counter() {
|
||||
let count = 0;
|
||||
count = count + 1;
|
||||
|
||||
return count;
|
||||
}
|
||||
}
|
||||
})(winter.Snowboard)
|
||||
</script>
|
||||
|
||||
<script type="x-template" data-lang-snippet="twig">
|
||||
<h1>My Winter Page - {{ title }}</h1>
|
||||
|
||||
{% if show %}
|
||||
<p>Winter is coming!</p>
|
||||
{% else %}
|
||||
<p>Winter is not coming!</p>
|
||||
{% endif %}
|
||||
|
||||
{% for item in items %}
|
||||
<p>{{ item }}</p>
|
||||
{% endfor %}
|
||||
</script>
|
||||
|
||||
<script type="x-template" data-lang-snippet="php">
|
||||
<?php echo '<?php
|
||||
|
||||
namespace Winter;
|
||||
|
||||
use \Package\AnotherClass as BaseClass;
|
||||
|
||||
/**
|
||||
* This is Winter CMS.
|
||||
*
|
||||
* @author Winter CMS maintainers
|
||||
*/
|
||||
class Winter extends Laravel implements Simplicity
|
||||
{
|
||||
const NAME = \'Winter CMS\';
|
||||
|
||||
public string $site = \'My site\';
|
||||
|
||||
// You can construct anything
|
||||
public function __construct($site)
|
||||
{
|
||||
$this->site = $site;
|
||||
$this->begin();
|
||||
}
|
||||
|
||||
protected function begin()
|
||||
{
|
||||
$this->achieveAwesome();
|
||||
}
|
||||
}'; ?>
|
||||
</script>
|
||||
8
modules/backend/controllers/preferences/config_form.yaml
Normal file
8
modules/backend/controllers/preferences/config_form.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# ===================================
|
||||
# Form Behavior Config
|
||||
# ===================================
|
||||
|
||||
name: backend::lang.backend_preferences.menu_label
|
||||
form: ~/modules/backend/models/preference/fields.yaml
|
||||
modelClass: Backend\Models\Preference
|
||||
defaultRedirect: system/settings
|
||||
41
modules/backend/controllers/preferences/index.php
Normal file
41
modules/backend/controllers/preferences/index.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<?= Form::open(['class'=>'layout']) ?>
|
||||
|
||||
<div class="layout-row">
|
||||
<?= $this->formRender() ?>
|
||||
</div>
|
||||
|
||||
<div class="form-buttons">
|
||||
<div class="loading-indicator-container">
|
||||
<button
|
||||
type="submit"
|
||||
data-request="onSave"
|
||||
data-browser-validate
|
||||
data-request-data="redirect:0"
|
||||
data-hotkey="ctrl+s, cmd+s"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
|
||||
class="btn btn-primary">
|
||||
<?= e(trans('backend::lang.form.save')) ?>
|
||||
</button>
|
||||
|
||||
<span class="btn-text">
|
||||
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('system/settings') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
|
||||
</span>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-danger pull-right"
|
||||
data-request="onResetDefault"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.resetting')) ?>"
|
||||
data-request-confirm="<?= e(trans('backend::lang.form.action_confirm')) ?>">
|
||||
<?= e(trans('backend::lang.form.reset_default')) ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<?= Form::close() ?>
|
||||
|
||||
<?php else: ?>
|
||||
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
|
||||
<p><a href="<?= Backend::url('system/settings') ?>" class="btn btn-default"><?= e(trans('system::lang.settings.return')) ?></a></p>
|
||||
<?php endif ?>
|
||||
Reference in New Issue
Block a user