CSS PHP JavaScript Ruby
Switch branches/tags
Nothing to show
Clone or download
johnathan99j Update committee for 2018-19
Note: Not not active yet
Also did some tidying
Latest commit 0a2c589 May 10, 2018
Permalink
Failed to load latest commit information.
assets Added app info page Jul 15, 2016
fonts Add Milocha font to logo to appease the masses Apr 30, 2016
images Fix some typos May 10, 2018
includes Added ability to shrink and expand listen now on all pages May 11, 2016
js Remove carousel and update cover image Jan 1, 2017
sass Fix glow bug on header Oct 11, 2017
.gitignore Add .sublime-project and .sublime-workspace files to gitignore Aug 16, 2015
.scss-lint.yml Temporarily disable 'declaration order' linter rule to fix schedule d… Apr 30, 2016
404.php Small tweak to 404 wording. Jul 15, 2016
Gruntfile.js When dumping remote mysql db, store in home dir Feb 4, 2016
LICENSE.md Create LICENSE.md Jul 20, 2016
README.md Fix typo in README May 20, 2016
app.php Minor correction to video border Jul 16, 2016
author.php Add seperator to author page for posts Jul 26, 2016
blogs.php Minor refactoring to site Nov 9, 2016
committee.php Update committee for 2018-19 May 10, 2018
config.rb Make sass output expanded to keep block comments Feb 28, 2016
editor-style.css Fixed some errors in the scss Sep 20, 2016
footer.php Update footer.php Nov 9, 2017
functions.php Remove carousel and update cover image Jan 1, 2017
header.php Updated favicons #39 Nov 24, 2016
home.php Update promo & edit Spotify playlist Jan 26, 2018
index.php Move homepage content to home.php and leave index.php as fallback for… Sep 13, 2015
music.php Add embedded spotify playlist to Your Music Nov 12, 2016
package.json Update npm dependencies to close #85 Jan 17, 2017
page.php Wrap page.php in main-content Sep 13, 2015
podcasts.php Change default <p> size to 1em May 18, 2016
schedule.php Display flex items in rows for schedule icons May 24, 2016
screenshot.png Update screenshot and remove unused urls from README Apr 30, 2016
shows.php Minor refactoring to site Nov 9, 2016
single.php Minor refactoring to site Nov 9, 2016
stream.php Updated favicons #39 Nov 24, 2016
style.css Fix glow bug on header Oct 11, 2017
taxonomy-shows.php Added show image to show pages Nov 22, 2016
urn-tv.php Changed URN TV, featured playlist to Varsity Apr 30, 2016
your-news.php Fixed padding error on Your-News Sep 19, 2016

README.md

URN-Material

The URN WordPress theme

Theme preview

Quick Start

Note: The following presumes that you already have a mysql and apache server installed locally.

  1. Install Node.js from https://nodejs.org/en/ then run npm install from the command line at the project root
  2. Run npm install -g grunt-cli to install grunt and grunt plugins
  3. Install Ruby for your OS and make sure to check the option to add it to your PATH variable if on Windows
  4. Run gem update --system
  5. Run gem install scss_lint
  6. Run npm install grunt-scss-lint
  7. Run gem install compass
  8. Run npm install grunt-contrib-compass
  9. Run grunt from the command line within the project directory to start watching the project
  10. Grunt should now compile your CSS as you edit the SCSS files

Grunt

grunt mirror

Presuming you're running a linux system, get a complete mirror of the live WordPress database locally.

Requirements:
  • Have urn ssh alias set
  • Set the $URNLOCAL environment variable to the local development url (e.g. http://localhost or http://urn.local)
  • Local MySQL username: root
  • Local MySQL password: password

grunt --force

Keep tasks running even if the SCSS lint fails (useful for development when CSS is still in-progress but make sure the linter passes before committing any SASS)

Hooks

In order for pushes to this repository (and child theme repositories) to automatically update the live version of the site, a webhook is used to send a POST request to http://urn1350.net/hook.php when commits are pushed. The hook.php script then executes /var/www/pull.sh.

hook.php

<?php echo shell_exec('../pull.sh');

pull.sh

#!/bin/sh

cd /var/www/html/wp-content/themes/urn-material;
git checkout master;
git pull 2>&1;

echo '<br>';

cd /var/www/html/wp-content/themes/urn-material-su-elections;
git checkout master;
git pull 2>&1;

echo '<br>';

cd /var/www/html/wp-content/themes/urn-material-varsity;
git checkout master;
git pull 2>&1;

echo '<br>';