Changeset 3470245
- Timestamp:
- 02/26/2026 12:05:59 PM (5 weeks ago)
- Location:
- teecontrol-course-data
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.5 (copied) (copied from teecontrol-course-data/trunk)
-
tags/1.0.5/build/core/Teecontrol.php (modified) (2 diffs)
-
tags/1.0.5/readme.txt (modified) (2 diffs)
-
tags/1.0.5/teecontrol-course-data.php (modified) (3 diffs)
-
tags/1.0.5/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/build/core/Teecontrol.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/teecontrol-course-data.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
teecontrol-course-data/tags/1.0.5/build/core/Teecontrol.php
r3455482 r3470245 221 221 } 222 222 223 public static function blocks_manifest() 224 { 225 return require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php'; 226 } 227 223 228 public static function register_blocks() 224 229 { 225 $manifestData = require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';230 $manifestData = self::blocks_manifest(); 226 231 if (!empty($manifestData)) { 227 232 add_filter('block_categories_all', function ($categories) { … … 243 248 244 249 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'], 261 254 [ 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'], 263 259 ] 264 260 ); 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 // } 267 277 268 278 // Register the block 269 279 register_block_type( 270 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}", 271 $customSettings 280 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}/block.json", 272 281 ); 273 282 -
teecontrol-course-data/tags/1.0.5/readme.txt
r3455499 r3470245 1 1 === Teecontrol Course Data === 2 Contributors: Naboo Software B.V.2 Contributors: teecontrol 3 3 Tags: Golf, Status 4 4 License: GPLv3 … … 6 6 Requires at least: 6.9 7 7 Tested up to: 6.9 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 Requires PHP: 8.3 10 10 -
teecontrol-course-data/tags/1.0.5/teecontrol-course-data.php
r3455499 r3470245 1 1 <?php 2 3 use TeecontrolCourseData\Teecontrol; 2 4 3 5 if (! defined('ABSPATH')) { … … 15 17 * Plugin URI: https://github.com/teecontrol/wordpress-plugin 16 18 * Description: Display golf course information from your details in Teecontrol. 17 * Version: 1.0. 419 * Version: 1.0.5 18 20 * Requires at least: 6.9 19 21 * Requires PHP: 8.3 20 22 * License: GPL v3 21 * Author: Naboo Software B.V.23 * Author: teecontrol 22 24 * Author URI: https://teecontrol.com 23 25 * Text Domain: teecontrol-course-data … … 38 40 */ 39 41 40 define('TEECONTROL_COURSE_DATA__VERSION', '1.0. 4');42 define('TEECONTROL_COURSE_DATA__VERSION', '1.0.5'); 41 43 define('TEECONTROL_COURSE_DATA__MINIMUM_WP_VERSION', '6.9'); 42 44 define('TEECONTROL_COURSE_DATA__PLUGIN_DIR', plugin_dir_path(__FILE__)); -
teecontrol-course-data/tags/1.0.5/vendor/composer/installed.php
r3455499 r3470245 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 933516771e6cd9b704c67581ab4cdd12d3c8fc7b',6 'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 933516771e6cd9b704c67581ab4cdd12d3c8fc7b',16 'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
teecontrol-course-data/trunk/build/core/Teecontrol.php
r3455482 r3470245 221 221 } 222 222 223 public static function blocks_manifest() 224 { 225 return require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php'; 226 } 227 223 228 public static function register_blocks() 224 229 { 225 $manifestData = require TEECONTROL_COURSE_DATA__SRC_DIR . '/blocks-manifest.php';230 $manifestData = self::blocks_manifest(); 226 231 if (!empty($manifestData)) { 227 232 add_filter('block_categories_all', function ($categories) { … … 243 248 244 249 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'], 261 254 [ 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'], 263 259 ] 264 260 ); 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 // } 267 277 268 278 // Register the block 269 279 register_block_type( 270 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}", 271 $customSettings 280 TEECONTROL_COURSE_DATA__SRC_DIR . "blocks/{$blockType}/block.json", 272 281 ); 273 282 -
teecontrol-course-data/trunk/readme.txt
r3455499 r3470245 1 1 === Teecontrol Course Data === 2 Contributors: Naboo Software B.V.2 Contributors: teecontrol 3 3 Tags: Golf, Status 4 4 License: GPLv3 … … 6 6 Requires at least: 6.9 7 7 Tested up to: 6.9 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 Requires PHP: 8.3 10 10 -
teecontrol-course-data/trunk/teecontrol-course-data.php
r3455499 r3470245 1 1 <?php 2 3 use TeecontrolCourseData\Teecontrol; 2 4 3 5 if (! defined('ABSPATH')) { … … 15 17 * Plugin URI: https://github.com/teecontrol/wordpress-plugin 16 18 * Description: Display golf course information from your details in Teecontrol. 17 * Version: 1.0. 419 * Version: 1.0.5 18 20 * Requires at least: 6.9 19 21 * Requires PHP: 8.3 20 22 * License: GPL v3 21 * Author: Naboo Software B.V.23 * Author: teecontrol 22 24 * Author URI: https://teecontrol.com 23 25 * Text Domain: teecontrol-course-data … … 38 40 */ 39 41 40 define('TEECONTROL_COURSE_DATA__VERSION', '1.0. 4');42 define('TEECONTROL_COURSE_DATA__VERSION', '1.0.5'); 41 43 define('TEECONTROL_COURSE_DATA__MINIMUM_WP_VERSION', '6.9'); 42 44 define('TEECONTROL_COURSE_DATA__PLUGIN_DIR', plugin_dir_path(__FILE__)); -
teecontrol-course-data/trunk/vendor/composer/installed.php
r3455499 r3470245 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 933516771e6cd9b704c67581ab4cdd12d3c8fc7b',6 'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 933516771e6cd9b704c67581ab4cdd12d3c8fc7b',16 'reference' => '4c3a927e56f3a9eaac07b866ce45059b627159ee', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.