=== PetPress ===
Contributors: brygs
Tags: animal shelter, animals, pets, PetPoint, adoptable pets
Donate link: paypal.me/airdriemedia
Requires at least: 5.7
Tested up to: 5.9.1
Stable tag: 1.3.2
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
PetPress allows PetPoint users to create lists and detail pages for animals in their shelter(s).
== Description ==
PetPress allows PetPoint users to create lists and detail pages for animals in their shelter(s). By using a shortcode, you can list animals in a shelter location by species, or you can show the details of an individual animal. Results pulled from PetPoint are cached in the local database for faster recovery (check www.airdriemedia.com/petpress for more information).
== Installation ==
1) Contact PetPoint and request that web services be turned on for your organization. https://pethealth.force.com/community/s/contactsupport
2) Install and activate PetPress plug-in.
3) Under settings->PetPress, enter your PetPoint authorization key (found in PetPoint at "Admin > Admin Options > Setup > Online Animal Listing Options").
4) Create a Wordpress page with a shortcode, eg: [PETPRESS site="5555" species="1"] (to show dogs in site 5555 ... use your own site(s) here, or "0" to show all animals).
5) See www.airdriemedia.com/petpress for more options.
== Screenshots ==
1. Animal list page
2. Animal detail page
3. Settings page
== Changelog ==
Version 1.3.2:
1) Added "loading" spinner animation when rosters are built or retrieved.
2) Added other types of animals: small and furry, pigs, reptiles, bird, barnyard. All PetPoint animal types now supported.
3) Added "Adoption Pending" flag for animals whose PetPoint "stage" value begins with "Adopted"
4) Added secondary breed to detail page. Note that if primary breed is a mix, then the secondary breed is not shown.
5) Added the ability to customize the accent colors for male, female, and unknown animals.
6) Fixed Facebook open graph data so that individual animals can be posted in Facebook (though this will be undone by Yoast and perhaps other SEO plugins that set their own canonical URLs)
7) New shortcode parameter, "showsite" will show site on the list and detail pages even if the setting is turned off globally.
8) Bug fix: Custom cache length may have been ignored in favor of the default.
9) Bug fix: "Other Animals" were being displayed, but they were being called "1003s".
10) Minor CSS changes to avoid wrapping issues with the list view.
Version 1.3.1:
1) Bug fix: Resolves an issue in which animals added/removed from PetPoint were not being added/removed from the PetPress rosters.
2) Minor UI: changed "memo" classname to "pp_memo" to keep class names consistent.
Version 1.3:
1) Improved caching for multi-site organizations.
2) Added Rabbits and Horses as species that can be listed.
3) Added option to randomize the photos used on the list page.
4) Page titles on detail pages list name, species and breed.
5) Removed the auto-generated list headings. Note that the "heading" shortcode parameter can be used to create list headings.
6) To facilitate editing of web pages, the shortcode returns nothing while in the DIVI front-end editor or in admin pages.
7) Additional CSS fixes
Version 1.2.1:
1) Small change to facilitate faster loading of pages in the Wordpress editor.
Version 1.2:
1) Added "site" and "price" as displayable fields.
2) Added "heading" as a shortcode parameter. If specified, this overrides the auto-generated “Dogs at Rescues-R-Us” heading at the top of list pages.
3) New CSS for list pages adjusts the size of the tiles for a better fit.
4) Bug fix: Resolves an issue discovered for websites using the Themify Builder that resulted in the lists of animals sometimes showing each animal twice. It is unknown if the problem extended beyond the Themify Builder.
5) Bug fix: Animal names longer than 14 characters will show 12 characters plus an ellipsis (“…”) so that the list page layout is not disrupted.
Version 1.1:
1) Bug fix: Prior to fix, sometimes PetPoint would be called for an individual animal's record even though there was a cached item recent enough to use instead.
2) Added "sort" as a shortcode parameter. Valid values are "age", "name", and "weight". Default sort is by name. Sort parameter in querystring gets precedence over sort parameter in shortcode.
3) Added "housetrained" and "on hold" as displayable fields.
4) Changed "video" icon from an image to a WordPress dashicon.
5) Added test to make sure that "site" parameter is numeric.
6) Re-stated minimum WP requirement from 5.8 to 5.7 after testing with 5.7.
Version 1.0: Initial production version.