Skip to content

AgriLife/agriflex4

Repository files navigation

AgriFlex4

Codeship Status for AgriLife/agriflex4/master

This WordPress theme provides functionality and visual styles for AgriLife affiliated websites.

WordPress Requirements

  1. Genesis theme
  2. Advanced Custom Fields 5+ plugin
  3. PHP 5.6+, tested with PHP 7.2

Installation

  1. Download the latest release
  2. Upload the theme to your site

Features

  • Responsive layout and navigation for desktop, tablet, and mobile devices
  • Multiple page layouts
  • Post and page archives that show full or excerpted content, with or without a featured image
  • Widget Areas
    • Primary Sidebar: Positioned next to a page's content depending on which page layout it uses
  • JS file for tiled post search page templates * Used by af4-aglifesciences and agrilife-degree-programs * Uses the Sticky plugin from Foundation to position the filters in a helpful location when the browser window is greater than 700px wide

Development Installation

  1. Copy this repo to the desired location.
  2. In your terminal, navigate to the plugin location 'cd /path/to/the/plugin'.
  3. Run "npm start" to configure your local copy of the repo, install dependencies, and build files for a production environment.
  4. Or, run "npm start -- develop" to configure your local copy of the repo, install dependencies, and build files for a development environment.

Development Notes

When you stage changes to this repository and initiate a commit, they must pass PHP and Sass linting tasks before they will complete the commit step. Release tasks can only be used by the repository's owners.

Development Tasks

  1. Run "grunt develop" to compile the css when developing the plugin.
  2. Run "grunt watch" to automatically compile the css after saving a *.scss file.
  3. Run "grunt" to compile the css when publishing the plugin.
  4. Run "npm run checkwp" to check PHP files against WordPress coding standards.

Development Requirements