Plugin Directory

Changeset 2846829


Ignore:
Timestamp:
01/11/2023 02:34:54 PM (3 years ago)
Author:
ownerrez
Message:

Update to version 1.1.14 from GitHub

Location:
ownerrez
Files:
2 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ownerrez/tags/1.1.14/lib/autoload.php

    r2753814 r2846829  
    44
    55if (PHP_VERSION_ID < 50600) {
    6     echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
    7     exit(1);
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit471966cf087c00d83203268549f1513a::getLoader();
     25return ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8::getLoader();
  • ownerrez/tags/1.1.14/lib/composer/ClassLoader.php

    r2723507 r2846829  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
    109113    }
    110114
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            (self::$includeFile)($file);
    429433
    430434            return true;
     
    556560        return false;
    557561    }
     562
     563    private static function initializeIncludeClosure(): void
     564    {
     565        if (self::$includeFile !== null) {
     566            return;
     567        }
     568
     569        /**
     570         * Scope isolated include.
     571         *
     572         * Prevents access to $this/self from included files.
     573         *
     574         * @param  string $file
     575         * @return void
     576         */
     577        self::$includeFile = static function($file) {
     578            include $file;
     579        };
     580    }
    558581}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • ownerrez/tags/1.1.14/lib/composer/autoload_real.php

    r2753814 r2846829  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit471966cf087c00d83203268549f1513a
     5class ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit471966cf087c00d83203268549f1513a', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit471966cf087c00d83203268549f1513a', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit471966cf087c00d83203268549f1513a::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit471966cf087c00d83203268549f1513a::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire471966cf087c00d83203268549f1513a($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$files;
     37        $requireFile = static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        };
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            ($requireFile)($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequire471966cf087c00d83203268549f1513a($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • ownerrez/tags/1.1.14/lib/composer/autoload_static.php

    r2753814 r2846829  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit471966cf087c00d83203268549f1513a
     7class ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8
    88{
    99    public static $files = array (
     
    7676    {
    7777        return \Closure::bind(function () use ($loader) {
    78             $loader->prefixLengthsPsr4 = ComposerStaticInit471966cf087c00d83203268549f1513a::$prefixLengthsPsr4;
    79             $loader->prefixDirsPsr4 = ComposerStaticInit471966cf087c00d83203268549f1513a::$prefixDirsPsr4;
    80             $loader->classMap = ComposerStaticInit471966cf087c00d83203268549f1513a::$classMap;
     78            $loader->prefixLengthsPsr4 = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$prefixLengthsPsr4;
     79            $loader->prefixDirsPsr4 = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$prefixDirsPsr4;
     80            $loader->classMap = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$classMap;
    8181
    8282        }, null, ClassLoader::class);
  • ownerrez/tags/1.1.14/ownerrez.php

    r2753814 r2846829  
    1717 * Plugin URI:        https://www.ownerreservations.com/support/wordpress
    1818 * Description:       The official WordPress plugin for the OwnerRez API.
    19  * Version:           1.1.13
     19 * Version:           1.1.14
    2020 * Author:            OwnerRez, Inc.
    2121 * Author URI:        https://www.ownerreservations.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('OWNERREZ_VERSION', '1.1.13');
     38define('OWNERREZ_VERSION', '1.1.14');
    3939
    4040/**
  • ownerrez/tags/1.1.14/public/class-ownerrez-shortcodes.php

    r2753806 r2846829  
    329329//            wp_enqueue_style("ownerrez-lgstyle", "https://hosteddev.ownerrez.com/content/lgbundle.min.css", null, $this->version);
    330330//            wp_enqueue_script("ownerrez-lgscript", "https://hosteddev.ownerrez.com/scripts/lgbundle.min.js", array( 'jquery' ), $this->version);
    331             wp_enqueue_script("ownerrez-photo-carousel.js", plugins_url('/ownerrez/public/js/ownerrez-photo-carousel.js'), array( 'jquery' ), $this->version);
    332331
    333332            $this->photoCarouselEnqueued = true;
  • ownerrez/tags/1.1.14/public/js/ownerrez-public.js

    r2450742 r2846829  
    22    'use strict';
    33
    4     /**
    5      * All of the code for your public-facing JavaScript source
    6      * should reside in this file.
    7      *
    8      * Note: It has been assumed you will write jQuery code here, so the
    9      * $ function reference has been prepared for usage within the scope
    10      * of this function.
    11      *
    12      * This enables you to define handlers, for when the DOM is ready:
    13      *
    14      * $(function() {
    15      *
    16      * });
    17      *
    18      * When the window is loaded:
    19      *
    20      * $( window ).load(function() {
    21      *
    22      * });
    23      *
    24      * ...and/or other possibilities.
    25      *
    26      * Ideally, it is not considered best practise to attach more than a
    27      * single DOM-ready or window-load handler for a particular page.
    28      * Although scripts in the WordPress core, Plugins and Themes may be
    29      * practising this, we should strive to set a better example in our own work.
    30      */
     4    $(function() {
     5
     6        // initialize carousel
     7        $(".ownerrez-photo-carousel").each(function () {
     8            var loadingPager = $(this).nextAll("ul.loading-pager");
     9            var carousel = this;
     10
     11            $(this).lightSlider({
     12                gallery: true,
     13                item: 1,
     14                loop: true,
     15                auto: true,
     16                pause: 5000,
     17                thumbItem: 6,
     18                slideMargin: 0,
     19                galleryMargin: 0,
     20                thumbMargin: 0,
     21                enableDrag: false,
     22                mode: 'fade',
     23                onSliderLoad: function (el) {
     24                    loadingPager.remove();
     25                    lightGallery(el.get(0), {
     26                        licenseKey: "5CD6B56C-064145F1-A29A5203-5655C26F",
     27                        selector: '.ownerrez-photo-carousel .lslide',
     28                        preload: 4,
     29                        plugins: [lgVideo, lgThumbnail],
     30                        loadYouTubeThumbnail: false,
     31                        gotoNextSlideOnVideoEnd: false,
     32                        youTubePlayerParams: {
     33                            modestbranding: 1,
     34                            iv_load_policy: 3
     35                        }
     36                    });
     37
     38                    $("li", carousel).css("height", "100%");
     39                },
     40                prevHtml: '<span class="ownerrez-photo-carousel-prev lg-prev lg-icon"></span>',
     41                nextHtml: '<span class="ownerrez-photo-carousel-next lg-next lg-icon"></span>'
     42            }).removeClass("loading-slider");
     43        });
     44    });
    3145
    3246})( jQuery );
  • ownerrez/tags/1.1.14/readme.txt

    r2753814 r2846829  
    3333
    3434== Changelog ==
     35= 1.1.14 =
     36- Initialize carousel even when WP is configured to add scripts html head.
     37
    3538= 1.1.13 =
    3639- Webhooks now always return the correct http code.
  • ownerrez/trunk/lib/autoload.php

    r2753814 r2846829  
    44
    55if (PHP_VERSION_ID < 50600) {
    6     echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
    7     exit(1);
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit471966cf087c00d83203268549f1513a::getLoader();
     25return ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8::getLoader();
  • ownerrez/trunk/lib/composer/ClassLoader.php

    r2723507 r2846829  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
    109113    }
    110114
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            (self::$includeFile)($file);
    429433
    430434            return true;
     
    556560        return false;
    557561    }
     562
     563    private static function initializeIncludeClosure(): void
     564    {
     565        if (self::$includeFile !== null) {
     566            return;
     567        }
     568
     569        /**
     570         * Scope isolated include.
     571         *
     572         * Prevents access to $this/self from included files.
     573         *
     574         * @param  string $file
     575         * @return void
     576         */
     577        self::$includeFile = static function($file) {
     578            include $file;
     579        };
     580    }
    558581}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • ownerrez/trunk/lib/composer/autoload_real.php

    r2753814 r2846829  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit471966cf087c00d83203268549f1513a
     5class ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit471966cf087c00d83203268549f1513a', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit471966cf087c00d83203268549f1513a', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit086fb7da0edbe87de691a5092fbd16c8', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit471966cf087c00d83203268549f1513a::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit471966cf087c00d83203268549f1513a::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire471966cf087c00d83203268549f1513a($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$files;
     37        $requireFile = static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        };
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            ($requireFile)($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequire471966cf087c00d83203268549f1513a($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • ownerrez/trunk/lib/composer/autoload_static.php

    r2753814 r2846829  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit471966cf087c00d83203268549f1513a
     7class ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8
    88{
    99    public static $files = array (
     
    7676    {
    7777        return \Closure::bind(function () use ($loader) {
    78             $loader->prefixLengthsPsr4 = ComposerStaticInit471966cf087c00d83203268549f1513a::$prefixLengthsPsr4;
    79             $loader->prefixDirsPsr4 = ComposerStaticInit471966cf087c00d83203268549f1513a::$prefixDirsPsr4;
    80             $loader->classMap = ComposerStaticInit471966cf087c00d83203268549f1513a::$classMap;
     78            $loader->prefixLengthsPsr4 = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$prefixLengthsPsr4;
     79            $loader->prefixDirsPsr4 = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$prefixDirsPsr4;
     80            $loader->classMap = ComposerStaticInit086fb7da0edbe87de691a5092fbd16c8::$classMap;
    8181
    8282        }, null, ClassLoader::class);
  • ownerrez/trunk/ownerrez.php

    r2753814 r2846829  
    1717 * Plugin URI:        https://www.ownerreservations.com/support/wordpress
    1818 * Description:       The official WordPress plugin for the OwnerRez API.
    19  * Version:           1.1.13
     19 * Version:           1.1.14
    2020 * Author:            OwnerRez, Inc.
    2121 * Author URI:        https://www.ownerreservations.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('OWNERREZ_VERSION', '1.1.13');
     38define('OWNERREZ_VERSION', '1.1.14');
    3939
    4040/**
  • ownerrez/trunk/public/class-ownerrez-shortcodes.php

    r2753806 r2846829  
    329329//            wp_enqueue_style("ownerrez-lgstyle", "https://hosteddev.ownerrez.com/content/lgbundle.min.css", null, $this->version);
    330330//            wp_enqueue_script("ownerrez-lgscript", "https://hosteddev.ownerrez.com/scripts/lgbundle.min.js", array( 'jquery' ), $this->version);
    331             wp_enqueue_script("ownerrez-photo-carousel.js", plugins_url('/ownerrez/public/js/ownerrez-photo-carousel.js'), array( 'jquery' ), $this->version);
    332331
    333332            $this->photoCarouselEnqueued = true;
  • ownerrez/trunk/public/js/ownerrez-public.js

    r2450742 r2846829  
    22    'use strict';
    33
    4     /**
    5      * All of the code for your public-facing JavaScript source
    6      * should reside in this file.
    7      *
    8      * Note: It has been assumed you will write jQuery code here, so the
    9      * $ function reference has been prepared for usage within the scope
    10      * of this function.
    11      *
    12      * This enables you to define handlers, for when the DOM is ready:
    13      *
    14      * $(function() {
    15      *
    16      * });
    17      *
    18      * When the window is loaded:
    19      *
    20      * $( window ).load(function() {
    21      *
    22      * });
    23      *
    24      * ...and/or other possibilities.
    25      *
    26      * Ideally, it is not considered best practise to attach more than a
    27      * single DOM-ready or window-load handler for a particular page.
    28      * Although scripts in the WordPress core, Plugins and Themes may be
    29      * practising this, we should strive to set a better example in our own work.
    30      */
     4    $(function() {
     5
     6        // initialize carousel
     7        $(".ownerrez-photo-carousel").each(function () {
     8            var loadingPager = $(this).nextAll("ul.loading-pager");
     9            var carousel = this;
     10
     11            $(this).lightSlider({
     12                gallery: true,
     13                item: 1,
     14                loop: true,
     15                auto: true,
     16                pause: 5000,
     17                thumbItem: 6,
     18                slideMargin: 0,
     19                galleryMargin: 0,
     20                thumbMargin: 0,
     21                enableDrag: false,
     22                mode: 'fade',
     23                onSliderLoad: function (el) {
     24                    loadingPager.remove();
     25                    lightGallery(el.get(0), {
     26                        licenseKey: "5CD6B56C-064145F1-A29A5203-5655C26F",
     27                        selector: '.ownerrez-photo-carousel .lslide',
     28                        preload: 4,
     29                        plugins: [lgVideo, lgThumbnail],
     30                        loadYouTubeThumbnail: false,
     31                        gotoNextSlideOnVideoEnd: false,
     32                        youTubePlayerParams: {
     33                            modestbranding: 1,
     34                            iv_load_policy: 3
     35                        }
     36                    });
     37
     38                    $("li", carousel).css("height", "100%");
     39                },
     40                prevHtml: '<span class="ownerrez-photo-carousel-prev lg-prev lg-icon"></span>',
     41                nextHtml: '<span class="ownerrez-photo-carousel-next lg-next lg-icon"></span>'
     42            }).removeClass("loading-slider");
     43        });
     44    });
    3145
    3246})( jQuery );
  • ownerrez/trunk/readme.txt

    r2753814 r2846829  
    3333
    3434== Changelog ==
     35= 1.1.14 =
     36- Initialize carousel even when WP is configured to add scripts html head.
     37
    3538= 1.1.13 =
    3639- Webhooks now always return the correct http code.
Note: See TracChangeset for help on using the changeset viewer.