Plugin Directory

Changeset 2862276


Ignore:
Timestamp:
02/08/2023 07:47:56 PM (3 years ago)
Author:
vohotv
Message:

1.0.3 release

Location:
manageimmo
Files:
266 added
7 edited

Legend:

Unmodified
Added
Removed
  • manageimmo/trunk/includes/manageimmo-property-functions.php

    r2862240 r2862276  
    162162            'attachments'          => $attachments,
    163163
    164             'contact_id'           => absint( $contact->{'@id'}                           ?? '' ),
    165             'contact_email'        => sanitize_email( $contact->email                     ?? '' ),
    166             'contact_first_name'   => sanitize_text_field( $contact->firstname            ?? '' ),
    167             'contact_last_name'    => sanitize_text_field( $contact->lastname             ?? '' ),
    168             'contact_phone_number' => sanitize_text_field( $contact->phoneNumber          ?? '' ),
    169             'contact_street'       => sanitize_text_field( $contact->address->street      ?? '' ),
    170             'contact_house_number' => sanitize_text_field( $contact->address->houseNumber ?? '' ),
    171             'contact_postcode'     => sanitize_text_field( $contact->address->postcode    ?? '' ),
    172             'contact_city'         => sanitize_text_field( $contact->address->city        ?? '' ),
    173             'contact_title'        => sanitize_text_field( $contact->title                ?? '' ),
    174             'contact_company'      => sanitize_text_field( $contact->company              ?? '' ),
    175             'contact_portrait_url' => sanitize_text_field( $contact->portraitUrl          ?? '' ),
     164            'contact_id'           => absint( $contact->{'@id'}                                                          ?? '' ),
     165            'contact_email'        => sanitize_email( $contact->email                                                    ?? '' ),
     166            'contact_first_name'   => sanitize_text_field( $contact->firstname                                           ?? '' ),
     167            'contact_last_name'    => sanitize_text_field( $contact->lastname                                            ?? '' ),
     168            'contact_phone_number' => sanitize_text_field( $contact->phoneNumber                                         ?? '' ),
     169            'contact_street'       => sanitize_text_field( $contact->address->street                                     ?? '' ),
     170            'contact_house_number' => sanitize_text_field( $contact->address->houseNumber                                ?? '' ),
     171            'contact_postcode'     => sanitize_text_field( $contact->address->postcode                                   ?? '' ),
     172            'contact_city'         => sanitize_text_field( $contact->address->city                                       ?? '' ),
     173            'contact_title'        => sanitize_text_field( $contact->title                                               ?? '' ),
     174            'contact_company'      => sanitize_text_field( $contact->company                                             ?? '' ),
     175            'contact_portrait_url' => sanitize_text_field( manageimmo_img_url_to_original_img_url( $contact->portraitUrl ?? '' ) ),
    176176
    177177            'number_of_floors'      => absint( $property->numberOfFloors                                            ?? 0 ),
     
    417417    return in_array( $property_id, manageimmo_get_saved_properties() );
    418418}
     419
     420/**
     421 * Convert the image URL to a original image URL by removing all gibberish after /ORIG from the URL.
     422 *
     423 * @since 1.0.0
     424 *
     425 * @param  string $img_url
     426 * @return string
     427 */
     428function manageimmo_img_url_to_original_img_url( $img_url ) {
     429    $offset = strpos( $img_url, '/ORIG' );
     430
     431    if( false === $offset ) {
     432        return '';
     433    }
     434
     435    return substr( $img_url, 0, $offset ) . '/ORIG';
     436}
  • manageimmo/trunk/manageimmo.php

    r2862240 r2862276  
    44 * Plugin Name:       ManageImmo
    55 * Description:       An Immoscout24 API intergration for WordPress.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Requires at least: 5.3
    88 * Requires PHP:      7.4
  • manageimmo/trunk/readme.txt

    r2862240 r2862276  
    44Requires at least: 5.3
    55Tested up to: 6.1.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    2727== Changelog ==
    2828
     29= 1.0.3 =
     30* Use the original portraitUrl size.
     31
    2932= 1.0.2 =
    3033* Changed to portraitUrl for the picture instead of realtorLogo.
  • manageimmo/trunk/vendor/autoload.php

    r2862240 r2862276  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInit012dafa1939019240c4f826029d47b39::getLoader();
     12return ComposerAutoloaderInit4eadb546c600b599648137ffb89b6d4c::getLoader();
  • manageimmo/trunk/vendor/composer/autoload_real.php

    r2862240 r2862276  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit012dafa1939019240c4f826029d47b39
     5class ComposerAutoloaderInit4eadb546c600b599648137ffb89b6d4c
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit012dafa1939019240c4f826029d47b39', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit4eadb546c600b599648137ffb89b6d4c', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit012dafa1939019240c4f826029d47b39', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit4eadb546c600b599648137ffb89b6d4c', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit012dafa1939019240c4f826029d47b39::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit4eadb546c600b599648137ffb89b6d4c::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • manageimmo/trunk/vendor/composer/autoload_static.php

    r2862240 r2862276  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit012dafa1939019240c4f826029d47b39
     7class ComposerStaticInit4eadb546c600b599648137ffb89b6d4c
    88{
    99    public static $classMap = array (
     
    3131    {
    3232        return \Closure::bind(function () use ($loader) {
    33             $loader->classMap = ComposerStaticInit012dafa1939019240c4f826029d47b39::$classMap;
     33            $loader->classMap = ComposerStaticInit4eadb546c600b599648137ffb89b6d4c::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • manageimmo/trunk/vendor/composer/installed.php

    r2862240 r2862276  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'abb1c976b8037d187ff9b52e4c87275d94284509',
     8        'reference' => '5c7b39252f34c096dadd83213028cfb7ac2c97b9',
    99        'name' => '__root__',
    1010        'dev' => true,
     
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'abb1c976b8037d187ff9b52e4c87275d94284509',
     19            'reference' => '5c7b39252f34c096dadd83213028cfb7ac2c97b9',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.