feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
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:
2026-08-21 19:29:00 -06:00
commit 1f72193a64
3266 changed files with 531480 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<?php namespace System\Classes;
use Winter\Storm\Parse\Processor\YamlProcessor;
/**
* "version.yaml" pre-processor class.
*
* Post-v3.x versions of the Symonfy/Yaml package use more recent versions of YAML spec, which breaks common
* implementations of our version file format. To maintain compatibility, this class will pre-process YAML
* contents from these files to work with Symfony/Yaml 4.0+.
*
* @author Winter CMS
*/
class VersionYamlProcessor extends YamlProcessor
{
/**
* @inheritDoc
*/
public function preprocess($text)
{
$lines = preg_split('/[\n\r]+/', $text, -1, PREG_SPLIT_NO_EMPTY);
foreach ($lines as $num => &$line) {
// Surround array keys with quotes if not already
$line = preg_replace_callback('/^\s*([\'"]{0}[^\'"\n\r\-:]+[\'"]{0})\s*:/m', function ($matches) {
return '"' . trim($matches[1]) . '":';
}, rtrim($line));
// Add quotes around any unquoted text following an array key
// specifically to ensure usage of !!! in unquoted comments does not fail
$line = preg_replace_callback('/^\s*([^\n\r\-:]+)\s*: +(?![\'"\s])(.*)/m', function ($matches) {
$key = $matches[1];
$value = str_replace('"', '\\"', $matches[2]);
return $key . ': "' . $value . '"';
}, $line);
// If this line is the continuance of a multi-line string, remove the quote from the previous line and
// continue the quote
if (
preg_match('/^(?!\s*(-|(.*?):\s*))([^\n\r]+)([^"]$)/m', $line)
&& substr($lines[$num - 1], -1) === '"'
) {
$lines[$num - 1] = substr($lines[$num - 1], 0, -1);
$line .= '"';
}
// Add quotes around any unquoted array items
$line = preg_replace_callback('/^(\s*-\s*)(?![\'" ])(.*)/m', function ($matches) {
$array = $matches[1];
$value = str_replace('"', '\\"', $matches[2]);
return $array . '"' . $value . '"';
}, $line);
}
$processed = implode("\n", $lines);
return $processed;
}
/**
* @inheritDoc
*/
public function process($parsed)
{
return $parsed;
}
}