feat: Initial project
This commit is contained in:
@@ -1,12 +1,8 @@
|
|||||||
---
|
---
|
||||||
deployment:
|
deployment:
|
||||||
tasks:
|
tasks:
|
||||||
- export DEPLOYPATH=/home/cascapediastjules/public_html
|
- export DEPLOYPATH=/home/cascapedia/public_html
|
||||||
- composer install
|
- composer install
|
||||||
# - pnpm --dir ./wp-content/themes/cascapediastjules install
|
|
||||||
# - pnpm --dir ./wp-content/themes/cascapediastjules build
|
|
||||||
# - yarn --cwd ./wp-content/themes/cascapediastjules install
|
|
||||||
# - yarn --cwd ./wp-content/themes/cascapediastjules build
|
|
||||||
- mkdir -p ${DEPLOYPATH}/vendor/
|
- mkdir -p ${DEPLOYPATH}/vendor/
|
||||||
- rsync -av ./vendor/ ${DEPLOYPATH}/vendor/ --delete
|
- rsync -av ./vendor/ ${DEPLOYPATH}/vendor/ --delete
|
||||||
- mkdir -p ${DEPLOYPATH}/wp-content/mu-plugins/
|
- mkdir -p ${DEPLOYPATH}/wp-content/mu-plugins/
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -22,4 +22,4 @@
|
|||||||
!/wp-content/themes/
|
!/wp-content/themes/
|
||||||
/wp-content/themes/*
|
/wp-content/themes/*
|
||||||
!/wp-content/themes/.gitkeep
|
!/wp-content/themes/.gitkeep
|
||||||
!/wp-content/themes/cascapediastjules/
|
!/wp-content/themes/cascapedia/
|
||||||
|
|||||||
@@ -32,18 +32,16 @@
|
|||||||
"lintfix": "vendor/bin/phpcbf"
|
"lintfix": "vendor/bin/phpcbf"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"chubbyphp/chubbyphp-parsing": "*",
|
"lewebsimple/bricks-v2": "*",
|
||||||
"lewebsimple/acf-polylang": "*",
|
|
||||||
"lewebsimple/admin-site-enhancements-pro": "*",
|
|
||||||
"lewebsimple/advanced-custom-fields-pro": "*",
|
"lewebsimple/advanced-custom-fields-pro": "*",
|
||||||
"lewebsimple/ithemes-security-pro": "*",
|
"lewebsimple/ithemes-security-pro": "*",
|
||||||
"lewebsimple/kaliroots": "*",
|
|
||||||
"lewebsimple/wp-offload-ses": "*",
|
"lewebsimple/wp-offload-ses": "*",
|
||||||
"wpackagist-plugin/acf-extended": "*",
|
"wpackagist-plugin/acf-extended": "*",
|
||||||
|
"wpackagist-plugin/clean-image-filenames": "*",
|
||||||
"wpackagist-plugin/disable-comments": "*",
|
"wpackagist-plugin/disable-comments": "*",
|
||||||
"wpackagist-plugin/redirection": "*",
|
"wpackagist-plugin/media-focus-point": "*",
|
||||||
"wpackagist-plugin/user-switching": "*",
|
"wpackagist-plugin/simple-custom-post-order": "*",
|
||||||
"wpackagist-plugin/wordpress-seo": "*"
|
"wpackagist-plugin/user-switching": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"lewebsimple/wp-phpcs-ruleset": "*",
|
"lewebsimple/wp-phpcs-ruleset": "*",
|
||||||
|
|||||||
241
composer.lock
generated
241
composer.lock
generated
@@ -4,73 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e60b6ea169623f0db03a208049a65a6a",
|
"content-hash": "9e7b32f4f1942119dd04d27a6939e8c8",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
|
||||||
"name": "chubbyphp/chubbyphp-parsing",
|
|
||||||
"version": "2.0.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/chubbyphp/chubbyphp-parsing.git",
|
|
||||||
"reference": "40a044772b2c56d19f0e8f599bfcb477f4d361ca"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/chubbyphp/chubbyphp-parsing/zipball/40a044772b2c56d19f0e8f599bfcb477f4d361ca",
|
|
||||||
"reference": "40a044772b2c56d19f0e8f599bfcb477f4d361ca",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": "^8.2"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"chubbyphp/chubbyphp-dev-helper": "dev-master",
|
|
||||||
"infection/infection": "^0.31.9",
|
|
||||||
"php-coveralls/php-coveralls": "^2.9",
|
|
||||||
"phpstan/extension-installer": "^1.4.3",
|
|
||||||
"phpstan/phpstan": "^2.1.32",
|
|
||||||
"phpunit/phpunit": "^11.5.44",
|
|
||||||
"respect/validation": "^2.4.4"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"respect/validation": "If your interested in using the respect/validation, please install it with ^2.4.4"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "2.0-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Chubbyphp\\Parsing\\": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Dominik Zogg",
|
|
||||||
"email": "dominik.zogg@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Allows parsing data of various structures, meaning the population and validation of data into a defined structure. For example, converting an API request into a Data Transfer Object (DTO).",
|
|
||||||
"keywords": [
|
|
||||||
"chubbyphp",
|
|
||||||
"dto",
|
|
||||||
"parsing",
|
|
||||||
"population",
|
|
||||||
"validation",
|
|
||||||
"zod"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/chubbyphp/chubbyphp-parsing/issues",
|
|
||||||
"source": "https://github.com/chubbyphp/chubbyphp-parsing/tree/2.0.1"
|
|
||||||
},
|
|
||||||
"time": "2025-11-29T17:52:02+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "composer/installers",
|
"name": "composer/installers",
|
||||||
"version": "v2.3.0",
|
"version": "v2.3.0",
|
||||||
@@ -217,56 +152,39 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-06-24T20:46:46+00:00"
|
"time": "2024-06-24T20:46:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "lewebsimple/acf-polylang",
|
|
||||||
"version": "v1.4.0",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "ssh://git@gitea.websimple.com:222/wp-plugins/acf-polylang.git",
|
|
||||||
"reference": "3998e44ccc400bd6233c98364df03a4f6db4f7b0"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/acf-polylang/lewebsimple-acf-polylang-v1.4.0-d64a6e.zip",
|
|
||||||
"reference": "3998e44ccc400bd6233c98364df03a4f6db4f7b0",
|
|
||||||
"shasum": "1cb04729c3991e538bc38b3ef2371f9cbe47aea6"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"time": "2025-04-11T12:05:23+00:00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "lewebsimple/admin-site-enhancements-pro",
|
|
||||||
"version": "v8.1.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "ssh://git@gitea.websimple.com:222/wp-plugins/admin-site-enhancements-pro.git",
|
|
||||||
"reference": "75ff8c27a098f162969f23550d3754eab9063a11"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/admin-site-enhancements-pro/lewebsimple-admin-site-enhancements-pro-v8.1.1-59be42.zip",
|
|
||||||
"reference": "75ff8c27a098f162969f23550d3754eab9063a11",
|
|
||||||
"shasum": "2e6ef4639a71325b6a1988db20b1badbffbd37d5"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"time": "2025-12-12T16:17:17+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/advanced-custom-fields-pro",
|
"name": "lewebsimple/advanced-custom-fields-pro",
|
||||||
"version": "v6.7.0.2",
|
"version": "v6.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@gitea.websimple.com:222/wp-plugins/advanced-custom-fields-pro.git",
|
"url": "ssh://git@gitea.websimple.com:222/wp-plugins/advanced-custom-fields-pro.git",
|
||||||
"reference": "0f05fc999189ec688c19abe4d8c889f947ec96c3"
|
"reference": "7f2160948bb9182ec5a780d039f171ae9aefcc22"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/advanced-custom-fields-pro/lewebsimple-advanced-custom-fields-pro-v6.7.0.2-911a1f.zip",
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/advanced-custom-fields-pro/lewebsimple-advanced-custom-fields-pro-v6.8.0-3f1aab.zip",
|
||||||
"reference": "0f05fc999189ec688c19abe4d8c889f947ec96c3",
|
"reference": "7f2160948bb9182ec5a780d039f171ae9aefcc22",
|
||||||
"shasum": "2782595387ea3b62a81cdb0a79ec75e9beca8aa7"
|
"shasum": "ec9073b2c09e4a8785ef6765925d23cf6c810c9d"
|
||||||
},
|
},
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"time": "2025-12-12T16:12:43+00:00"
|
"time": "2026-04-02T12:52:02+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lewebsimple/bricks-v2",
|
||||||
|
"version": "v2.3.3",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@gitea.websimple.com:222/wp-themes/bricks-v2.git",
|
||||||
|
"reference": "b542416d8657e176977bbd4e5538ee29c6b48403"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/bricks-v2/lewebsimple-bricks-v2-v2.3.3-97af88.zip",
|
||||||
|
"reference": "b542416d8657e176977bbd4e5538ee29c6b48403",
|
||||||
|
"shasum": "66ee1dd508d91230cbfe2da38d11f6d45060dd30"
|
||||||
|
},
|
||||||
|
"type": "wordpress-theme",
|
||||||
|
"time": "2026-04-27T14:36:36+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/ithemes-security-pro",
|
"name": "lewebsimple/ithemes-security-pro",
|
||||||
@@ -285,23 +203,6 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"time": "2025-07-22T14:11:07+00:00"
|
"time": "2025-07-22T14:11:07+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "lewebsimple/kaliroots",
|
|
||||||
"version": "v0.9.18",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "ssh://git@gitea.websimple.com:222/wp-themes/kaliroots.git",
|
|
||||||
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/kaliroots/lewebsimple-kaliroots-v0.9.18-77d6cf.zip",
|
|
||||||
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4",
|
|
||||||
"shasum": "fd6aea0ef1bc160bc183eb7239cc9adf2fd88169"
|
|
||||||
},
|
|
||||||
"type": "wordpress-theme",
|
|
||||||
"time": "2025-10-10T12:11:22+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/wp-offload-ses",
|
"name": "lewebsimple/wp-offload-ses",
|
||||||
"version": "v1.6.8",
|
"version": "v1.6.8",
|
||||||
@@ -321,15 +222,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/acf-extended",
|
"name": "wpackagist-plugin/acf-extended",
|
||||||
"version": "0.9.2.2",
|
"version": "0.9.2.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/acf-extended/",
|
"url": "https://plugins.svn.wordpress.org/acf-extended/",
|
||||||
"reference": "tags/0.9.2.2"
|
"reference": "tags/0.9.2.4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/acf-extended.0.9.2.2.zip"
|
"url": "https://downloads.wordpress.org/plugin/acf-extended.0.9.2.4.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
@@ -338,16 +239,34 @@
|
|||||||
"homepage": "https://wordpress.org/plugins/acf-extended/"
|
"homepage": "https://wordpress.org/plugins/acf-extended/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/disable-comments",
|
"name": "wpackagist-plugin/clean-image-filenames",
|
||||||
"version": "2.6.1",
|
"version": "1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/disable-comments/",
|
"url": "https://plugins.svn.wordpress.org/clean-image-filenames/",
|
||||||
"reference": "tags/2.6.1"
|
"reference": "tags/1.5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/disable-comments.2.6.1.zip"
|
"url": "https://downloads.wordpress.org/plugin/clean-image-filenames.1.5.zip"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
},
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"homepage": "https://wordpress.org/plugins/clean-image-filenames/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wpackagist-plugin/disable-comments",
|
||||||
|
"version": "2.7.0",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://plugins.svn.wordpress.org/disable-comments/",
|
||||||
|
"reference": "tags/2.7.0"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://downloads.wordpress.org/plugin/disable-comments.2.7.0.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
@@ -356,58 +275,58 @@
|
|||||||
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/redirection",
|
"name": "wpackagist-plugin/media-focus-point",
|
||||||
"version": "5.6.0",
|
"version": "2.0.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/redirection/",
|
"url": "https://plugins.svn.wordpress.org/media-focus-point/",
|
||||||
"reference": "tags/5.6.0"
|
"reference": "tags/2.0.5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/redirection.5.6.0.zip"
|
"url": "https://downloads.wordpress.org/plugin/media-focus-point.2.0.5.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
},
|
},
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/redirection/"
|
"homepage": "https://wordpress.org/plugins/media-focus-point/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/user-switching",
|
"name": "wpackagist-plugin/simple-custom-post-order",
|
||||||
"version": "1.11.1",
|
"version": "2.6.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/user-switching/",
|
"url": "https://plugins.svn.wordpress.org/simple-custom-post-order/",
|
||||||
"reference": "tags/1.11.1"
|
"reference": "tags/2.6.0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/user-switching.1.11.1.zip"
|
"url": "https://downloads.wordpress.org/plugin/simple-custom-post-order.2.6.0.zip"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
},
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"homepage": "https://wordpress.org/plugins/simple-custom-post-order/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wpackagist-plugin/user-switching",
|
||||||
|
"version": "1.11.2",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://plugins.svn.wordpress.org/user-switching/",
|
||||||
|
"reference": "tags/1.11.2"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://downloads.wordpress.org/plugin/user-switching.1.11.2.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
},
|
},
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/user-switching/"
|
"homepage": "https://wordpress.org/plugins/user-switching/"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "wpackagist-plugin/wordpress-seo",
|
|
||||||
"version": "26.6",
|
|
||||||
"source": {
|
|
||||||
"type": "svn",
|
|
||||||
"url": "https://plugins.svn.wordpress.org/wordpress-seo/",
|
|
||||||
"reference": "tags/26.6"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://downloads.wordpress.org/plugin/wordpress-seo.26.6.zip"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"homepage": "https://wordpress.org/plugins/wordpress-seo/"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
@@ -873,5 +792,5 @@
|
|||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {},
|
"platform": {},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.9.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#LOCAL_DOMAIN=example.${TLD-ledevsimple.ca}
|
LOCAL_DOMAIN=cascapediastjules.${TLD-ledevsimple.ca}
|
||||||
#REMOTE_DOMAIN=www.example.com
|
REMOTE_DOMAIN=dev.cascapediastjules.com
|
||||||
#REMOTE_HOST=cpanel5.lewebsimple.ca
|
REMOTE_HOST=cpanel1.lewebsimple.ca
|
||||||
#REMOTE_USER=example
|
REMOTE_USER=cascapedia
|
||||||
#REMOTE_PATH=/home/${REMOTE_USER}/public_html
|
REMOTE_PATH=/home/${REMOTE_USER}/public_html
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Inject the Umami tracking code into the <head> of the site
|
|
||||||
// add_action( 'wp_head', 'umami_wp_head' );
|
|
||||||
function umami_wp_head() {
|
|
||||||
?>
|
|
||||||
<script defer src="https://umami.websimple.com/script" data-website-id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"></script>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
7
wp-content/themes/cascapedia/functions.php
Normal file
7
wp-content/themes/cascapedia/functions.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Core
|
||||||
|
require_once __DIR__ . '/includes/core/theme-setup.php';
|
||||||
|
|
||||||
|
// Vendors
|
||||||
|
require_once __DIR__ . '/includes/core/vendors/acf.php';
|
||||||
22
wp-content/themes/cascapedia/includes/core/theme-setup.php
Normal file
22
wp-content/themes/cascapedia/includes/core/theme-setup.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Setup theme
|
||||||
|
add_action( 'after_setup_theme', 'cascapedia_after_setup_theme' );
|
||||||
|
function cascapedia_after_setup_theme() {
|
||||||
|
// Load textdomain
|
||||||
|
load_theme_textdomain( 'cascapedia', get_theme_file_path( 'languages' ) );
|
||||||
|
|
||||||
|
// Theme features
|
||||||
|
add_theme_support( 'custom-logo' );
|
||||||
|
add_theme_support( 'post-thumbnails' );
|
||||||
|
add_theme_support( 'title-tag' );
|
||||||
|
remove_theme_support( 'core-block-patterns' );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enqueue frontend scripts / styles
|
||||||
|
add_action( 'wp_enqueue_scripts', 'cascapedia_enqueue_scripts' );
|
||||||
|
function cascapedia_enqueue_scripts() {
|
||||||
|
if ( ! bricks_is_builder_main() ) {
|
||||||
|
wp_enqueue_style( 'cascapedia', get_stylesheet_uri(), array( 'bricks-frontend' ), filemtime( get_stylesheet_directory() . '/style.css' ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
21
wp-content/themes/cascapedia/includes/core/vendors/acf.php
vendored
Normal file
21
wp-content/themes/cascapedia/includes/core/vendors/acf.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Disable ACF / ACFE modules
|
||||||
|
add_filter( 'acf/settings/enable_post_types', '__return_false' );
|
||||||
|
add_action( 'acf/init', 'cascapedia_acf_init' );
|
||||||
|
function cascapedia_acf_init() {
|
||||||
|
acf_update_setting( 'acfe/modules/block_types', false );
|
||||||
|
acf_update_setting( 'acfe/modules/categories', false );
|
||||||
|
acf_update_setting( 'acfe/modules/forms', false );
|
||||||
|
acf_update_setting( 'acfe/modules/options', false );
|
||||||
|
acf_update_setting( 'acfe/modules/options_pages', false );
|
||||||
|
acf_update_setting( 'acfe/modules/post_types', false );
|
||||||
|
acf_update_setting( 'acfe/modules/taxonomies', false );
|
||||||
|
acf_update_setting( 'acfe/modules/templates', false );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set ACFE Flexible Content dynamic preview style
|
||||||
|
add_filter( 'acfe/flexible/render/style', 'cascapedia_acfe_flexible_render_style' );
|
||||||
|
function cascapedia_acfe_flexible_render_style() {
|
||||||
|
return 'editor-style.css';
|
||||||
|
}
|
||||||
BIN
wp-content/themes/cascapedia/screenshot.png
Normal file
BIN
wp-content/themes/cascapedia/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
9
wp-content/themes/cascapedia/style.css
Normal file
9
wp-content/themes/cascapedia/style.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Theme Name: Cascapedia St-Jules
|
||||||
|
Theme URI: https://bricksbuilder.io/
|
||||||
|
Author: Bricks
|
||||||
|
Author URI: https://bricksbuilder.io/
|
||||||
|
Template: bricks-v2
|
||||||
|
Version: 1.1
|
||||||
|
Text Domain: cascapedia
|
||||||
|
*/
|
||||||
Reference in New Issue
Block a user