The ideals behind the code format and standards being used for Opus Primus is to provide a human-readable layout and an easy to follow structure. Most of the basics are covered in the WordPress Coding Standards (since this is a WordPress theme). See the individual links to the Make WordPress Core Handbook for more details. Additional considerations will also be noted as either exceptions within the project or acceptable project alternatives.

To see the PHP Standards click here.To hide the PHP Standards click here.
To see the HTML Standards click here.To hide the HTML Standards click here.
To see the CSS Standards click here.To hide the CSS Standards click here.

CSS

To see the PhpStorm XML Reference click here.To hide the PhpStorm XML Reference click here.
WordPress.xml as forked by Cais and managed as a gist at GitHub.com

Inline Comments

  • As well as using PHPDoc style documentation where applicable, comments should be made to indicate the termination of a block of code for easier delineation.
  • All comments should begin with /** and end with */
  • Single line comments (especially within PHP) using // are not acceptable for this project.