Op-sy WordPress theme.
PHP CSS JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
database
external
img
js
parts/shared
sass
.bowerrc
.gitignore
404.php
Gruntfile.js
README.md
archive.php
author.php
bower.json
category.php
comments.php
config.rb
functions.php
index.php
package.json
page.php
page_contact.php
page_downloads.php
page_feeds.php
page_information.php
page_os.php
page_project.php
page_projects.php
page_systems.php
screenshot.png
search.php
single.php
style.css
tag.php

README.md

Op-sy Wordpress Theme

Summary

WordPress Theme for the iDAT op-sy project, based on Starkers.

Local Development

Install WordPress

Either via GitHub (remember to checkout stable branch) or manually.

Install Theme

  1. cd wp-content/themes/
  2. git clone git@github.com:saulhardman/op-sy.git

Install NPM and Bower Dependencies

  1. cd op-sy
  2. npm install

Create a config.json file

  1. Create a config.json file in the root of the theme
  2. Add database configuration like so:-
{
  "database": {
    "name": "wordpress",
    "user": "root"
  }
}

Grunt Commands

grunt watch (default)

The default grunt command is watch - it compiles SASS files on change.

grunt build

  1. Compiles SASS.
  2. Lints JavaScript files using JSHint
  3. Runs RequireJS optimizer including almond in the output
  4. Strips console logs from built JavaScript file
  5. Scans JavaScript and CSS files for Modernizr methods and classes and generates a custom Modernizr file accordingly
  6. Compresses the theme files (as well as minifiying images) into a package name and version labelled .zip file

grunt exportDatabase (requires MAMP)

  1. Edit the config.json file to reflect your local MySQL database setup.
  2. Run grunt exportDatabase to mysqldump contents of WordPress database (minus wp_users) into database/wordpress.sql.

grunt importDatabase (requires MAMP)

WARNING: KNOW WHAT THIS IS GOING TO DO BEFORE RUNNING IT!

  1. Edit the config.json file to reflect your local MySQL database setup.
  2. Run grunt importDatabase to import contents of database/wordpress.sql into your WordPress database.

Core Dependencies

Authors

TODO

  • OP-SY: Rename 'Home' to 'OP-SY'
  • 'An OP-SY Project' footer link directs to beta.i-dat.org as Network Home
  • 'Systems' to become 'System' on all OS sub-sites
  • Remove 'feeds' page from all except Eco-OS & OP-SY
  • Upload map image to contact page. @2x?
  • Upload supporter logos to information page
  • Add support for blurb as well as banner image on op-sy/projects
  • Add support for groups of thumbnail images w/lightbox. (Similar in size to OS logos on OP-SY)