2017 © Pedro Pelรกez
 

library gili

Elegant WordPress starter theme with a modern development workflow

image

wpextra/gili

Elegant WordPress starter theme with a modern development workflow

  • Monday, July 23, 2018
  • by wpextra
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Gili

Packagist, (*1)

Gili is a WordPress starter theme with a modern development workflow., (*2)

Features

  • Sass for stylesheets
  • Modern JavaScript
  • [Gulp]
  • [Twig] as a templating engine
  • Bridge MVC for passing data to handle custom functions
  • CSS framework: Bootstrap 4

See a working example at https://demo.wpextra.co/gili., (*3)

Requirements

Make sure all dependencies have been installed before moving on:, (*4)

Theme installation

Install Sage using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):, (*5)

# @ app/themes/ or wp-content/themes/
$ composer create-project wpextra/gili your-theme-name

To install the latest development version of Sage, add dev-master to the end of the command:, (*6)

$ composer create-project wpextra/gili your-theme-name dev-master

During theme installation you will have options to update style.css theme headers, select a CSS framework, and configure Browsersync., (*7)

Theme structure

themes/your-theme-name/   # โ†’ Root of your Sage based theme
โ”œโ”€โ”€ app/                  # โ†’ Theme PHP
โ”‚   โ”œโ”€โ”€ apis/             # โ†’ Controller files
โ”‚   โ”œโ”€โ”€ controllers/      # โ†’ Controller files
โ”‚   โ”œโ”€โ”€ models/           # โ†’ Controller files
โ”‚   โ”œโ”€โ”€ repository/       # โ†’ Controller files
โ”‚   โ”œโ”€โ”€ persistent/       # โ†’ Controller files
โ”‚   โ”œโ”€โ”€ elements/         # โ†’ Your element block
โ”‚   โ”‚   โ”œโ”€โ”€ blocks/       # โ†’ 
โ”‚   โ”‚   โ”œโ”€โ”€ header/       # โ†’ 
โ”‚   โ”‚   โ”œโ”€โ”€ footer/       # โ†’ 
โ”‚   โ”‚   โ””โ”€โ”€ popups/       # โ†’ 
โ”‚   โ”œโ”€โ”€ config.php        # โ†’ Theme customizer setup
โ”‚   โ”œโ”€โ”€ filters.php       # โ†’ Theme filters
โ”‚   โ”œโ”€โ”€ helpers.php       # โ†’ Helper functions
โ”‚   โ”œโ”€โ”€ kernel.php        # โ†’ Helper functions
โ”‚   โ””โ”€โ”€ setup.php         # โ†’ Theme setup
โ”œโ”€โ”€ composer.json         # โ†’ Autoloading for `app/` files
โ”œโ”€โ”€ composer.lock         # โ†’ Composer lock file (never edit)
โ”œโ”€โ”€ dist/                 # โ†’ Built theme assets (never edit)
โ”œโ”€โ”€ node_modules/         # โ†’ Node.js packages (never edit)
โ”œโ”€โ”€ package.json          # โ†’ Node.js dependencies and scripts
โ”œโ”€โ”€ resources/            # โ†’ Theme assets and templates
โ”‚   โ”œโ”€โ”€ assets/           # โ†’ Front-end assets
โ”‚   โ”‚   โ”œโ”€โ”€ config.json   # โ†’ Settings for compiled assets
โ”‚   โ”‚   โ”œโ”€โ”€ fonts/        # โ†’ Theme fonts
โ”‚   โ”‚   โ”œโ”€โ”€ images/       # โ†’ Theme images
โ”‚   โ”‚   โ”œโ”€โ”€ scripts/      # โ†’ Theme JS
โ”‚   โ”‚   โ””โ”€โ”€ scss/         # โ†’ Theme stylesheets
โ”‚   โ”œโ”€โ”€ functions.php     # โ†’ Composer autoloader, theme includes
โ”‚   โ”œโ”€โ”€ index.php         # โ†’ Never manually edit
โ”‚   โ”œโ”€โ”€ screenshot.png    # โ†’ Theme screenshot for WP admin
โ”‚   โ”œโ”€โ”€ style.css         # โ†’ Theme meta information
โ”‚   โ””โ”€โ”€ views/            # โ†’ Theme templates
โ”‚       โ”œโ”€โ”€ layouts/      # โ†’ Base templates
โ”‚       โ””โ”€โ”€ partials/     # โ†’ Partial templates
โ””โ”€โ”€ index.php             # โ†’ 
โ””โ”€โ”€ archive.php           # โ†’ 
โ””โ”€โ”€ page.php              # โ†’ 
โ””โ”€โ”€ single.php            # โ†’ 
โ””โ”€โ”€ 404.php               # โ†’ 
โ””โ”€โ”€ functions.php         # โ†’ 
โ””โ”€โ”€ style.scss            # โ†’ 
โ””โ”€โ”€ vendor/               # โ†’ Composer packages (never edit)

Theme setup

Edit app/setup.php to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars., (*8)

Theme development

  • Run yarn from the theme directory to install dependencies
  • Update resources/assets/config.json settings:

Build commands

  • yarn start โ€” Compile assets when file changes are made, start Browsersync session
  • yarn build โ€” Compile and optimize the files in your assets directory
  • yarn build:production โ€” Compile assets for production

Documentation

Contributing

Contributions are welcome from everyone., (*9)

Gold sponsors

Help support our open-source development efforts by :, (*10)

Community

Keep track of development and community news., (*11)

The Versions

23/07 2018

dev-master

9999999-dev http://wpextra.co

Elegant WordPress starter theme with a modern development workflow

  Sources   Download

MIT

The Requires

  • php >=5.3.0|7.*

 

The Development Requires

templating twig themes bridge