Changeset 3193548
- Timestamp:
- 11/21/2024 12:17:39 AM (16 months ago)
- Location:
- a2z-alphabetical-archive-links
- Files:
-
- 14 edited
- 1 copied
-
tags/2.1.1 (copied) (copied from a2z-alphabetical-archive-links/trunk)
-
tags/2.1.1/a2z-alphabetical-archive-links.php (modified) (2 diffs)
-
tags/2.1.1/build/blocks/a2z-links/block.json (modified) (1 diff)
-
tags/2.1.1/build/blocks/a2z-links/render.php (modified) (1 diff)
-
tags/2.1.1/readme.txt (modified) (2 diffs)
-
tags/2.1.1/src/blocks/a2z-links/block.json (modified) (1 diff)
-
tags/2.1.1/src/blocks/a2z-links/render.php (modified) (1 diff)
-
tags/2.1.1/src/helpers.php (modified) (1 diff)
-
trunk/a2z-alphabetical-archive-links.php (modified) (2 diffs)
-
trunk/build/blocks/a2z-links/block.json (modified) (1 diff)
-
trunk/build/blocks/a2z-links/render.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/blocks/a2z-links/block.json (modified) (1 diff)
-
trunk/src/blocks/a2z-links/render.php (modified) (1 diff)
-
trunk/src/helpers.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
a2z-alphabetical-archive-links/tags/2.1.1/a2z-alphabetical-archive-links.php
r3193532 r3193548 5 5 Description: Get a list of characters, A to Z, from the initial character of a post or CPT title. 6 6 The Initials will link to an archive page of posts/CPTs that begin with that character. 7 Version: 2.1. 07 Version: 2.1.1 8 8 Requires at least: 5.8 9 9 Requires PHP: 7.4 … … 24 24 define( 'A2ZAAL_PLUGIN', __FILE__ ); 25 25 define( 'A2ZAAL_BASENAME', plugin_basename( A2ZAAL_PLUGIN ) ); 26 define( 'A2ZAAL_VERSION', '2.1. 0' );26 define( 'A2ZAAL_VERSION', '2.1.1' ); 27 27 define( 'A2ZAAL_PLUGIN_ROOT_DIR', trailingslashit( __DIR__ ) ); 28 28 -
a2z-alphabetical-archive-links/tags/2.1.1/build/blocks/a2z-links/block.json
r3193532 r3193548 21 21 "attributes": { 22 22 "title": { 23 "type": "string" 23 "type": "string", 24 "default": "" 24 25 }, 25 26 "showCounts": { 26 "type": "boolean" 27 "type": "boolean", 28 "default": false 27 29 }, 28 30 "selectedPostType": { 29 "type": "string" 31 "type": "string", 32 "default": "" 30 33 } 31 34 }, -
a2z-alphabetical-archive-links/tags/2.1.1/build/blocks/a2z-links/render.php
r3193532 r3193548 16 16 } 17 17 18 if ( empty( $attributes['selectedPostType'] ) ) { 19 $attributes['selectedPostType'] = ''; 20 21 $active_post_types = get_a2zaal_active_post_types(); 22 23 if ( 1 <= count( $active_post_types ) ) { 24 $attributes['selectedPostType'] = $active_post_types[0]; 25 } 26 } 27 18 28 if ( ! empty( $attributes['title'] ) ) { 19 29 printf( '<h2>%s</h2>', \esc_html( $attributes['title'] ) ); -
a2z-alphabetical-archive-links/tags/2.1.1/readme.txt
r3193532 r3193548 6 6 Tested up to: 6.7 7 7 Requires PHP: 7.4 8 Stable tag: 2.1. 08 Stable tag: 2.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 54 = 2.1.1 = 55 56 Added default values for block attributes and added checks to ensure they have values before render 53 57 54 58 = 2.1.0 = -
a2z-alphabetical-archive-links/tags/2.1.1/src/blocks/a2z-links/block.json
r3193532 r3193548 21 21 "attributes": { 22 22 "title": { 23 "type": "string" 23 "type": "string", 24 "default": "" 24 25 }, 25 26 "showCounts": { 26 "type": "boolean" 27 "type": "boolean", 28 "default": false 27 29 }, 28 30 "selectedPostType": { 29 "type": "string" 31 "type": "string", 32 "default": "" 30 33 } 31 34 }, -
a2z-alphabetical-archive-links/tags/2.1.1/src/blocks/a2z-links/render.php
r3193532 r3193548 16 16 } 17 17 18 if ( empty( $attributes['selectedPostType'] ) ) { 19 $attributes['selectedPostType'] = ''; 20 21 $active_post_types = get_a2zaal_active_post_types(); 22 23 if ( 1 <= count( $active_post_types ) ) { 24 $attributes['selectedPostType'] = $active_post_types[0]; 25 } 26 } 27 18 28 if ( ! empty( $attributes['title'] ) ) { 19 29 printf( '<h2>%s</h2>', \esc_html( $attributes['title'] ) ); -
a2z-alphabetical-archive-links/tags/2.1.1/src/helpers.php
r3193532 r3193548 163 163 */ 164 164 function get_a2zaal_display_links( string $selected_post_type, bool $show_counts ) { 165 if ( empty( $selected_post_type ) ) { 166 return [ '<p>' . \__( 'Post type not selected.', 'nvwd-a2zaal' ) . '</p>' ]; 167 } 168 165 169 $post_type_titles_struct = \get_option( $selected_post_type . A2ZAAL_POSTS_SUFFIX, [] ); 166 170 -
a2z-alphabetical-archive-links/trunk/a2z-alphabetical-archive-links.php
r3193532 r3193548 5 5 Description: Get a list of characters, A to Z, from the initial character of a post or CPT title. 6 6 The Initials will link to an archive page of posts/CPTs that begin with that character. 7 Version: 2.1. 07 Version: 2.1.1 8 8 Requires at least: 5.8 9 9 Requires PHP: 7.4 … … 24 24 define( 'A2ZAAL_PLUGIN', __FILE__ ); 25 25 define( 'A2ZAAL_BASENAME', plugin_basename( A2ZAAL_PLUGIN ) ); 26 define( 'A2ZAAL_VERSION', '2.1. 0' );26 define( 'A2ZAAL_VERSION', '2.1.1' ); 27 27 define( 'A2ZAAL_PLUGIN_ROOT_DIR', trailingslashit( __DIR__ ) ); 28 28 -
a2z-alphabetical-archive-links/trunk/build/blocks/a2z-links/block.json
r3193532 r3193548 21 21 "attributes": { 22 22 "title": { 23 "type": "string" 23 "type": "string", 24 "default": "" 24 25 }, 25 26 "showCounts": { 26 "type": "boolean" 27 "type": "boolean", 28 "default": false 27 29 }, 28 30 "selectedPostType": { 29 "type": "string" 31 "type": "string", 32 "default": "" 30 33 } 31 34 }, -
a2z-alphabetical-archive-links/trunk/build/blocks/a2z-links/render.php
r3193532 r3193548 16 16 } 17 17 18 if ( empty( $attributes['selectedPostType'] ) ) { 19 $attributes['selectedPostType'] = ''; 20 21 $active_post_types = get_a2zaal_active_post_types(); 22 23 if ( 1 <= count( $active_post_types ) ) { 24 $attributes['selectedPostType'] = $active_post_types[0]; 25 } 26 } 27 18 28 if ( ! empty( $attributes['title'] ) ) { 19 29 printf( '<h2>%s</h2>', \esc_html( $attributes['title'] ) ); -
a2z-alphabetical-archive-links/trunk/readme.txt
r3193532 r3193548 6 6 Tested up to: 6.7 7 7 Requires PHP: 7.4 8 Stable tag: 2.1. 08 Stable tag: 2.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 54 = 2.1.1 = 55 56 Added default values for block attributes and added checks to ensure they have values before render 53 57 54 58 = 2.1.0 = -
a2z-alphabetical-archive-links/trunk/src/blocks/a2z-links/block.json
r3193532 r3193548 21 21 "attributes": { 22 22 "title": { 23 "type": "string" 23 "type": "string", 24 "default": "" 24 25 }, 25 26 "showCounts": { 26 "type": "boolean" 27 "type": "boolean", 28 "default": false 27 29 }, 28 30 "selectedPostType": { 29 "type": "string" 31 "type": "string", 32 "default": "" 30 33 } 31 34 }, -
a2z-alphabetical-archive-links/trunk/src/blocks/a2z-links/render.php
r3193532 r3193548 16 16 } 17 17 18 if ( empty( $attributes['selectedPostType'] ) ) { 19 $attributes['selectedPostType'] = ''; 20 21 $active_post_types = get_a2zaal_active_post_types(); 22 23 if ( 1 <= count( $active_post_types ) ) { 24 $attributes['selectedPostType'] = $active_post_types[0]; 25 } 26 } 27 18 28 if ( ! empty( $attributes['title'] ) ) { 19 29 printf( '<h2>%s</h2>', \esc_html( $attributes['title'] ) ); -
a2z-alphabetical-archive-links/trunk/src/helpers.php
r3193532 r3193548 163 163 */ 164 164 function get_a2zaal_display_links( string $selected_post_type, bool $show_counts ) { 165 if ( empty( $selected_post_type ) ) { 166 return [ '<p>' . \__( 'Post type not selected.', 'nvwd-a2zaal' ) . '</p>' ]; 167 } 168 165 169 $post_type_titles_struct = \get_option( $selected_post_type . A2ZAAL_POSTS_SUFFIX, [] ); 166 170
Note: See TracChangeset
for help on using the changeset viewer.