Making WordPress.org


Ignore:
Timestamp:
03/05/2024 02:45:07 AM (2 years ago)
Author:
adamwood
Message:

Support Theme: Redesign iteration 1

Replace wp4 with wporg-parent-2021
Redesign forums homepage
Reskin templates

File:
1 edited

Legend:

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

    r7818 r13272  
    11<?php do_action( 'bbp_template_before_forums_loop' ); ?>
    22
    3 <div id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums three-up">
    43
     4<section class="forums-homepage-list">
     5    <h2 class="has-heading-5-font-size"><?php _e( 'Forums', 'wporg-forums' ); ?></h2>
    56
    6         <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
     7    <?php echo do_blocks(
     8        sprintf(
     9            '<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"className":"bbp-forums is-style-cards-grid","layout":{"type":"grid","minimumColumnWidth":"32.3%%"},"fontSize":"small"} -->
     10            <div id="forums-list-%s" class="bbp-forums wp-block-group is-style-cards-grid has-small-font-size">%s</div>
     11            <!-- /wp:group -->',
     12            esc_attr( bbp_get_forum_id() ),
     13            wporg_support_get_forums_list(),
     14        )
     15    ); ?>
    716
    8             <?php bbp_get_template_part( 'loop', 'single-forum-homepage' ); ?>
     17</section>
    918
    10         <?php endwhile; ?>
     19<section class="forums-homepage-topics">
     20    <h2 class="has-heading-5-font-size"><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
    1121
     22    <?php echo do_blocks(
     23        sprintf(
     24            '<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"className":"is-style-cards-grid","layout":{"type":"grid","minimumColumnWidth":"32.3%%"},"fontSize":"small"} -->
     25            <div class="wp-block-group is-style-cards-grid has-small-font-size">%s</div>
     26            <!-- /wp:group -->',
     27            wporg_support_get_views(),
     28        )
     29    ); ?>
     30</section>
    1231
    13 </div><!-- .forums-directory -->
    14 
    15 <div class="themes-plugins">
    16    
    17     <h3><?php _e( 'Themes and Plugins', 'wporg-forums' ); ?></h3>
     32<section class="forums-homepage-themes-plugins">
    1833    <p><?php
    19         /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */
    20         printf( __( 'Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>? Head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ),
     34        /* translators: 1: Theme Directory URL, 2: Plugin Directory URL */
     35        printf( __( 'Looking for help with a specific <a href="%1$s">Theme</a> or <a href="%2$s">Plugin</a>?<br>Every theme and plugin has their own. Head to their individual pages and click "View support forum".', 'wporg-forums' ),
    2136            esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ),
    22             '<span class="dashicons dashicons-admin-appearance"></span>',
    2337            esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ),
    24             '<span class="dashicons dashicons-admin-plugins"></span>'
    2538        );
    2639    ?></p>
    27 
    28 </div>
     40</section>
    2941
    3042<?php do_action( 'bbp_template_after_forums_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.