Giter Site home page Giter Site logo

neutron-creative / gotta-blast Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.79 MB

Gotta Blast! ๐Ÿš€ is a WordPress child theme built on the Genesis Framework.

License: GNU General Public License v3.0

JavaScript 13.58% PHP 33.64% CSS 49.24% Shell 3.54%

gotta-blast's Introduction

Gotta Blast! ๐Ÿš€

WordPress License

A developer-friendly starter theme used for creating commercial child themes for the Genesis Framework.

It uses Composer to pull in the Core component library which provides the PHP logic for the theme's configuration, and it uses Gulp WP Toolkit to automate mundane build tasks like compiling SCSS and minifying images.

Check out the live demo

Gotta Blast! screenshot

Table of Contents

Features

The Gotta Blast! aims to modernize, organize and enhance some aspects of Genesis child theme development. Take a look at what is waiting for you:

Requirements

Requirement How to Check How to Install
PHP >= 5.4 php -v php.net
WordPress >= 4.8 Admin Footer wordpress.org
Genesis >= 2.6 Theme Page studiopress.com
Composer >= 1.5.0 composer --version getcomposer.org
Node >= 9.10.1 node -v nodejs.org
NPM >= 5.6.0 npm -v npm.js
Yarn >= 0.2.x yarn -v yarnpkg.com
Gulp CLI >= 1.3.0 gulp -v gulp.js
Gulp = 3.9.1 gulp -v gulp.js

Installation

One line command:

Install the latest development version of the Gotta Blast! using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):

composer create-project seothemes/gotta-blast your-theme-name dev-master && cd "$(\ls -1dt ./*/ | head -n 1)" && sh setup.sh

Individual commands:

Install the latest development version of the Gotta Blast! using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):

composer create-project seothemes/gotta-blast your-theme-name dev-master

Navigate into the theme's root directory:

cd your-theme-name

Run the setup script to rename the theme, build the theme assets and kick-off BrowserSync:

sh setup.sh

Setup

The Gotta Blast! includes a powerful setup script which automates the process of updating theme details:

Gotta Blast! setup script

It replaces the following details with your own:

  • Theme name
  • Theme textdomain
  • Theme author
  • Theme author URL
  • Theme development URL
  • Theme namespace
  • Theme version

Usage

The Gotta Blast! is intended to be used with Neutron Creative Inc Core. All changes to the child theme should be made via the theme configuration file. This can be used to change almost every aspect of the theme, including theme features, navigation menus, image sizes, widget areas and more. An example config file is included with this theme.

Components are only loaded when a config key is provided. They can be added or removed depending on the requirements of your project. For example, to remove the PluginActivation component, simply remove it's config key from the return statement in config/defaults.php.

The app directory is provided to house project-specific PHP files if additional functionality is required. It comes pre-configured with PSR-4 autoloading. Custom components can be created in the same way other Core components are, by first creating a class which extends the Component class and then adding it's configuration to the theme's config file. An Example Component is included with the theme to get you started.

Project details such as theme name, author, version number etc should only ever be changed from the package.json file. The Gulp build task reads this file and automatically places the relevant information to the correct locations throughout the theme.

Static assets are organized in the resources directory. This folder contains theme scripts, styles, images, fonts, views and language translation files.

Development

Please refer to the Gulp WP Toolkit Instructions for a complete list of available build tasks.

In addition to Gulp WP Toolkit's tasks, there is also a zip task which can be used to generate an archive of your theme, including the required composer package files and none of the unnecessary files. The list of included files can be modified from the toolkit.extendConfig.src.zip config in the Gulpfile.

Structure

your-theme-name/    # โ†’ Root directory
โ”œโ”€โ”€ app/            # โ†’ Theme PHP files
โ”‚   โ””โ”€โ”€ Example.php # โ†’ Example component
โ”œโ”€โ”€ config/         # โ†’ Config directory
โ”‚   โ””โ”€โ”€ config.php  # โ†’ Theme settings
โ”œโ”€โ”€ resources/      # โ†’ Front-end assets
โ”‚   โ”œโ”€โ”€ fonts/      # โ†’ Theme fonts
โ”‚   โ”œโ”€โ”€ img/        # โ†’ Theme images
โ”‚   โ”œโ”€โ”€ js/         # โ†’ Theme JavaScript
โ”‚   โ”œโ”€โ”€ lang/       # โ†’ Translation files
โ”‚   โ”œโ”€โ”€ scss/       # โ†’ Sass partials
โ”‚   โ””โ”€โ”€ views/      # โ†’ Theme templates
โ”œโ”€โ”€ node_modules/   # โ†’ Node.js packages
โ”œโ”€โ”€ vendor/         # โ†’ Composer packages
โ”œโ”€โ”€ composer.json   # โ†’ Composer settings
โ”œโ”€โ”€ functions.php   # โ†’ Composer autoloader
โ”œโ”€โ”€ front-page.php  # โ†’ Front page template
โ”œโ”€โ”€ Gulpfile.js     # โ†’ Gulp config
โ”œโ”€โ”€ package.json    # โ†’ Node dependencies
โ”œโ”€โ”€ screenshot.png  # โ†’ Theme screenshot
โ”œโ”€โ”€ setup.sh        # โ†’ CLI setup script
โ”œโ”€โ”€ style.css       # โ†’ Theme stylesheet
โ””โ”€โ”€ woocommerce.css # โ†’ WooCommerce styles

Contributing

Contributions are welcome from everyone. We have contributing guidelines to help you get started.

Authors

Neutron Creative Inc logo ย  D2 Themes logo

See also the list of contributors who participated in this project.

Special Thanks

A shout out to anyone who's code was used in or provided inspiration to this project:

Craig Simpson, Christoph Herr, Gary Jones, Tim Jensen, Bill Erickson, Sridhar Katakam, Nathan Rice, Brian Gardner

gotta-blast's People

Contributors

jimmybisenius avatar

Watchers

 avatar  avatar

Forkers

freshy969

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.