Making WordPress.org

Changeset 13312


Ignore:
Timestamp:
03/13/2024 02:31:00 AM (3 years ago)
Author:
adamwood
Message:

wporg-support-2024: Reuse front page blocks on homepage

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024
Files:
2 added
3 edited

Legend:

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

    r13309 r13312  
    22
    33/**
    4  * Template Name: bbPress - Support (Index)
     4 * Template Name: bbPress - Archive
    55 *
    66 * @package bbPress
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/front-page.php

    r13311 r13312  
    2929                        <?php else : ?>
    3030
    31                                 <section>
     31                                <section id="forum-welcome">
    3232
    33                                         <?php echo do_blocks(
    34                                                 '<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"className":"is-style-cards-grid","layout":{"type":"grid","minimumColumnWidth":"32.3%"}} -->
    35                                                 <div class="wp-block-group is-style-cards-grid">
    36 
    37                                                         <!-- wp:group {"layout":{"type":"constrained"}} -->
    38                                                         <div class="wp-block-group">
    39 
    40                                                                 <!-- wp:heading -->
    41                                                                 <h2 class="wp-block-heading has-heading-5-font-size">' . __( 'Welcome to Support', 'wporg-forums' ) . '</h2>
    42                                                                 <!-- /wp:heading -->
    43 
    44                                                                 <!-- wp:paragraph -->
    45                                                                 <p>' . __( 'Our community-based Support Forums are a great place to learn, share, and troubleshoot.', 'wporg-forums' ) . '</p>
    46                                                                 <!-- /wp:paragraph -->
    47 
    48                                                                 <!-- wp:paragraph -->
    49                                                                 <p>' . __( '<a href="https://wordpress.org/support/welcome/">Get started</a>', 'wporg-forums' ) . '</p>
    50                                                                 <!-- /wp:paragraph -->
    51 
    52                                                         </div>
    53                                                         <!-- /wp:group -->
    54 
    55                                                         <!-- wp:group {"layout":{"type":"constrained"}} -->
    56                                                         <div class="wp-block-group">
    57 
    58                                                                 <!-- wp:heading -->
    59                                                                 <h2 class="wp-block-heading has-heading-5-font-size">' . __( 'Documentation', 'wporg-forums' ) . '</h2>
    60                                                                 <!-- /wp:heading -->
    61 
    62                                                                 <!-- wp:paragraph -->
    63                                                                 <p>' . __( 'Your first stop where you\'ll find information on everything from installing to creating plugins.', 'wporg-forums' ) . '</p>
    64                                                                 <!-- /wp:paragraph -->
    65 
    66                                                                 <!-- wp:paragraph -->
    67                                                                 <p>' . __( '<a href="https://wordpress.org/documentation/">Explore documentation</a>', 'wporg-forums' ) . '</p>
    68                                                                 <!-- /wp:paragraph -->
    69 
    70                                                         </div>
    71                                                         <!-- /wp:group -->
    72 
    73                                                         <!-- wp:group {"layout":{"type":"constrained"}} -->
    74                                                         <div class="wp-block-group">
    75 
    76                                                                 <!-- wp:heading -->
    77                                                                 <h2 class="wp-block-heading has-heading-5-font-size">' . __( 'Get Involved', 'wporg-forums' ) . '</h2>
    78                                                                 <!-- /wp:heading -->
    79 
    80                                                                 <!-- wp:paragraph -->
    81                                                                 <p>' . __( 'The Support Handbook is great for tips, tricks, and advice regarding giving the best support possible.', 'wporg-forums' ) . '</p>
    82                                                                 <!-- /wp:paragraph -->
    83 
    84                                                                 <!-- wp:paragraph -->
    85                                                                 <p>' . __( '<a href="https://make.wordpress.org/support/handbook/">Explore the Handbook</a>', 'wporg-forums' ) . '</p>
    86                                                                 <!-- /wp:paragraph -->
    87 
    88                                                         </div>
    89                                                         <!-- /wp:group -->
    90 
    91                                                 </div>
    92                                                 <!-- /wp:group -->'
    93                                         ); ?>
     33                                        <?php echo do_blocks( '<!-- wp:pattern {"slug":"wporg-support/welcome-cards"} /-->' ); ?>
    9434
    9535                                </section>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/page-homepage.php

    r13272 r13312  
    11<?php
    22/**
    3  * Template Name: bbPress - Support (Index)
     3 * Template Name: bbPress - Homepage
    44 *
    55 * @package bbPress
    … …  
    1616get_header(); ?>
    1717
    18 
    1918        <main id="main" class="wp-block-group alignfull site-main is-layout-constrained wp-block-group-is-layout-constrained" role="main">
    2019
    … …  
    2524                <?php do_action( 'bbp_template_notices' ); ?>
    2625
    27                 <section class="three-up" id="forum-welcome">
    28                         <div>
    29                                 <div class="info-box">
    30                                         <span class="dashicons <?php
    31                                                 /* translators: dashicon class name for 'Welcome to Support' section. Do not translate into your own language. */
    32                                                 esc_attr_e( 'dashicons-sos', 'wporg-forums' );
    33                                         ?>"></span>
    34                                         <h3><?php _e( 'Welcome to Support', 'wporg-forums' ); ?></h3>
    35                                         <p><?php _e( 'Our community-based Support Forums are a great place to learn, share, and troubleshoot.', 'wporg-forums' ); ?></p>
    36                                         <p><?php _e( '<a href="https://wordpress.org/support/welcome/">Get started</a>', 'wporg-forums' ); ?></p>
    37                                 </div>
    38                         </div>
    39                         <div>
    40                                 <div class="info-box">
    41                                         <span class="dashicons <?php
    42                                                 /* translators: dashicon class name for 'Documentation' section. Do not translate into your own language. */
    43                                                 esc_attr_e( 'dashicons-portfolio', 'wporg-forums' );
    44                                         ?>"></span>
    45                                         <h3><?php _e( 'Documentation', 'wporg-forums' ); ?></h3>
    46                                         <p><?php _e( 'Your first stop where you\'ll find information on everything from installing to creating plugins.', 'wporg-forums' ); ?></p>
    47                                         <p><?php _e( '<a href="https://wordpress.org/support/">Explore documentation</a>', 'wporg-forums' ); ?></p>
    48                                 </div>
    49                         </div>
    50                         <div>
    51                                 <div class="info-box">
    52                                         <span class="dashicons <?php
    53                                                 /* translators: dashicon class name for 'Get Involved' section. Do not translate into your own language. */
    54                                                 esc_attr_e( 'dashicons-hammer', 'wporg-forums' );
    55                                         ?>"></span>
    56                                         <h3><?php _e( 'Get Involved', 'wporg-forums' ); ?></h3>
    57                                         <p><?php _e( 'The Support Handbook is great for tips, tricks, and advice regarding giving the best support possible.', 'wporg-forums' ); ?></p>
    58                                         <p><?php _e( '<a href="https://make.wordpress.org/support/handbook/">Explore the Handbook</a>', 'wporg-forums' ); ?></p>
    59                                 </div>
    60                         </div>
     26                <section id="forum-welcome">
     27                        <?php echo do_blocks( '<!-- wp:pattern {"slug":"wporg-support/welcome-cards"} /-->' ); ?>
    6128                </section>
    62 
    63                 <hr />
    6429
    6530                <section>
    6631                        <?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
    67 
    68                         <div id="viewdiv">
    69                                 <ul id="views">
    70                                         <?php wporg_support_get_views(); ?>
    71                                 </ul>
    72                         </div><!-- #viewdiv -->
    7332                </section>
    7433
    75                 <hr />
     34                <section class="forums-homepage-topics">
     35                        <h2 class="has-heading-5-font-size"><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
     36
     37                        <?php echo do_blocks( '<!-- wp:pattern {"slug":"wporg-support/forums-views"} /-->' ); ?>
     38                </section>
    7639
    7740                <section class="clear helpful-links">
    7841                        <div>
    79                                 <h3><?php _e( 'Helpful Links', 'wporg-forums' ); ?></h3>
     42                                <h2 class="has-heading-5-font-size"><?php _e( 'Helpful Links', 'wporg-forums' ); ?></h2>
    8043                                <ul class="meta-list">
    8144                                        <li><?php _e( '<a href="https://wordpress.org/support/article/new_to_wordpress_-_where_to_start/">New to WordPress &mdash; Where to Start</a>', 'wporg-forums' ); ?></li>
    … …  
    8952                <?php do_action( 'bbp_after_main_content' ); ?>
    9053
    91 
    9254        </div>
    9355
Note: See TracChangeset for help on using the changeset viewer.