Skip to content

Apiki/wpemerge-theme

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WP Emerge Theme Logo

Packagist Gitter

A modern WordPress starter theme which uses the WP Emerge framework.

This is the WP Emerge Theme project - for the WP Emerge framework please check out https://github.com/htmlburger/wpemerge.

Summary

Documentation

https://docs.theme.wpemerge.com/

https://docs.theme.wpemerge.com/quickstart.html

Development Team

Brought to you by Atanas Angelov and the lovely folks at htmlBurger.

Comparison Table

WP Emerge Theme Sage Timber
View Engine PHP, Blade, Twig PHP, Blade Twig
Routing βœ” βœ– βœ–
MVC βœ–βœ”βœ” βœ–βœ”βœ–ΒΉ βœ–βœ”βœ–
Middleware βœ” βœ– βœ–
View Composers βœ” βœ”/βœ–Β² βœ–
Service Container βœ” βœ– βœ–
Stylesheets SASS + PostCSS SASS + PostCSS N/AΒ³
JavaScript ES6 ES6 N/AΒ³

ΒΉ Sage's Controller is more of a View Composer than a Controller.

Β² Sage's Controller provides similar functionality but is limited to 1 composer (controller) per view and vice versa.

Β³ Timber does not provide a front-end build process so you can implement whatever you prefer.

Email any factual inaccuracies to atanas.angelov.dev@gmail.com so they can be corrected.

Features

  • All features from WP Emerge:
    • Routes with optional rewrite rule integration
    • Controllers
    • Middleware
    • PSR-7 Responses
    • View Composers
    • Service Container
    • Service Providers
    • Support for Php, Blade 5.4 and/or Twig 2 for views
  • SASS + PostCSS for stylesheets. Separate bundles are created for front-end, administration and login pages.
  • ES6 for JavaScript. Separate bundles are created for front-end, administration and login pages.
  • Webpack to transpile and bundle assets, create sprites, optimize images etc.
  • Browsersync for synchronized browser development.
  • Autoloading for all classes in the App\ namespace.
  • Automatic, fool-proof style and script cache breaker.
  • Script and style linting.
  • Optional CSS packages:
    • Boostrap 4
    • Bulma
    • Foundation
    • Tachyons
    • FontAwesome
  • PHP unit testing scaffolding

Requirements

Directory structure

wp-content/themes/your-theme
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ helpers/              # Helper files, add your own here as well
β”‚   β”œβ”€β”€ setup/                # Register WordPress menus, post types etc.
β”‚   β”‚   β”œβ”€β”€ menus.php
β”‚   β”‚   β”œβ”€β”€ post-types.php
β”‚   β”‚   β”œβ”€β”€ sidebars.php
β”‚   β”‚   β”œβ”€β”€ taxonomies.php
β”‚   β”‚   β”œβ”€β”€ theme-support.php
β”‚   β”‚   └── widgets.php
β”‚   β”œβ”€β”€ src/                  # PSR-4 autoloaded classes
β”‚   β”‚   β”œβ”€β”€ Controllers/      # Controller classes for WP Emerge routes
β”‚   β”‚   β”œβ”€β”€ Widgets/          # Widget classes
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ config.php            # WP Emerge configuration
β”‚   β”œβ”€β”€ helpers.php           # Require your helper files here
β”‚   β”œβ”€β”€ hooks.php             # Register your actions and filters here
β”‚   └── framework.php         # Register your WP Emerge routes, globals etc.
β”œβ”€β”€ dist/                     # Bundles, optimized images etc.
β”œβ”€β”€ languages/                # Language files
β”œβ”€β”€ resources/
β”‚   β”œβ”€β”€ build/                # Build process configuration
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   β”œβ”€β”€ admin/            # Administration styles
β”‚   β”‚   β”œβ”€β”€ login/            # Login styles
β”‚   β”‚   └── index.scss        # Front-end entry point SCSS file
β”‚   β”œβ”€β”€ fonts/
β”‚   β”œβ”€β”€ images/
β”‚   └── scripts/
β”‚   β”‚   β”œβ”€β”€ admin/            # Administration scipts
β”‚   β”‚   β”œβ”€β”€ login/            # Login scripts
β”‚       └── index.js          # Front-end entry point JavaScript file
β”œβ”€β”€ theme/                    # Required theme files and views
β”‚   β”œβ”€β”€ partials/             # View partials
β”‚   β”œβ”€β”€ templates/            # Page templates
β”‚   β”œβ”€β”€ functions.php         # Bootstrap theme
β”‚   β”œβ”€β”€ screenshot.png        # Theme screenshot
β”‚   β”œβ”€β”€ style.css             # Theme stylesheet (avoid adding css here)
β”‚   └── [index.php ...]
β”œβ”€β”€ vendor/                   # Composer packages
β”œβ”€β”€ README.md                 # Your theme README
└── ...

Notable directories

app/helpers/

Add PHP helper files here. Helper files should include function definitions only. See below for information on where to put actions, filters, classes etc.

app/setup/

Modify files here according to your needs. These files should contain registrations and declarations of WordPress entities only such as post types, taxonomies etc.

app/src/

Add PHP class files here. All clases in the App\ namespace are autoloaded in accordance with the PSR-4 standard.

resources/styles/

Add .css and .scss files here. Don't forget to @import them in index.scss.

resources/styles/admin and resources/styles/login

These directories are for the admin and login bundles, respectively. They work identically to the main resources/css directory.

resources/images/

Add images for styling here. Optimized copies will be placed in dist/images/ when running the build process.

resources/scripts/

Add JavaScript files here. The entry point is resources/scripts/index.js.

resources/scripts/admin and resources/scripts/login

These directories are for the admin and login bundles, respectively. They work identically to the main resources/scripts directory.

theme/

Add views in this, the theme/partials/ or the theme/templates/ directories accordingly. Avoid adding any PHP logic here, unless it pertains to layouting (PHP logic should go into helper files or WP Emerge controllers)

Contributing

WP Emerge Theme is completely open source and we encourage everybody to participate by:

About

An organized, ES6 and SASS powered theme taking advantage of the WP Emerge framework. πŸš€

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 66.4%
  • JavaScript 17.0%
  • CSS 16.6%