コード例 #1
0
<div id="buddypress">                    

    <?php 
//fix boss code with rw_bp_doc_single_group_id()
if (bp_has_groups(array('include' => rw_bp_doc_single_group_id()))) {
    while (bp_groups()) {
        bp_the_group();
        ?>

    <?php 
        do_action('bp_before_group_home_content');
        ?>

    <div id="item-header" role="complementary">

            <?php 
        bp_get_template_part('groups/single/group-header');
        ?>


    </div><!-- #item-header -->


    <div id="primary" class="site-content"> <!-- moved from top -->

       <div id="content" role="main"> <!-- moved from top -->

            <div class="below-cover-photo">

                <div id="group-description">
                    <?php 
コード例 #2
0
<div id="buddypress">

    <?php 
//fix boss codde with rw_bp_doc_single_group_id()
if (bp_has_groups(array('show_hidden' => true, 'include' => rw_bp_doc_single_group_id()))) {
    while (bp_groups()) {
        bp_the_group();
        ?>
        <?php 
        do_action('bp_before_group_home_content');
        ?>

        <div id="item-header" role="complementary">

            <?php 
        bp_get_template_part('groups/single/group-header');
        ?>


        </div><!-- #item-header -->


        <div id="primary" class="site-content"> <!-- moved from top -->

            <div id="content" role="main"> <!-- moved from top -->

                <div class="below-cover-photo">

                    <div id="group-description">
                        <?php 
        bp_group_description();
コード例 #3
0
<?php

global $class;
$is_group_single_doc = '';
if (function_exists('bp_docs_is_doc_edit')) {
    //fix boss code with rw_bp_doc_single_group_id()
    $is_group_single_doc = (bp_docs_is_doc_edit() || bp_docs_is_doc_read() || bp_docs_is_doc_create() || bp_docs_is_doc_history()) && rw_bp_doc_single_group_id(false);
}
if ($is_group_single_doc) {
    $class .= ' group-single';
}
?>

<?php 
// Boxed layout cover
if (boss_get_option('boss_cover_profile')) {
    if (boss_get_option('boss_layout_style') == 'boxed' && (!bp_is_current_component('events') || bp_is_current_component('events') && 'profile' == bp_current_action())) {
        // show here for boxed and if not Events Manager page or if it is My Profile of Events
        if (bp_is_user()) {
            echo buddyboss_cover_photo("user", bp_displayed_user_id());
        }
    }
}
?>

<?php 
if (bp_is_current_component('groups') && !bp_is_group() && !bp_is_user()) {
    ?>
<div class="dir-page-entry">
    <div class="inner-padding">
        <header class="group-header page-header">