Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (4 years ago)
Author:
netweb
Message:

Build Tools: Add PHPCS with custom bbPress ruleset

  • This changeset adds an initial bbPress PHPCS ruleset
  • Future iteration of the rules in the ruleset can follow later
  • To run the PHPCS check run `grunt phpcs

Fixes #3294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-details.php

    r6574 r7006  
    2626    <div id="bbp-user-navigation">
    2727        <ul>
    28             <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>">
     28            <li class="<?php if ( bbp_is_single_user_profile() ) : ?>current<?php endif; ?>">
    2929                <span class="vcard bbp-user-profile-link">
    3030                    <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a>
     
    3232            </li>
    3333
    34             <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">
     34            <li class="<?php if ( bbp_is_single_user_topics() ) : ?>current<?php endif; ?>">
    3535                <span class='bbp-user-topics-created-link'>
    3636                    <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a>
     
    3838            </li>
    3939
    40             <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>">
     40            <li class="<?php if ( bbp_is_single_user_replies() ) : ?>current<?php endif; ?>">
    4141                <span class='bbp-user-replies-created-link'>
    4242                    <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a>
     
    4545
    4646            <?php if ( bbp_is_engagements_active() ) : ?>
    47                 <li class="<?php if ( bbp_is_single_user_engagements() ) :?>current<?php endif; ?>">
     47                <li class="<?php if ( bbp_is_single_user_engagements() ) : ?>current<?php endif; ?>">
    4848                    <span class='bbp-user-engagements-created-link'>
    4949                        <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Engagements', 'bbpress' ); ?></a>
     
    5353
    5454            <?php if ( bbp_is_favorites_active() ) : ?>
    55                 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>">
     55                <li class="<?php if ( bbp_is_favorites() ) : ?>current<?php endif; ?>">
    5656                    <span class="bbp-user-favorites-link">
    5757                        <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a>
     
    6363
    6464                <?php if ( bbp_is_subscriptions_active() ) : ?>
    65                     <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>">
     65                    <li class="<?php if ( bbp_is_subscriptions() ) : ?>current<?php endif; ?>">
    6666                        <span class="bbp-user-subscriptions-link">
    6767                            <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a>
     
    7070                <?php endif; ?>
    7171
    72                 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
     72                <li class="<?php if ( bbp_is_single_user_edit() ) : ?>current<?php endif; ?>">
    7373                    <span class="bbp-user-edit-link">
    7474                        <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.