Photos Support Plugin for shupe.ca
This plugin utilizes a web service to produce a photo gallery. The webservice was created by me to handle remote storage of photos and will return location and image meta data.
This plugin will not be of much use to anyone other than myself as it is designed to work only with this site. Others may may find it useful as a learning tool.
Download:
Download the latest version here.
Revision History:
| version 1.0 | Initial Release |
| version 1.1 | Bug Fix for generic templates |
| version 2.0 | Changed to using class structure |
| version 2.1 | Made the path parameter optional for
ShupeCaPhotoSupport::is_picture() |
| version 2.2 | Added Sidebar Widget |
| version 2.3 | Added action to init to handle missing posts this code was in the 404 page template. |
| version 2.4 | Dealt with issues on trackbacks and feed urls on 404 handler. |
| version 2.5 | Added Options Page. |
| version 2.6 | Bug Fix for adding photos under the folders category. |
| version 2.7 | Added alt tag to img for the widget. Also added support for templated XSLs to be in a subdirectory. |
| version 2.8 | Adds CSS info automatically to the header. |
| version 2.9 | Made plugin identifier functions universal for all plugins. |
Installation:
- Copy the directory rjs-photo-support and all it’s contents to the WordPress plugins directory on your server, (%WORDPRESS PATH%/wp-contents/plugins/).
- You will then need to activate the plugin from the WordPress administration plugins page.
- Adjust the options as nessary.
- Create a placeholder page with a Title of “Photos” and a post-slug of “photos”. Permalinks must be turned on.
Usage:
- A few methods are exposed and can be called from templates or plugins.
ShupeCaPhotoSupport::is_photo_uri()
Returns boolean if current uri is on the photo path.
ShupeCaPhotoSupport::is_picture(sRequestedPath)
Returns boolean if the path is for a single image page. The parameter sRequestedPath is optional and defaults to the curent URI.
ShupeCaPhotoSupport::photo_path()
Returns the photo path root (http://www.shupe.ca/photos).
Rodney

2 Comments
Leave a comment