Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

pcraig3/usc-clubs

Repository files navigation

=== USC Clubs ===
Contributors: pcraig3
Tags: clubs list, beta
Requires at least: 3.6
Tested up to: 4.0
Stable tag: 2.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Bespoke USC plugin beams in some JSON Clubs originally from Westernlink; creates archive and single club pages.

== Description ==

Bespoke USC plugin beams in some JSON Clubs originally from Westernlink; creates archive and single club pages.

Relies on the existence of the Collapseomatic and the external api with WesternLink stuff.

It's kind of a proof of concept: use wordpress shortcodes to pull in data stored on github.
This would give you a backend api that anyone could use.

Also hacks the search to push clubs found after obvious club searches into the search results.

== Frequently Asked Questions ==

= Why doesn't it work yet? =

It does!  Ha!

= Does it make any sense to do this? =

It took me a long time.  So 'yes.'

== Changelog ==

= 2.2.1 =
* Commented like nuts
* Updated usc_clubs-list view such that without JS events without categories don't show up and count reflects that
* Added API link on plugins page.
* Clubs counter is slightly more intelligent.

= 2.2.0 =
* Clubs can now be searched for using the main site search bar. (Which was hard and is awesome.)
* CSS tweaks to single clubs more in line with the rest of the theme
* Changed the location of the clubs API so that everything locally comes from the same root URL

= 2.1.1 =
* Single Club page now has more clear social icons
* Object cache status saved sooner to forestall any bugs
* Clubs 'count' shortcode now returns number of clubs with categories assigned

= 2.1.1 =
* Added JQuery Accordion to Filters on mobile version.

= 2.1.0 =
* Another biggish update.  Mostly I forgot to update the version.
* * Single template basically finished.
* * Single clubs now called by going to /clubs/clubs-list/{id}
* * API result for single clubs cached, not saved asynchronously though.
* * Added a widget area for single clubs
* * Updated club Urls so they look better in the browser
* * OH YEAH AND FIXED THE OBJECT CACHE ISSUE WHICH WAS BREAKING MY PLUGINS

= 2.0.0 =
* Changed quite a bit structurally.  Ahem.
* * Single template renamed and re-structured so that it might be called be WordPress itself (more easily).
* * Query var now 'usc_clubs' rather than clubsapi
* * Shortcode now 'usc_clubs' rather than 'testplugin'
* * No longer calling clubs api from template.
* * WordPress default 'main' query totally cancelled on single club pages.
* * Single clubs now called by going to /clubs/clubs-list/{id}
* * WP_AJAX file created (in its own namespace) to do async stuff, get all API results, and also manage transients.
* * API result cached, and automatically saved asyncronously if not found in cache. (Read: this is super cool.)
* * Due to some limitations in WesternLink's architecture, we're having JavaScript build our filter checkboxes.
* * Clubs list page also built first for non-JS people and then (if JS) rebuilt with filterJS search tools.
* * "All" checkbox included again.
*
* I guess that's it.

= 1.4.0 =
* Renaming everything.  Hopefully it all still works.
* Making it not work comes later.

= 1.3.0 =
* Styled my dynamic pages, added the flag object, fontawesome icons, and linked everything together.

= 1.2.0 =
* Figured out how to create custom, dynamically-generated pages.

= 1.1.1 =
* commenting.

= 1.1.0 =
* Plugin connects to API which pulls information from github.

= 1.0.1 =
* Using shortcodes instead of string substitution.

= 1.0.0 =
* Got basic word substitution working.

= 0.9 =
* Totally new.  Renaming everything.

== Upgrade Notice ==

= 0.9 =
Please don't use this version for anything.

== Where it's due ==

The basic structure of this plugin was cloned from the [WordPress-Plugin-Boilerplate](https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate) project.

About

Lists and pages of clubs from the USC's westernlink account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published