Making WordPress.org


Ignore:
Timestamp:
12/16/2024 07:53:28 PM (15 months ago)
Author:
johnjamesjacoby
Message:

BuddyPress/bbPress: enfreshen the bb-base theme

See: https://buddypress.trac.wordpress.org/ticket/9262

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php

    r12246 r14281  
    5555
    5656    // Version of CSS
    57     $version = '20221108';
     57    $version = time(); //'20241125';
    5858
    5959    // Base theme styling
     
    7878    <form role="search" method="get" id="searchform" action="">
    7979        <div>
    80             <h3><?php _e( 'Forum Search', 'bborg'); ?></h3>
     80            <h2><?php _e( 'Forum Search', 'bborg'); ?></h2>
    8181            <label class="screen-reader-text hidden" for="ts"><?php _e( 'Search for:', 'bborg' ); ?></label>
    82             <input type="text" value="<?php echo bb_base_topic_search_query(); ?>" name="ts" id="ts" />
    83             <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
     82            <input type="text" value="<?php echo bb_base_topic_search_query(); ?>" name="ts" id="ts" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    8483        </div>
    8584    </form>
     
    9392    <form role="search" method="get" id="searchform" action="">
    9493        <div>
    95             <h3><?php _e( 'Reply Search', 'bborg'); ?></h3>
     94            <h2><?php _e( 'Reply Search', 'bborg'); ?></h2>
    9695            <label class="screen-reader-text hidden" for="rs"><?php _e( 'Search for:', 'bborg' ); ?></label>
    97             <input type="text" value="<?php echo bb_base_reply_search_query(); ?>" name="rs" id="rs" />
    98             <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
     96            <input type="text" value="<?php echo bb_base_reply_search_query(); ?>" name="rs" id="rs" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    9997        </div>
    10098    </form>
     
    108106    <form role="search" method="get" id="searchform" action="">
    109107        <div>
    110             <h3><?php _e( 'Plugin Search', 'bborg'); ?></h3>
     108            <h2><?php _e( 'Plugin Search', 'bborg'); ?></h2>
    111109            <label class="screen-reader-text hidden" for="ps"><?php _e( 'Search for:', 'bborg' ); ?></label>
    112             <input type="text" value="<?php echo bb_base_plugin_search_query(); ?>" name="ps" id="ts" />
    113             <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
     110            <input type="text" value="<?php echo bb_base_plugin_search_query(); ?>" name="ps" id="ts" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    114111        </div>
    115112    </form>
     
    197194        <li class="topic-freshness-author"><?php
    198195            /* translators: %s: reply author link */
    199             printf( __( 'Last reply from: %s', 'bborg' ),
     196            printf( __( 'Last voice: %s', 'bborg' ),
    200197                bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) )
    201198            );
     
    205202        <li class="topic-freshness-time"><?php
    206203            /* translators: %s: date/time link to the latest post */
    207             printf( __( 'Last activity: %s', 'bborg' ), $time_since );
     204            printf( __( 'About %s', 'bborg' ), $time_since );
    208205        ?></li>
    209206    <?php endif; ?>
     
    264261        <li class="forum-freshness-author"><?php
    265262            /* translators: %s: post author link */
    266             printf( __( 'Last post by: %s', 'bborg' ),
     263            printf( __( 'Last voice: %s', 'bborg' ),
    267264                bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) )
    268265            );
     
    272269        <li class="forum-freshness-time"><?php
    273270            /* translators: %s: date/time link to the latest post */
    274             printf( __( 'Last activity: %s', 'bborg' ), $time_since );
     271            printf( __( 'About %s', 'bborg' ), $time_since );
    275272        ?></li>
    276273    <?php endif; ?>
     
    616613}
    617614add_action( 'bbp_template_redirect', 'bb_base_login_redirect', 11 );
     615
     616/**
     617 * Enlarge the single-user-details avatar size.
     618 *
     619 * @author johnjamesjacoby
     620 */
     621function bb_base_override_single_user_details_avatar_size( $size = 150 ) {
     622    return 200;
     623}
     624add_filter( 'bbp_single_user_details_avatar_size', 'bb_base_override_single_user_details_avatar_size' );
Note: See TracChangeset for help on using the changeset viewer.