OrderPK ! i archives/block.jsonnu [ {
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/archives",
"title": "Archives",
"category": "widgets",
"description": "Display a date archive of your posts.",
"textdomain": "default",
"attributes": {
"displayAsDropdown": {
"type": "boolean",
"default": false
},
"showLabel": {
"type": "boolean",
"default": true
},
"showPostCounts": {
"type": "boolean",
"default": false
},
"type": {
"type": "string",
"default": "monthly"
}
},
"supports": {
"align": true,
"html": false,
"spacing": {
"margin": true,
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"interactivity": {
"clientNavigation": true
}
},
"editorStyle": "wp-block-archives-editor"
}
PK ! . . archives/editor-rtl.cssnu [ ul.wp-block-archives{
padding-right:2.5em;
}PK ! z) ) archives/editor-rtl.min.cssnu [ ul.wp-block-archives{padding-right:2.5em}PK ! V- - archives/editor.cssnu [ ul.wp-block-archives{
padding-left:2.5em;
}PK ! .9,( ( archives/editor.min.cssnu [ ul.wp-block-archives{padding-left:2.5em}PK ! Oye e archives/style-rtl.cssnu [ .wp-block-archives{
box-sizing:border-box;
}
.wp-block-archives-dropdown label{
display:block;
}PK ! Y Y archives/style-rtl.min.cssnu [ .wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}PK ! Oye e archives/style.cssnu [ .wp-block-archives{
box-sizing:border-box;
}
.wp-block-archives-dropdown label{
display:block;
}PK ! Y Y archives/style.min.cssnu [ .wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}PK ! 0?g archives.phpnu [ $type,
'format' => 'option',
'show_post_count' => $show_post_count,
)
);
$dropdown_args['echo'] = 0;
$archives = wp_get_archives( $dropdown_args );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) );
switch ( $dropdown_args['type'] ) {
case 'yearly':
$label = __( 'Select Year' );
break;
case 'monthly':
$label = __( 'Select Month' );
break;
case 'daily':
$label = __( 'Select Day' );
break;
case 'weekly':
$label = __( 'Select Week' );
break;
default:
$label = __( 'Select Post' );
break;
}
$show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : '';
$block_content = '
';
return sprintf(
'