Read Me First - AgriLife/AgriFlex GitHub Wiki

Getting Started

The AgriFlex theme was developed by Texas A&M AgriLife Communications to act as a single code base for all AgriLife-related websites.

Contributing to AgriFlex

We welcome and appreciate any changes to the AgriFlex theme that will benefit all who use it, big or small. If you have an idea please fork this repository, make your changes, then submit a pull request via Github. Pull requests containing plugin-specific code will be denied.

Developing plugins for AgriFlex

Since department-specific changes to AgriFlex are forbidden, we encourage departments to create (or find a developer to create) WordPress plugins to enable the needed functionality. We've made AgriFlex 2.0 very extensible to make for simple development. To get started, request a staging server account here.

Developer Guidelines

  • If you've thought about it, there is probably a WordPress function that does it. Learn the 'WordPress Way'. Wax on. Wax off.
  • Read and follow the WordPress Coding Standards. Learn them, love them.
  • Template files will not be added to the core theme for your plugin. Learn how to include these files properly. See: Adding Template Files
  • Use the included actions and filters to manipulate the markup where possible.
  • If possible, publish your plugin on Github.
  • Comment your code. You won't be the only one working on it.
  • The staging server can be rebuilt at any time. Don't rely on it to store your code.
  • Your code will be reviewed. Requested changes must be made before your plugin is published to the production server.