Changeset 3401511
- Timestamp:
- 11/24/2025 03:04:49 AM (5 weeks ago)
- Location:
- breadcrumb-block
- Files:
-
- 1 deleted
- 19 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from breadcrumb-block/trunk)
-
tags/1.1.0/breadcrumb-block.php (modified) (2 diffs)
-
tags/1.1.0/build/block.json (modified) (2 diffs)
-
tags/1.1.0/build/index-rtl.css (modified) (1 diff)
-
tags/1.1.0/build/index.asset.php (modified) (1 diff)
-
tags/1.1.0/build/index.css (modified) (1 diff)
-
tags/1.1.0/build/index.js (modified) (1 diff)
-
tags/1.1.0/includes/breadcrumbs.php (modified) (9 diffs)
-
tags/1.1.0/readme.txt (modified) (3 diffs)
-
tags/1.1.0/src (deleted)
-
trunk/breadcrumb-block.php (modified) (2 diffs)
-
trunk/build/block.json (modified) (2 diffs)
-
trunk/build/index-rtl.css (modified) (1 diff)
-
trunk/build/index.asset.php (modified) (1 diff)
-
trunk/build/index.css (modified) (1 diff)
-
trunk/build/index.js (modified) (1 diff)
-
trunk/includes/breadcrumbs.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/block.json (modified) (2 diffs)
-
trunk/src/edit.js (modified) (6 diffs)
-
trunk/src/editor.scss (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
breadcrumb-block/tags/1.1.0/breadcrumb-block.php
r3223285 r3401511 3 3 * Plugin Name: Breadcrumb Block 4 4 * Description: A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with Woocommerce 5 * Requires at least: 5. 85 * Requires at least: 5.9 6 6 * Requires PHP: 7.0 7 * Version: 1. 0.167 * Version: 1.1.0 8 8 * Author: Phi Phan 9 9 * Author URI: https://boldblocks.net … … 44 44 */ 45 45 function breadcrumb_block_render_block( $attributes, $content, $block ) { 46 // Get labels. 47 $labels = $attributes['labels'] ?? []; 48 if ( ! empty( $attributes['homeText'] ) && empty( $labels['home'] ) ) { 49 $labels['home'] = $attributes['homeText']; 50 } 51 46 52 $content = Breadcrumbs::get_instance()->get_breadcrumb_trail( 47 53 [ 48 54 'separator' => $attributes['separator'] ?? '', 49 'labels' => [ 50 'home' => $attributes['homeText'] ?? '', 51 ], 55 'labels' => $labels, 52 56 ] 53 57 ); -
breadcrumb-block/tags/1.1.0/build/block.json
r3176552 r3401511