Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:00:36 AM (17 months ago)
Author:
djpaul
Message:

Templates, Nouveau: string improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php

    r12082 r12104  
    2525        <div id="item-header-content">
    2626
     27            <p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
     28            <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
     29                <?php
     30                /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
     31                printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() );
     32                ?>
     33            </p>
    2734
    28 
    29             <p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
    30             <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></p>
    3135            <?php echo bp_nouveau_group_meta()->group_type_list; ?>
    32 
    3336            <?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
    3437
     
    5356</div><!-- #cover-image-container -->
    5457
    55 <?php   if ( ! bp_nouveau_groups_front_page_description() ) : ?>
    56 <?php if ( bp_nouveau_group_meta()->description ) { ?>
    57     <div class="desc-wrap">
    58         <div class="group-description">
    59         <?php echo bp_nouveau_group_meta()->description; ?>
    60     </div><!-- //.group_description -->
    61 </div>
    62 <?php   } ?>
     58<?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
     59    <?php if ( ! empty( bp_nouveau_group_meta()->description ) ) : ?>
     60        <div class="desc-wrap">
     61            <div class="group-description">
     62            <?php echo esc_html( bp_nouveau_group_meta()->description ); ?>
     63        </div><!-- //.group_description -->
     64    </div>
     65    <?php endif; ?>
    6366<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.