Replies: 2 comments
-
|
A theme in Vvveb cms is made up of regular html files, you don't need to use a template language, for dynamic components you only need to declare some html attributes for example There is only one php file, theme.php that must contain at the beginning a comment with theme details like name, author, description etc and return a php array with some configuration. The default landing theme has a complete list of supported values /*
Name: Landing
URI: https://vvveb.com
Author: Vvveb
Author URI: https://vvveb.com
Description: Default theme
Version: 2.0
License: Apache 2.0
License URI: https://vvveb.com/licence/
Tags: blog, ecommerce
Text Domain: landing
*/The returned array must contain configuration settings for the theme, currently only settings for editor are used like
'components' => [
['title' => 'Bootstrap 5', 'name' => 'bootstrap5'],
['title' => 'Landing theme components', 'name' => 'essence', 'file'=> 'landing-components.js'],
],The same with 'inputs' => [
['title' => 'Slider inputs', 'name' => 'slider', 'file'=> 'slider-inputs.js'],
],
'pages' => [
'index' => [
'name' => 'index',
'file' => 'index.html',
'url' => '/themes/landing/index.html',
'title' => 'Home page',
'folder' => '',
'description' => 'Website homepage',
],
'contact' => [
'name' => 'contact',
'file' => 'contact.html',
'url' => '/themes/landing/contact.html',
'title' => 'Contact us page',
'folder' => '',
'description' => 'Contact us page',
],
'black-friday-homepage' => [
'name' => 'black-friday-homepage',
'file' => 'black-friday-index.html',
'url' => '/themes/landing/black-friday-index.html',
'title' => 'Black friday homepage',
'folder' => '',
'description' => 'Homepage for black friday sales',
],
'product-promo-slider' => [
'name' => 'product-promo-slider',
'file' => 'product/product-slider-index.html',
'url' => '/themes/landing/product/product-slider-index.html',
'title' => 'Product promo big slider',
'folder' => '',
'description' => 'Product page with a big slider for image gallery',
],
'blank' => [
'name' => 'blank',
'file' => 'blank.html',
'url' => '/themes/landing/blank.html',
'title' => 'Blank page',
'folder' => '',
'description' => 'Template page used for new pages',
],
] The default theme You can start your own theme by using it as a base, the theme is still in development and has some pages and features missing mostly in the ecommerce area where most features are not yet implemented. To use the theme run Then you can use the following commands.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that you need to add to your template theme.php .
How to configure it correctly ?
Beta Was this translation helpful? Give feedback.
All reactions