Plugin Directory

Changeset 3470245


Ignore:
Timestamp:
02/26/2026 12:05:59 PM (5 weeks ago)
Author:
teecontrol
Message:

Update to version 1.0.5 from GitHub

Location:
teecontrol-course-data
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • teecontrol-course-data/tags/1.0.5/build/core/Teecontrol.php

    r3455482 r3470245  
    221221    }
    222222
     223    public static function blocks_manifest()
     224    {
     225        return require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';
     226    }
     227
    223228    public static function register_blocks()
    224229    {
    225         $manifestData = require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';
     230        $manifestData = self::blocks_manifest();
    226231        if (!empty($manifestData)) {
    227232            add_filter('block_categories_all', function ($categories) {
     
    243248
    244249            if (isset($blockData['style'])) {
    245                 wp_register_style(
    246                     "teecontrol-course-data-{$blockType}",
    247                     $blockRoot . str_replace('file:.', '', $blockData['style']),
    248                     ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    249                     TEECONTROL_COURSE_DATA__VERSION
    250                 );
    251                 $customSettings['style'] = "teecontrol-course-data-{$blockType}";
    252             }
    253 
    254             // Register script and replace it with the alias
    255             if (isset($blockData['editorScript'])) {
    256                 wp_register_script(
    257                     "teecontrol-course-data-{$blockType}",
    258                     $blockRoot . str_replace('file:.', '', $blockData['editorScript']),
    259                     ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    260                     TEECONTROL_COURSE_DATA__VERSION,
     250                $fileName = str_replace('file:.', '', $blockData['style']);
     251
     252                wp_enqueue_block_style(
     253                    $blockData['name'],
    261254                    [
    262                         'in_footer' => false
     255                        'src' => $blockRoot . $fileName,
     256                        'path' => TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}{$fileName}",
     257                        'ver' => TEECONTROL_COURSE_DATA__VERSION,
     258                        'deps' => ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    263259                    ]
    264260                );
    265                 $customSettings['editorScript'] = "teecontrol-course-data-{$blockType}";
    266             }
     261                $customSettings['style'] = $blockData['name'];
     262            }
     263
     264            // Register script and replace it with the alias
     265            // if (isset($blockData['editorScript'])) {
     266            //     wp_register_script(
     267            //         $blockData['name'] . '-editor-script',
     268            //         $blockRoot . str_replace('file:.', '', $blockData['editorScript']),
     269            //         ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
     270            //         TEECONTROL_COURSE_DATA__VERSION,
     271            //         [
     272            //             'in_footer' => false
     273            //         ]
     274            //     );
     275            //     $customSettings['editorScript'] = $blockData['name'] . '-editor-script';
     276            // }
    267277
    268278            // Register the block
    269279            register_block_type(
    270                 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}",
    271                 $customSettings
     280                TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}/block.json",
    272281            );
    273282
  • teecontrol-course-data/tags/1.0.5/readme.txt

    r3455499 r3470245  
    11=== Teecontrol Course Data ===
    2 Contributors: Naboo Software B.V.
     2Contributors: teecontrol
    33Tags: Golf, Status
    44License: GPLv3
     
    66Requires at least: 6.9
    77Tested up to: 6.9
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99Requires PHP: 8.3
    1010
  • teecontrol-course-data/tags/1.0.5/teecontrol-course-data.php

    r3455499 r3470245  
    11<?php
     2
     3use TeecontrolCourseData\Teecontrol;
    24
    35if (! defined('ABSPATH')) {
     
    1517 * Plugin URI: https://github.com/teecontrol/wordpress-plugin
    1618 * Description: Display golf course information from your details in Teecontrol.
    17  * Version: 1.0.4
     19 * Version: 1.0.5
    1820 * Requires at least: 6.9
    1921 * Requires PHP: 8.3
    2022 * License: GPL v3
    21  * Author: Naboo Software B.V.
     23 * Author: teecontrol
    2224 * Author URI: https://teecontrol.com
    2325 * Text Domain: teecontrol-course-data
     
    3840 */
    3941
    40 define('TEECONTROL_COURSE_DATA__VERSION', '1.0.4');
     42define('TEECONTROL_COURSE_DATA__VERSION', '1.0.5');
    4143define('TEECONTROL_COURSE_DATA__MINIMUM_WP_VERSION', '6.9');
    4244define('TEECONTROL_COURSE_DATA__PLUGIN_DIR', plugin_dir_path(__FILE__));
  • teecontrol-course-data/tags/1.0.5/vendor/composer/installed.php

    r3455499 r3470245  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '933516771e6cd9b704c67581ab4cdd12d3c8fc7b',
     6        'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '933516771e6cd9b704c67581ab4cdd12d3c8fc7b',
     16            'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • teecontrol-course-data/trunk/build/core/Teecontrol.php

    r3455482 r3470245  
    221221    }
    222222
     223    public static function blocks_manifest()
     224    {
     225        return require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';
     226    }
     227
    223228    public static function register_blocks()
    224229    {
    225         $manifestData = require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';
     230        $manifestData = self::blocks_manifest();
    226231        if (!empty($manifestData)) {
    227232            add_filter('block_categories_all', function ($categories) {
     
    243248
    244249            if (isset($blockData['style'])) {
    245                 wp_register_style(
    246                     "teecontrol-course-data-{$blockType}",
    247                     $blockRoot . str_replace('file:.', '', $blockData['style']),
    248                     ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    249                     TEECONTROL_COURSE_DATA__VERSION
    250                 );
    251                 $customSettings['style'] = "teecontrol-course-data-{$blockType}";
    252             }
    253 
    254             // Register script and replace it with the alias
    255             if (isset($blockData['editorScript'])) {
    256                 wp_register_script(
    257                     "teecontrol-course-data-{$blockType}",
    258                     $blockRoot . str_replace('file:.', '', $blockData['editorScript']),
    259                     ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    260                     TEECONTROL_COURSE_DATA__VERSION,
     250                $fileName = str_replace('file:.', '', $blockData['style']);
     251
     252                wp_enqueue_block_style(
     253                    $blockData['name'],
    261254                    [
    262                         'in_footer' => false
     255                        'src' => $blockRoot . $fileName,
     256                        'path' => TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}{$fileName}",
     257                        'ver' => TEECONTROL_COURSE_DATA__VERSION,
     258                        'deps' => ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
    263259                    ]
    264260                );
    265                 $customSettings['editorScript'] = "teecontrol-course-data-{$blockType}";
    266             }
     261                $customSettings['style'] = $blockData['name'];
     262            }
     263
     264            // Register script and replace it with the alias
     265            // if (isset($blockData['editorScript'])) {
     266            //     wp_register_script(
     267            //         $blockData['name'] . '-editor-script',
     268            //         $blockRoot . str_replace('file:.', '', $blockData['editorScript']),
     269            //         ['wp-blocks', 'wp-i18n', 'wp-block-editor', 'wp-components', 'wp-server-side-render'],
     270            //         TEECONTROL_COURSE_DATA__VERSION,
     271            //         [
     272            //             'in_footer' => false
     273            //         ]
     274            //     );
     275            //     $customSettings['editorScript'] = $blockData['name'] . '-editor-script';
     276            // }
    267277
    268278            // Register the block
    269279            register_block_type(
    270                 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}",
    271                 $customSettings
     280                TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}/block.json",
    272281            );
    273282
  • teecontrol-course-data/trunk/readme.txt

    r3455499 r3470245  
    11=== Teecontrol Course Data ===
    2 Contributors: Naboo Software B.V.
     2Contributors: teecontrol
    33Tags: Golf, Status
    44License: GPLv3
     
    66Requires at least: 6.9
    77Tested up to: 6.9
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99Requires PHP: 8.3
    1010
  • teecontrol-course-data/trunk/teecontrol-course-data.php

    r3455499 r3470245  
    11<?php
     2
     3use TeecontrolCourseData\Teecontrol;
    24
    35if (! defined('ABSPATH')) {
     
    1517 * Plugin URI: https://github.com/teecontrol/wordpress-plugin
    1618 * Description: Display golf course information from your details in Teecontrol.
    17  * Version: 1.0.4
     19 * Version: 1.0.5
    1820 * Requires at least: 6.9
    1921 * Requires PHP: 8.3
    2022 * License: GPL v3
    21  * Author: Naboo Software B.V.
     23 * Author: teecontrol
    2224 * Author URI: https://teecontrol.com
    2325 * Text Domain: teecontrol-course-data
     
    3840 */
    3941
    40 define('TEECONTROL_COURSE_DATA__VERSION', '1.0.4');
     42define('TEECONTROL_COURSE_DATA__VERSION', '1.0.5');
    4143define('TEECONTROL_COURSE_DATA__MINIMUM_WP_VERSION', '6.9');
    4244define('TEECONTROL_COURSE_DATA__PLUGIN_DIR', plugin_dir_path(__FILE__));
  • teecontrol-course-data/trunk/vendor/composer/installed.php

    r3455499 r3470245  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '933516771e6cd9b704c67581ab4cdd12d3c8fc7b',
     6        'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '933516771e6cd9b704c67581ab4cdd12d3c8fc7b',
     16            'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.