Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/26/2023 04:51:42 AM (3 years ago)
Author:
imath
Message:

Remove bp-default altogether from the BuddyPress package

This theme is no more maintained (except for security issues) and will be now available from the BP Classic plugin. Almost 10 years after this announcement: https://bpdevel.wordpress.com/2013/11/13/the-future-of-the-bp-default-theme/ we are finally "removing bp-default altogether from the BuddyPress package".

Thanks for the great job people who contributed to it accomplished. It helped BuddyPress a lot to provide a flexible and powerful foundation for building BuddyPress sites.

Fixes #8904
Closes https://github.com/buddypress/buddypress/pull/105

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/12.0.php

    r13481 r13490  
    500500         */
    501501        return apply_filters_deprecated( 'bp_get_widget_max_count_limit', array( 50, $widget_class ), '12.0.0' );
     502    }
     503
     504    /**
     505     * Determine whether BuddyPress should register the bp-themes directory.
     506     *
     507     * @since 1.9.0
     508     * @deprecated 12.0.0
     509     *
     510     * @return bool True if bp-themes should be registered, false otherwise.
     511     */
     512    function bp_do_register_theme_directory() {
     513        _deprecated_function( __FUNCTION__, '12.0.0' );
     514        $register = false;
     515
     516        /**
     517         * Filters whether BuddyPress should register the bp-themes directory.
     518         *
     519         * @since 1.9.0
     520         * @deprecated 12.0.0
     521         *
     522         * @param bool $register If bp-themes should be registered.
     523         */
     524        return apply_filters_deprecated( 'bp_do_register_theme_directory', array( $register ), '12.0.0' );
     525    }
     526
     527    /**
     528     * Fire the 'bp_register_theme_directory' action.
     529     *
     530     * The main action used registering theme directories.
     531     *
     532     * @since 1.5.0
     533     * @deprecated 12.0.0
     534     */
     535    function bp_register_theme_directory() {
     536        _deprecated_function( __FUNCTION__, '12.0.0' );
     537        /**
     538         * Fires inside the 'bp_register_theme_directory' function.
     539         *
     540         * The main action used registering theme directories.
     541         *
     542         * @since 1.7.0
     543         * @deprecated 12.0.0
     544         */
     545        do_action_deprecated( 'bp_register_theme_directory', array(), '12.0.0' );
    502546    }
    503547}
     
    903947    _deprecated_function( __FUNCTION__, '12.0.0' );
    904948}
     949
     950/**
     951 * Generate the HTML for a list of group moderators.
     952 *
     953 * No longer used.
     954 *
     955 * @deprecated 12.0.0
     956 *
     957 * @param bool $admin_list
     958 * @param bool $group
     959 */
     960function bp_group_mod_memberlist( $admin_list = false, $group = false ) {
     961    global $groups_template;
     962
     963    if ( empty( $group ) ) {
     964        $group =& $groups_template->group;
     965    }
     966
     967    if ( $group_mods = groups_get_group_mods( $group->id ) ) { ?>
     968
     969        <ul id="mods-list" class="item-list<?php if ( $admin_list ) { ?> single-line<?php } ?>">
     970
     971        <?php foreach ( (array) $group_mods as $mod ) { ?>
     972
     973            <?php if ( !empty( $admin_list ) ) { ?>
     974
     975            <li>
     976
     977                <?php
     978                /* translators: %s: member name */
     979                echo bp_core_fetch_avatar(
     980                    array(
     981                        'item_id' => $mod->user_id,
     982                        'type' => 'thumb',
     983                        'width' => 30,
     984                        'height' => 30,
     985                        'alt' => sprintf(
     986                            /* translators: %s: member name */
     987                            __( 'Profile picture of %s', 'buddypress' ),
     988                            bp_core_get_user_displayname( $mod->user_id )
     989                        ),
     990                    )
     991                );
     992                ?>
     993
     994                <h5>
     995                    <?php echo bp_core_get_userlink( $mod->user_id ); ?>
     996
     997                    <span class="small">
     998                        <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => $mod->user_id ) ) ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
     999                        <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link($mod->user_id) ?>"><?php _e( 'Demote to Member', 'buddypress' ) ?></a>
     1000                    </span>
     1001                </h5>
     1002            </li>
     1003
     1004            <?php } else { ?>
     1005
     1006            <li>
     1007
     1008                <?php
     1009                echo bp_core_fetch_avatar(
     1010                    array(
     1011                        'item_id' => $mod->user_id,
     1012                        'type'    => 'thumb',
     1013                        'alt'     => sprintf(
     1014                            /* translators: %s: member name */
     1015                            __( 'Profile picture of %s', 'buddypress' ),
     1016                            bp_core_get_user_displayname( $mod->user_id )
     1017                        ),
     1018                    )
     1019                );
     1020                ?>
     1021
     1022                <h5><?php echo bp_core_get_userlink( $mod->user_id ) ?></h5>
     1023
     1024                <span class="activity">
     1025                    <?php
     1026                    /* translators: %s: human time diff */
     1027                    echo bp_core_get_last_activity( strtotime( $mod->date_modified ), __( 'joined %s', 'buddypress') );
     1028                    ?>
     1029                </span>
     1030
     1031                <?php if ( bp_is_active( 'friends' ) ) : ?>
     1032
     1033                    <div class="action">
     1034                        <?php bp_add_friend_button( $mod->user_id ) ?>
     1035                    </div>
     1036
     1037                <?php endif; ?>
     1038
     1039            </li>
     1040
     1041            <?php } ?>
     1042        <?php } ?>
     1043
     1044        </ul>
     1045
     1046    <?php } else { ?>
     1047
     1048        <div id="message" class="info">
     1049            <p><?php _e( 'This group has no moderators', 'buddypress' ); ?></p>
     1050        </div>
     1051
     1052    <?php }
     1053}
Note: See TracChangeset for help on using the changeset viewer.