Changeset 3297721
- Timestamp:
- 05/21/2025 02:57:09 AM (11 months ago)
- Location:
- taro-taxonomy-blocks
- Files:
-
- 4 edited
- 1 copied
-
tags/1.2.2 (copied) (copied from taro-taxonomy-blocks/trunk)
-
tags/1.2.2/readme.txt (modified) (4 diffs)
-
tags/1.2.2/taro-taxonomy-blocks.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/taro-taxonomy-blocks.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
taro-taxonomy-blocks/tags/1.2.2/readme.txt
r3208360 r3297721 2 2 3 3 Tags: gutenberg, block editor, iframe 4 Contributors: tarosky, Takahashi_Fumiki 5 Tested up to: 6.4 6 Requires at least: 5.9 7 Requires PHP: 7.2 8 Stable Tag: 1.2.1 4 Contributors: tarosky, Takahashi_Fumiki, tswallie 5 Tested up to: 6.8 6 Stable Tag: 1.2.2 9 7 License: GPLv3 or later 10 8 License URI: http://www.gnu.org/licenses/gpl-3.0.txt 11 9 12 Add 3 term blocks.10 Add term-related blocks. Suitable for classic or hybrid themes. 13 11 14 12 == Description == … … 22 20 = Customization = 23 21 22 All blocks are customizable on the PHP layer. 23 24 24 Template Structure 25 25 26 To override look and feel, put template in your themes directory.26 To override look and feel, put template files in your theme's directory. 27 27 28 <pre>template-parts 29 - taxonomy-blocks 30 - posts-list.php // List of post in post's terms query blocks. 31 - post-loop.php // Post link in post's terms query blocks. 32 - term-item.php // Term link. 33 - term-list.php // Flat term list. 34 - term-list-hierarchical.php // Hierarchical terms list.</pre> 28 <pre> 29 your-theme-dir 30 - template-parts 31 - taxonomy-blocks 32 - posts-list.php // List of post in post's terms query blocks. 33 - post-loop.php // Post link in post's terms query blocks. 34 - term-item.php // Term link. 35 - term-list.php // Flat term list. 36 - term-list-hierarchical.php // Hierarchical terms list. 37 </pre> 35 38 36 39 `taro_taxonomy_blocks_template` filter hook is also available. … … 40 43 41 44 To override styles, regsiter styels named `taro-terms-block`. 42 The plugin registers style at priority 20 of `init` hook, so registering style at priority 10 .45 The plugin registers style at priority 20 of `init` hook, so registering style at priority 10 or earlier. 43 46 44 47 <pre>add_action( 'init', function() { … … 71 74 == Changelog == 72 75 76 = 1.2.2 = 77 78 * Check compatibility to WordPress 6.8 79 * Fix order bug in term posts block. 80 73 81 = 1.2.1 = 74 82 -
taro-taxonomy-blocks/tags/1.2.2/taro-taxonomy-blocks.php
r3208360 r3297721 1 1 <?php 2 2 /** 3 Plugin Name: Taro Taxonomy Blocks 4 Plugin URI: https://wordpress.org/plugins/taro-taxonomy-blocks/ 5 Description: Add 3 taxonomy blockshh for block editor. 6 Author: Tarosky INC. 7 Version: 1.2.1 8 Author URI: https://tarosky.co.jp/ 9 License: GPL3 or later 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 Text Domain: taro-taxonomy-blocks 12 Domain Path: /languages 3 * Plugin Name: Taro Taxonomy Blocks 4 * Plugin URI: https://wordpress.org/plugins/taro-taxonomy-blocks/ 5 * Description: Add 3 taxonomy blockshh for block editor. 6 * Author: Tarosky INC. 7 * Version: 1.2.2 8 * Requires at least: 5.9 9 * Requires PHP: 7.2 10 * Author URI: https://tarosky.co.jp/ 11 * License: GPL3 or later 12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 13 * Text Domain: taro-taxonomy-blocks 14 * Domain Path: /languages 13 15 */ 14 16 … … 129 131 default: 130 132 return array_merge( $args, [ 131 'orde by'=> [133 'orderby' => [ 132 134 'type' => 'string', 133 135 'default' => 'name', … … 142 144 ], 143 145 'hide_empty' => [ 144 'type' => 'bool ',146 'type' => 'boolean', 145 147 'default' => true, 146 148 ], … … 215 217 if ( $attributes['meta'] ) { 216 218 $term_args['meta_key'] = $attributes['meta']; 217 $term_args['orde by']= 'meta_value';218 } else { 219 $term_args['orde by'] = $attributes['ordeby'];219 $term_args['orderby'] = 'meta_value'; 220 } else { 221 $term_args['orderby'] = $attributes['orderby']; 220 222 } 221 223 $term_args['order'] = $attributes['order']; -
taro-taxonomy-blocks/trunk/readme.txt
r3208360 r3297721 2 2 3 3 Tags: gutenberg, block editor, iframe 4 Contributors: tarosky, Takahashi_Fumiki 5 Tested up to: 6.4 6 Requires at least: 5.9 7 Requires PHP: 7.2 8 Stable Tag: 1.2.1 4 Contributors: tarosky, Takahashi_Fumiki, tswallie 5 Tested up to: 6.8 6 Stable Tag: 1.2.2 9 7 License: GPLv3 or later 10 8 License URI: http://www.gnu.org/licenses/gpl-3.0.txt 11 9 12 Add 3 term blocks.10 Add term-related blocks. Suitable for classic or hybrid themes. 13 11 14 12 == Description == … … 22 20 = Customization = 23 21 22 All blocks are customizable on the PHP layer. 23 24 24 Template Structure 25 25 26 To override look and feel, put template in your themes directory.26 To override look and feel, put template files in your theme's directory. 27 27 28 <pre>template-parts 29 - taxonomy-blocks 30 - posts-list.php // List of post in post's terms query blocks. 31 - post-loop.php // Post link in post's terms query blocks. 32 - term-item.php // Term link. 33 - term-list.php // Flat term list. 34 - term-list-hierarchical.php // Hierarchical terms list.</pre> 28 <pre> 29 your-theme-dir 30 - template-parts 31 - taxonomy-blocks 32 - posts-list.php // List of post in post's terms query blocks. 33 - post-loop.php // Post link in post's terms query blocks. 34 - term-item.php // Term link. 35 - term-list.php // Flat term list. 36 - term-list-hierarchical.php // Hierarchical terms list. 37 </pre> 35 38 36 39 `taro_taxonomy_blocks_template` filter hook is also available. … … 40 43 41 44 To override styles, regsiter styels named `taro-terms-block`. 42 The plugin registers style at priority 20 of `init` hook, so registering style at priority 10 .45 The plugin registers style at priority 20 of `init` hook, so registering style at priority 10 or earlier. 43 46 44 47 <pre>add_action( 'init', function() { … … 71 74 == Changelog == 72 75 76 = 1.2.2 = 77 78 * Check compatibility to WordPress 6.8 79 * Fix order bug in term posts block. 80 73 81 = 1.2.1 = 74 82 -
taro-taxonomy-blocks/trunk/taro-taxonomy-blocks.php
r3208360 r3297721 1 1 <?php 2 2 /** 3 Plugin Name: Taro Taxonomy Blocks 4 Plugin URI: https://wordpress.org/plugins/taro-taxonomy-blocks/ 5 Description: Add 3 taxonomy blockshh for block editor. 6 Author: Tarosky INC. 7 Version: 1.2.1 8 Author URI: https://tarosky.co.jp/ 9 License: GPL3 or later 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 Text Domain: taro-taxonomy-blocks 12 Domain Path: /languages 3 * Plugin Name: Taro Taxonomy Blocks 4 * Plugin URI: https://wordpress.org/plugins/taro-taxonomy-blocks/ 5 * Description: Add 3 taxonomy blockshh for block editor. 6 * Author: Tarosky INC. 7 * Version: 1.2.2 8 * Requires at least: 5.9 9 * Requires PHP: 7.2 10 * Author URI: https://tarosky.co.jp/ 11 * License: GPL3 or later 12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 13 * Text Domain: taro-taxonomy-blocks 14 * Domain Path: /languages 13 15 */ 14 16 … … 129 131 default: 130 132 return array_merge( $args, [ 131 'orde by'=> [133 'orderby' => [ 132 134 'type' => 'string', 133 135 'default' => 'name', … … 142 144 ], 143 145 'hide_empty' => [ 144 'type' => 'bool ',146 'type' => 'boolean', 145 147 'default' => true, 146 148 ], … … 215 217 if ( $attributes['meta'] ) { 216 218 $term_args['meta_key'] = $attributes['meta']; 217 $term_args['orde by']= 'meta_value';218 } else { 219 $term_args['orde by'] = $attributes['ordeby'];219 $term_args['orderby'] = 'meta_value'; 220 } else { 221 $term_args['orderby'] = $attributes['orderby']; 220 222 } 221 223 $term_args['order'] = $attributes['order'];
Note: See TracChangeset
for help on using the changeset viewer.