<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][11146] trunk/src: Groups: Add group type settings fields and a group type list on single group pages.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/11146">11146</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/11146","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>r-a-y</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-09-21 22:59:04 +0000 (Wed, 21 Sep 2016)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Groups: Add group type settings fields and a group type list on single group pages.
- If group types are registered with the `'show_in_create_screen'` parameter, group administrators can set the group type when creating a group or when on a group's "Manage > Settings" page.
- If group types are registered with the `'show_in_list'` parameter, a comma-delimited list of group types can be displayed for a group with the `bp_group_type_list()` function. By default, this function is used on a group page's header.
See <a href="http://buddypress.trac.wordpress.org/ticket/7210">#7210</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpgroupsbpgroupsactionsphp">trunk/src/bp-groups/bp-groups-actions.php</a></li>
<li><a href="#trunksrcbpgroupsbpgroupsscreensphp">trunk/src/bp-groups/bp-groups-screens.php</a></li>
<li><a href="#trunksrcbpgroupsbpgroupstemplatephp">trunk/src/bp-groups/bp-groups-template.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupscreatephp">trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupssingleadmingroupsettingsphp">trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupssinglecoverimageheaderphp">trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressgroupssinglegroupheaderphp">trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpgroupsbpgroupsactionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-groups/bp-groups-actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-groups/bp-groups-actions.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-groups/bp-groups-actions.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -210,6 +210,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> bp_core_redirect( trailingslashit( bp_get_groups_directory_permalink() . 'create/step/' . bp_get_groups_current_create_step() ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Save group types.
+ if ( ! empty( $_POST['group-types'] ) ) {
+ bp_groups_set_group_type( $bp->groups->new_group_id, $_POST['group-types'] );
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Filters the allowed invite statuses.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcbpgroupsbpgroupsscreensphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-groups/bp-groups-screens.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-groups/bp-groups-screens.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-groups/bp-groups-screens.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -931,6 +931,32 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !check_admin_referer( 'groups_edit_group_settings' ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /*
+ * Save group types.
+ *
+ * Ensure we keep types that have 'show_in_create_screen' set to false.
+ */
+ $current_types = bp_groups_get_group_type( bp_get_current_group_id(), false );
+ $current_types = array_intersect( bp_groups_get_group_types( array( 'show_in_create_screen' => false ) ), (array) $current_types );
+ if ( isset( $_POST['group-types'] ) ) {
+ $current_types = array_merge( $current_types, $_POST['group-types'] );
+
+ // Set group types.
+ bp_groups_set_group_type( bp_get_current_group_id(), $current_types );
+
+ // No group types checked, so this means we want to wipe out all group types.
+ } else {
+ /*
+ * Passing a blank string will wipe out all types for the group.
+ *
+ * Ensure we keep types that have 'show_in_create_screen' set to false.
+ */
+ $current_types = empty( $current_types ) ? '' : $current_types;
+
+ // Set group types.
+ bp_groups_set_group_type( bp_get_current_group_id(), $current_types );
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( !groups_edit_group_settings( $_POST['group-id'], $enable_forum, $status, $invite_status ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_core_add_message( __( 'There was an error updating group settings. Please try again.', 'buddypress' ), 'error' );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span></span></pre></div>
<a id="trunksrcbpgroupsbpgroupstemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-groups/bp-groups-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-groups/bp-groups-template.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-groups/bp-groups-template.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -129,6 +129,166 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Output group type directory permalink.
+ *
+ * @since 2.7.0
+ *
+ * @param string $group_type Optional. Group type.
+ */
+function bp_group_type_directory_permalink( $group_type = '' ) {
+ echo esc_url( bp_get_group_type_directory_permalink( $group_type ) );
+}
+ /**
+ * Return group type directory permalink.
+ *
+ * @since 2.7.0
+ *
+ * @param string $group_type Optional. Group type. Defaults to current group type.
+ * @return string Group type directory URL on success, an empty string on failure.
+ */
+ function bp_get_group_type_directory_permalink( $group_type = '' ) {
+
+ if ( $group_type ) {
+ $_group_type = $group_type;
+ } else {
+ // Fall back on the current group type.
+ $_group_type = bp_get_current_group_directory_type();
+ }
+
+ $type = bp_groups_get_group_type_object( $_group_type );
+
+ // Bail when member type is not found or has no directory.
+ if ( ! $type || ! $type->has_directory ) {
+ return '';
+ }
+
+ /**
+ * Filters the group type directory permalink.
+ *
+ * @since 2.7.0
+ *
+ * @param string $value Group type directory permalink.
+ * @param object $type Group type object.
+ * @param string $member_type Group type name, as passed to the function.
+ */
+ return apply_filters( 'bp_get_group_type_directory_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_groups_group_type_base() . '/' . $type->directory_slug ), $type, $group_type );
+ }
+
+/**
+ * Output group type directory link.
+ *
+ * @since 2.7.0
+ *
+ * @param string $group_type Unique group type identifier as used in bp_groups_register_group_type().
+ */
+function bp_group_type_directory_link( $group_type = '' ) {
+ echo bp_get_group_type_directory_link( $group_type );
+}
+ /**
+ * Return group type directory link.
+ *
+ * @since 2.7.0
+ *
+ * @param string $group_type Unique group type identifier as used in bp_groups_register_group_type().
+ * @return string
+ */
+ function bp_get_group_type_directory_link( $group_type = '' ) {
+ if ( empty( $group_type ) ) {
+ return '';
+ }
+
+ return sprintf( '<a href="%s">%s</a>', esc_url( bp_get_group_type_directory_permalink( $group_type ) ), bp_groups_get_group_type_object( $group_type )->labels['name'] );
+ }
+
+/**
+ * Output a comma-delimited list of group types.
+ *
+ * @since 2.7.0
+ * @see bp_get_group_type_list() for parameter documentation.
+ */
+function bp_group_type_list( $group_id = 0, $r = array() ) {
+ echo bp_get_group_type_list( $group_id, $r );
+}
+ /**
+ * Return a comma-delimited list of group types.
+ *
+ * @since 2.7.0
+ *
+ * @param int $group_id Group ID. Defaults to current group ID if on a group page.
+ * @param array|string $args {
+ * Array of parameters. All items are optional.
+ * @type string $parent_element Element to wrap around the list. Defaults to 'p'.
+ * @type array $parent_attr Element attributes for parent element. Defaults to
+ * array( 'class' => 'bp-group-type-list' ).
+ * @type string $label Label to add before the list. Defaults to 'Group Types:'.
+ * @type string $label_element Element to wrap around the label. Defaults to 'strong'.
+ * @type array $label_attr Element attributes for label element. Defaults to array().
+ * }
+ * @return string
+ */
+ function bp_get_group_type_list( $group_id = 0, $r = array() ) {
+ if ( empty( $group_id ) ) {
+ $group_id = bp_get_current_group_id();
+ }
+
+ $r = bp_parse_args( $r, array(
+ 'parent_element' => 'p',
+ 'parent_attr' => array(
+ 'class' => 'bp-group-type-list',
+ ),
+ 'label' => __( 'Group Types:', 'buddypress' ),
+ 'label_element' => 'strong',
+ 'label_attr' => array()
+ ), 'group_type_list' );
+
+ $retval = '';
+
+ if ( $types = bp_groups_get_group_type( $group_id, false ) ) {
+ // Make sure we can show the type in the list.
+ $types = array_intersect( bp_groups_get_group_types( array( 'show_in_list' => true ) ), $types );
+ if ( empty( $types ) ) {
+ return $retval;
+ }
+
+ $before = $after = $label = '';
+
+ // Render parent element.
+ if ( ! empty( $r['parent_element'] ) ) {
+ $parent_elem = new BP_Core_HTML_Element( array(
+ 'element' => $r['parent_element'],
+ 'attr' => $r['parent_attr']
+ ) );
+
+ // Set before and after.
+ $before = $parent_elem->get( 'open_tag' );
+ $after = $parent_elem->get( 'close_tag' );
+ }
+
+ // Render label element.
+ if ( ! empty( $r['label_element'] ) ) {
+ $label = new BP_Core_HTML_Element( array(
+ 'element' => $r['label_element'],
+ 'attr' => $r['label_attr'],
+ 'inner_html' => esc_html( $r['label'] )
+ ) );
+ $label = $label->contents() . ' ';
+
+ // No element, just the label.
+ } else {
+ $label = esc_html( $r['label'] );
+ }
+
+ // Comma-delimit each type into the group type directory link.
+ $label .= implode( ', ', array_map( 'bp_get_group_type_directory_link', $types ) );
+
+ // Retval time!
+ $retval = $before . $label . $after;
+ }
+
+ return $retval;
+ }
+
+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Start the Groups Template Loop.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.0.0
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupscreatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,6 +136,31 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> </fieldset>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php // Group type selection ?>
+ <?php if ( $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ) ): ?>
+
+ <fieldset class="group-create-types">
+ <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>
+
+ <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
+
+ <?php foreach ( $group_types as $type ) : ?>
+ <div class="checkbox">
+ <label for="<?php printf( 'group-type-%s', $type->name ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php esc_attr_e( $type->name ); ?>" /> <?php esc_html_e( $type->labels['name'] ); ?>
+ <?php
+ if ( isset( $type->description ) ) {
+ printf( __( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . $type->description . '</span>' );
+ }
+ ?>
+ </label>
+ </div>
+
+ <?php endforeach; ?>
+
+ </fieldset>
+
+ <?php endif; ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <fieldset class="group-create-invitations">
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupssingleadmingroupsettingsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,6 +67,32 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> </fieldset>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php // Group type selection ?>
+<?php if ( $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ) ): ?>
+
+ <fieldset class="group-create-types">
+ <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>
+
+ <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
+
+ <?php foreach ( $group_types as $type ) : ?>
+ <div class="checkbox">
+ <label for="<?php printf( 'group-type-%s', $type->name ); ?>">
+ <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php esc_attr_e( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php esc_html_e( $type->labels['name'] ); ?>
+ <?php
+ if ( ! empty( $type->description ) ) {
+ printf( __( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );
+ }
+ ?>
+ </label>
+ </div>
+
+ <?php endforeach; ?>
+
+ </fieldset>
+
+<?php endif; ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <fieldset class="group-create-invitations">
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupssinglecoverimageheaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -63,6 +63,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php bp_group_description(); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php bp_group_type_list(); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </div><!-- #item-header-content -->
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressgroupssinglegroupheaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php 2016-09-21 22:53:11 UTC (rev 11145)
+++ trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php 2016-09-21 22:59:04 UTC (rev 11146)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,6 +83,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php bp_group_description(); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php bp_group_type_list(); ?>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <div id="item-buttons">
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span></span></pre>
</div>
</div>
</body>
</html>