Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oksydan/is_themecore
Falcon theme core module.
https://github.com/oksydan/is_themecore
core-module falcon prestashop prestashop-module webp
Last synced: 3 months ago
JSON representation
Falcon theme core module.
- Host: GitHub
- URL: https://github.com/oksydan/is_themecore
- Owner: Oksydan
- License: gpl-3.0
- Created: 2021-02-15T21:00:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T00:34:30.000Z (10 months ago)
- Last Synced: 2024-10-15T03:07:22.009Z (3 months ago)
- Topics: core-module, falcon, prestashop, prestashop-module, webp
- Language: PHP
- Homepage:
- Size: 420 KB
- Stars: 11
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Theme core module
Prestashop module created for [starter theme](https://github.com/Oksydan/modern-prestashop-starter-theme)#### How to use assets.yml file
`assets.yml` file have to be placed inside `themes/THEME_NAME/config/` to work.
Example of `assets.yml` file:```yml
css:
product:
fileName: product.css
priority: 200
include:
- product
checkout:
fileName: checkout.css
priority: 200
include:
- cart
- order
- orderconfirmation
blog:
fileName: blog.css
priority: 200
include:
- module-blog-*
example_remote_bootstrap:
fileName: //cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
server: remote # required to set server: remote for remote file
priority: 200js:
product:
fileName: product.js
priority: 200
include:
- product
checkout:
fileName: checkout.js
priority: 200
include:
- cart
- order
- orderconfirmation
blog:
fileName: blog.js
priority: 200
include:
- module-blog-*
example_remote_bootstrap:
fileName: //cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js
server: remote # required to set server: remote for remote file
priority: 200
```You are able to use windcard `*` with include page name.
#### Structured data modification
You are able to modify structured data with hooks. List of hooks:
- `actionStructuredDataBreadcrumb`
- `actionStructuredDataProduct`
- `actionStructuredDataShop`
- `actionStructuredDataWebsite`Every hook $param is an array with two keys:
- `$data` - reference of structured data array
- `$rawData` - raw structured data array (provided by data provider)#### Partytown
You are able to use [partytown](https://partytown.builder.io/) with this module. You have to enable it first in module configuration.
Example of usage for GTAG:```html
window.partytown.forward.push('datalayer.push');
window.partytown.forward.push('gtag');
dataLayer = window.dataLayer || [];
window.gtag = function () {
dataLayer.push(arguments);
};window.gtag('js', new Date());
window.gtag('config', 'YOUR_GTAG_CODE');
```##### Beware that partytown is still in beta, and it may not work as expected. Make sure to test it before using in production.