Changeset 13272 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-forums-homepage.php
- Timestamp:
- 03/05/2024 02:45:07 AM (2 years ago)
- 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 1 1 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 2 2 3 <div id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums three-up">4 3 4 <section class="forums-homepage-list"> 5 <h2 class="has-heading-5-font-size"><?php _e( 'Forums', 'wporg-forums' ); ?></h2> 5 6 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 ); ?> 7 16 8 <?php bbp_get_template_part( 'loop', 'single-forum-homepage' ); ?>17 </section> 9 18 10 <?php endwhile; ?> 19 <section class="forums-homepage-topics"> 20 <h2 class="has-heading-5-font-size"><?php _e( 'Topics', 'wporg-forums' ); ?></h2> 11 21 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> 12 31 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"> 18 33 <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' ), 21 36 esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ), 22 '<span class="dashicons dashicons-admin-appearance"></span>',23 37 esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ), 24 '<span class="dashicons dashicons-admin-plugins"></span>'25 38 ); 26 39 ?></p> 27 28 </div> 40 </section> 29 41 30 42 <?php do_action( 'bbp_template_after_forums_loop' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.