Plugin Directory

Changeset 3310220


Ignore:
Timestamp:
06/12/2025 07:05:25 AM (10 months ago)
Author:
petmatchpro
Message:

v6.0.7 - Correct error processing RescueGroups videos plus initialization of partner API in public class.

Location:
petmatchpro/trunk
Files:
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • petmatchpro/trunk/CHANGE-LOG.txt

    r3308820 r3310220  
     1Version 6.0.7 - June 11, 2025
     2+ /includes/rg/class-pet-match-pro-rg-api.pp
     3    * Correct error processing videos when no videos exist.
     4+ /public/class-pet-match-pro-public.php
     5    * Require integration partner include file before initializing new class.
     6
    17Version 6.0.6 - June 7, 2025
    28+ /public/templates/af/adopt-profile-3-column.php
  • petmatchpro/trunk/README.txt

    r3308820 r3310220  
    66Requires at least: 6.0
    77Tested up to: 6.8
    8 Stable tag: 6.0.6
     8Stable tag: 6.0.7
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • petmatchpro/trunk/includes/rg/class-pet-match-pro-rg-api.php

    r3308820 r3310220  
    13111311        $numThumbs = $numPhotos;
    13121312           
    1313         if ( ($numThumbs <= $maxThumbs) && (array_key_exists(0, $detailsItem[constant('RESCUEGROUPS_VIDEOS')])) ) {
    1314             $videoCount = count($detailsItem[constant('RESCUEGROUPS_VIDEOS')]);
    1315             //echo 'There is/are ' . $videoCount . ' Video(s).<br>';
    1316             $videoCount = $videoCount - 1;
    1317             $counter = 0;
    1318             while ( ($numThumbs <= $maxThumbs) && ($counter <= $videoCount) ){
    1319                 //echo 'Processing Video Counter ' . $counter . ' with Thumb ' . $numThumbs . '<br>';   
    1320                 if (!empty($detailsItem[constant('RESCUEGROUPS_VIDEOS')][$counter][constant('RESCUEGROUPS_VIDEO_URL')])) {
    1321                     $animalDetails[constant('RESCUEGROUPS_VIDEOS')][] = $detailsItem[constant('RESCUEGROUPS_VIDEOS')][$counter][constant('RESCUEGROUPS_VIDEO_URL')];
    1322                     //echo 'Added Animal Video.<br>';
    1323                     $numThumbs = $numThumbs + 1;
    1324                 }
    1325                 $counter = $counter + 1;
     1313        if ( ($numThumbs <= $maxThumbs) && (is_array($detailsItem[constant('RESCUEGROUPS_VIDEOS')])) ) {
     1314            if (array_key_exists(0, $detailsItem[constant('RESCUEGROUPS_VIDEOS')])) {
     1315                $videoCount = count($detailsItem[constant('RESCUEGROUPS_VIDEOS')]);
     1316                //echo 'There is/are ' . $videoCount . ' Video(s).<br>';
     1317                $videoCount = $videoCount - 1;
     1318                $counter = 0;
     1319                while ( ($numThumbs <= $maxThumbs) && ($counter <= $videoCount) ){
     1320                    //echo 'Processing Video Counter ' . $counter . ' with Thumb ' . $numThumbs . '<br>';   
     1321                    if (!empty($detailsItem[constant('RESCUEGROUPS_VIDEOS')][$counter][constant('RESCUEGROUPS_VIDEO_URL')])) {
     1322                        $animalDetails[constant('RESCUEGROUPS_VIDEOS')][] = $detailsItem[constant('RESCUEGROUPS_VIDEOS')][$counter][constant('RESCUEGROUPS_VIDEO_URL')];
     1323                        //echo 'Added Animal Video.<br>';
     1324                        $numThumbs = $numThumbs + 1;
     1325                    }
     1326                    $counter = $counter + 1;
     1327                }
    13261328            }
    13271329        }
  • petmatchpro/trunk/pet-match-pro.php

    r3308820 r3310220  
    1414 * Plugin URI:          https://petmatchpro.com/plans
    1515 * Description:         Integrates animal search and details from your PetPoint/Petango, AnimalsFirst or RescueGroups account into your animal shelter or rescue website with simple shortcodes.
    16  * Version:             6.0.6
     16 * Version:             6.0.7
    1717 * Requires at least:   6.0
    1818 * Requires PHP:        7.4
     
    3232 * Current plugin version.
    3333 */
    34 define('PET_MATCH_PRO_VERSION', '6.0.6');
     34define('PET_MATCH_PRO_VERSION', '6.0.7');
    3535
    3636/* Define Global Variables */
  • petmatchpro/trunk/public/class-pet-match-pro-public.php

    r3308820 r3310220  
    5151        if ($this->integrationPartner == constant('PETPOINT')) {
    5252            $this->includePath = constant("PET_MATCH_PRO_PATH") . '/' . constant('INCLUDE_DIR') . '/' . constant('PETPOINT_DIR') . '/';
     53            $apiFile = 'class-' . constant('PMP_PLUGIN_NAME') . '-' . constant('PETPOINT_DIR') . '-api.php';
     54            require_once $this->includePath . $apiFile;
    5355            $this->PMP_API = new Pet_Match_Pro_PP_Api($this->PartnerAPIKey, $this->PMPlicense);
    5456            $this->animalID = 'animal' . strtoupper(constant('PETPOINT_ID'));
     
    5658            $this->includePath = constant("PET_MATCH_PRO_PATH") . '/' . constant('INCLUDE_DIR') . '/' . constant('RESCUEGROUPS_DIR') . '/';     
    5759            //echo 'Partner API Key ' . $this->PartnerAPIKey . '<br>';
     60            $apiFile = 'class-' . constant('PMP_PLUGIN_NAME') . '-' . constant('RESCUEGROUPS_DIR') . '-api.php';
     61            require_once $this->includePath . $apiFile;         
    5862            $this->PMP_API = new Pet_Match_Pro_RG_Api($this->PartnerAPIKey, $this->PMPlicense);
    5963            $this->animalID = str_replace(constant('ID'), strtoupper(constant('ID')), constant('RESCUEGROUPS_ID'));             
     
    6165            $this->includePath = constant("PET_MATCH_PRO_PATH") . '/' . constant('INCLUDE_DIR') . '/' . constant('ANIMALSFIRST_DIR') . '/';     
    6266            //echo 'Partner API Key ' . $this->PartnerAPIKey . '<br>';
     67            $apiFile = 'class-' . constant('PMP_PLUGIN_NAME') . '-' . constant('ANIMALSFIRST_DIR') . '-api.php';
     68            require_once $this->includePath . $apiFile;         
    6369            $this->PMP_API = new Pet_Match_Pro_AF_Api($this->PartnerAPIKey, $this->PMPlicense);
    6470            $this->animalID = constant('ANIMALSFIRST_ID');             
Note: See TracChangeset for help on using the changeset viewer.