Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Refactor our theme #4

@neojp

Description

@neojp

Let's refactor our theme to bring the latest tools and ideas we have been using in our latest projects.

PHP

  • Enforce WordPress coding standards / naming conventions for files and code. PHP_CodeSniffer
  • Refactor WDG class
    • Remove unused methods
    • Nav menus menu_class is being repeated twice
    • Throw better errors on get_template_part
  • Move Theme class to its own file, reference it in functions.php
  • New PHP classes
    • Attachment
    • Breadcrumb
      • Implement caching
      • Support default post, pages, search & archives
      • Support custom post types
      • Support custom taxonomies
    • Post Type
    • String
    • SVG
      • Implement caching
    • Taxonomy
    • Visual Grid
  • Make sure WP Widgets are being properly included and registered by default
  • Replace Nav walker to not use SUIT CSS class names
  • Fix WDG::add_body_class()
  • Fix WDG::register_style() & WDG::register_script() to include the version number
  • Docs on how to use OOP and each PHP class
  • PHPDoc on all classes and methods
  • Unit test each class method
  • Composer support

Markup

  • Remove lorempixel.com images

Build pipeline

  • Use local NPM script tasks rather than installing global Build Task Runners
  • Move towards Gulp
  • Deprecate Bower usage
  • Move vendor to its own task
  • Docs on how to extend internals

CSS

JavaScript

  • Enforce coding standards
  • Use ES6 and ES6 modules (tree shaking support) with Rollup
  • Sourcemaps
  • JSDoc on all classes

Linting

  • Docs for editorconfig
  • Docs for stylelint
  • Docs for ESLint
  • Docs for phpcs

Docs

  • Simple recipes with common usage patterns

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions