Plugin Directory

Changeset 3229776


Ignore:
Timestamp:
01/27/2025 04:41:49 PM (14 months ago)
Author:
brygs
Message:

Version 2.0.1 Bug fix for days in information (detail page), css (list page)

Location:
petpress
Files:
507 added
12 edited

Legend:

Unmodified
Added
Removed
  • petpress/trunk/petpress.php

    r3225802 r3229776  
    44* Plugin Name:      PetPress
    55* Plugin URI:       https://www.airdriemedia.com/petpress
    6 * Version:          2.0.0
     6* Version:          2.0.1
    77* Description:      Display animal lists and details from PetPoint or PetFinder on your website
    88* Author:           Airdrie Media
     
    1212*
    1313*/
    14 const kVersion = "2.0.0";
     14const kVersion = "2.0.1";
    1515if ( !function_exists( 'pp_fs' ) ) {
    1616    function pp_fs() {
     
    397397        }
    398398        $videoicon = "";
     399        $h .= '<span class="ppListItemBreed">';
    399400        if ( strlen( $cBreed ) > 32 ) {
    400401            $h .= substr( $cBreed, 0, 30 ) . $videoicon . "...<br>\n";
     
    402403            $h .= $cBreed . $videoicon . "<br>\n";
    403404        }
    404         $h .= "<b>Age:</b> {$vitals[0]}<br>";
    405         $h .= "<b>Sex:</b> {$vitals[1]}<br>";
     405        $h .= "</span>";
     406        $h .= "<span class='ppListItemAge'><b>Age:</b> {$vitals[0]}<br></span>";
     407        $h .= "<span class='ppListItemSex'><b>Sex:</b> {$vitals[1]}<br></span>";
     408        $h .= "<span class='ppListItemSizeWeight'>";
    406409        if ( isset( $vitals[2] ) ) {
    407410            if ( $optSizeWeight ) {
     
    411414            }
    412415        }
     416        $h .= "</span>";
    413417        if ( $optDaysIn ) {
    414418            $daysIn = $critter->get_daysin();
    415419            if ( !empty( $daysIn ) ) {
     420                $h .= "<span class='ppListItemStay'>";
    416421                $h .= "<b>Stay:</b> " . ppUtils::formatTimeSpan( $critter->get_daysin() ) . "<br>\n";
     422                $h .= "</span>";
    417423            }
    418424        }
  • petpress/trunk/pp-Animal.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppAnimal')) {
    33class ppAnimal {
    44    private $id;
     
    483483
    484484}
     485}
  • petpress/trunk/pp-DB.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppDB')) {
    33class ppDB {
    44    private $instantiated;
     
    184184    }
    185185}
     186}
  • petpress/trunk/pp-DataSource.php

    r3225802 r3229776  
    11<?php
     2if (!class_exists('ppDataSource')) {
    23abstract class ppDataSource {
    34    abstract protected function getRosterFromSource($speciesIN, $siteIN, $forceRefreshIN);
     
    331332    }
    332333}
     334}
  • petpress/trunk/pp-DetailPage.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppDetailPage')) {
    33class ppDetailPage {
    44/*
     
    132132       
    133133
    134         if (ppUtils::optionChecked("foster")){
     134        if (ppUtils::optionChecked("daysin")){
    135135            $cDaysIn = $critter->get_daysin();
    136136            $h .= " and has been with us for <span data-daysin='{cDaysIn} days'>{$cDaysIn} days</span>" ;
     
    454454
    455455}
     456}
  • petpress/trunk/pp-Options.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('options')) {
    33class ppOptions {
    44    private $options;
     
    685685    }
    686686}
    687 
    688 
    689 
     687}
     688
     689
  • petpress/trunk/pp-PetFinder.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppDataSource')) {
    33class ppPetFinder extends ppDataSource {
    44    private $authkey;
     
    276276    }
    277277}
     278}
  • petpress/trunk/pp-PetPoint.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppPetPoint')) {
    33class ppPetPoint extends ppDataSource {
    44    private $authkey;
     
    290290 
    291291}
     292}
  • petpress/trunk/pp-Roster.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppRoster')) {
    33class ppRoster{
    44    private $species;
     
    66    private $site;
    77}
     8}
  • petpress/trunk/pp-Stats.php

    r3225802 r3229776  
    11<?php
    2 
     2if (!class_exists('ppStats')) {
    33class ppStats{
    44    private $db;
     
    8787    }
    8888}
     89}
  • petpress/trunk/pp-Utilities.php

    r3225802 r3229776  
    11<?php
     2if (!class_exists('ppUtils')) {
    23class ppUtils {
    34
     
    364365
    365366}
     367}
  • petpress/trunk/readme.txt

    r3225802 r3229776  
    55Requires at least: 5.7
    66Tested up to: 6.7
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88Requires PHP: 7.4
    99License: GPL v2 or later
     
    25251. Animal list page
    26262. Animal detail page
    27 3. Supports all PetPoint animal types
     273. Settings page
     28
     29== Changelog ==
     30Version 2.0.1
     311) BUG FIX: message regarding length of stay was missing from detail page.
     322) Additional css attributes on list page
    2833
    2934== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.