Making WordPress.org


Ignore:
Timestamp:
04/04/2024 11:13:50 PM (3 years ago)
Author:
adamwood
Message:

wporg-support-2024: Update sidebar layout

Move tags up and styles as pills
Style topics as cards
Sidebar width and font changes

File:
1 edited

Legend:

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

    r13408 r13455  
    4242
    4343                        <div>
     44                                <?php bbp_topic_tag_list( 0, array(
     45                                        'before' => '<h4>' . __( 'Tags', 'wporg-forums' ) . '</h4><ul class="topic-tags"><li class="tag">',
     46                                        'after'  => '</li></ul>',
     47                                        'sep'    => '</li><li class="tag">',
     48                                ) ); ?>
     49                        </div>
     50
     51                        <div>
    4452                                <ul class="topic-info">
    4553                                        <?php bb_base_single_topic_description(); ?>
    4654                                </ul>
    47                         </div>
    48 
    49                         <div>
    50                                 <?php bbp_topic_tag_list( 0, array(
    51                                         'before' => '<h4>' . __( 'Topic Tags', 'wporg-forums' ) . '</h4><ul class="topic-tags"><li>',
    52                                         'after'  => '</li></ul>',
    53                                         'sep'    => '</li><li>',
    54                                 ) ); ?>
    5555                        </div>
    5656
    … …  
    6060                                        <?php bbp_topic_admin_links( array (
    6161                                                'id'     => bbp_get_topic_id(),
    62                                                 'before' => '<h4>' . __( 'Topic Admin', 'wporg-forums' ) . '</h4><ul class="topic-admin-links"><li>',
     62                                                'before' => '<h4>' . __( 'Admin', 'wporg-forums' ) . '</h4><ul class="topic-admin-links"><li>',
    6363                                                'after'  => '</li></ul>',
    6464                                                'sep'    => '</li><li>',
    … …  
    8686
    8787                        <div>
    88                                 <h4><?php _e( 'Views', 'wporg-forums' ); ?></h4>
    89                                 <ul class="topic-views">
     88                                <h4><?php _e( 'Topics', 'wporg-forums' ); ?></h4>
    9089
    91                                         <?php foreach ( bbp_get_views() as $view => $args ) :
    92                                                 if ( in_array( $view, wporg_support_get_compat_views() ) ) {
    93                                                         continue;
    94                                                 }
    95                                                 ?>
    96 
    97                                                 <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>
    98 
    99                                         <?php endforeach; ?>
    100 
    101                                 </ul>
     90                                <?php echo do_blocks(
     91                                        sprintf(
     92                                                '<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"className":"topic-views is-style-cards-grid","layout":{"type":"grid"},"fontSize":"small"} -->
     93                                                <div class="topic-views wp-block-group is-style-cards-grid">%s</div>
     94                                                <!-- /wp:group -->',
     95                                                wporg_support_get_sidebar_topics()
     96                                        )
     97                                ); ?>
    10298                        </div>
    10399
    … …  
    109105                                <h4><?php _e( 'Feeds', 'wporg-forums' ); ?></h4>
    110106                                <ul class="forum-feeds">
    111                                         <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'All Recent Posts', 'wporg-forums' ); ?></a></li>
    112                                         <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'All Recent Topics', 'wporg-forums' ); ?></a></li>
     107                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
     108                                        <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'RSS Recent Topics', 'wporg-forums' ); ?></a></li>
    113109                                </ul>
    114110                        </div>
Note: See TracChangeset for help on using the changeset viewer.