Making WordPress.org


Ignore:
Timestamp:
04/15/2024 11:48:53 PM (3 years ago)
Author:
adamwood
Message:

wporg-support-2024: Update breadcrumb style

Style breadcrumbs to match wporg-mu-plugins breadcrumbs block.

Closes ​https://github.com/WordPress/wordpress.org/issues/216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/header.php

    r13520 r13530  
    3838
    3939        <div id="content" class="site-content">
    40                 <?php if ( is_front_page() || $is_homepage ) : ?>
    41                         <?php echo do_blocks(
     40                <?php if ( is_front_page() || $is_homepage ) :
     41
     42                        echo do_blocks(
    4243                                sprintf(
    4344                                        '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"backgroundColor":"charcoal-2","className":"has-white-color has-charcoal-2-background-color has-text-color has-background has-link-color","layout":{"type":"constrained"}} -->
    … …  
    7677                                        __( 'We&#8217;ve got a variety of resources to help you get the most out of WordPress.', 'wporg-forums' )
    7778                                )
    78                         ); ?>
    79                 <?php elseif ( $is_forums_home ) : ?>
    80                         <?php echo do_blocks(
     79                        );
     80
     81                elseif ( $is_forums_home ) :
     82
     83                        echo do_blocks(
    8184                                sprintf(
    8285                                        '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"backgroundColor":"charcoal-2","className":"has-white-color has-charcoal-2-background-color has-text-color has-background has-link-color","layout":{"type":"constrained"}} -->
    … …  
    114117                                        esc_html__( 'A space to ask and discuss all things WordPress.', 'wporg-forums' )
    115118                                )
    116                         ); ?>
    117                 <?php elseif ( ! ( $is_user_profile || $is_reviews || $is_plugin || $is_theme || $is_single_forum ) ) : ?>
    118                         <?php echo do_blocks(
    119                                 '<!-- wp:group {"style":{"spacing":{"border":{"bottom":{"color":"var:preset|color|light-grey-1","style":"solid","width":"1px"}},"padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space"}}}} -->
    120                                 <div class="wp-block-group alignfull" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space);border-bottom:1px solid var(--wp--preset--color--light-grey-1)">
     119                        );
    121120
    122                                         <!-- wp:pattern {"slug":"wporg-support/search-field"} /-->
     121                else :
    123122
    124                                         </div>
    125                                 <!-- /wp:group -->'
    126                         ); ?>
    127                 <?php endif; ?>
     123                        if ( ! $is_user_profile ) {
     124                                echo do_blocks(
     125                                        sprintf(
     126                                                '<!-- wp:group {"style":{"spacing":{"padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space"}}}} -->
     127                                                <div class="wp-block-group alignfull" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space)">
     128
     129                                                        <!-- wp:group -->
     130                                                        <div class="wp-block-group alignwide">
     131
     132                                                                %s
     133
     134                                                        </div>
     135                                                        <!-- /wp:group -->
     136
     137                                                </div>
     138                                                <!-- /wp:group -->',
     139                                                bbp_get_breadcrumb()
     140                                        )
     141                                );
     142                        }
     143
     144                        if ( ! ( $is_user_profile || $is_reviews || $is_plugin || $is_theme || $is_single_forum ) ) {
     145                                echo do_blocks(
     146                                        '<!-- wp:group {"style":{"spacing":{"border":{"bottom":{"color":"var:preset|color|light-grey-1","style":"solid","width":"1px"}},"padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space"}}}} -->
     147                                        <div class="wp-block-group alignfull" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space);border-bottom:1px solid var(--wp--preset--color--light-grey-1)">
     148
     149                                                <!-- wp:pattern {"slug":"wporg-support/search-field"} /-->
     150
     151                                                </div>
     152                                        <!-- /wp:group -->'
     153                                );
     154                        }
     155
     156                endif;
Note: See TracChangeset for help on using the changeset viewer.