diff --git a/buddypress/groups/single/admin.php b/buddypress/groups/single/admin.php
index 44dde75..64ab4b4 100755
--- a/buddypress/groups/single/admin.php
+++ b/buddypress/groups/single/admin.php
@@ -25,7 +25,7 @@
diff --git a/buddypress/groups/single/nav/admin.php b/buddypress/groups/single/nav/admin.php
new file mode 100644
index 0000000..c9c2fbd
--- /dev/null
+++ b/buddypress/groups/single/nav/admin.php
@@ -0,0 +1,68 @@
+id );
+
+// Portfolio tabs look different from other groups
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ get_can_be_cloned() ) : ?>
+ $group_type->get_slug(),
+ 'clone' => bp_get_current_group_id(),
+ ),
+ bp_get_groups_directory_permalink() . 'create/step/group-details/'
+ );
+ ?>
+
+
+
+
+
+
+ get_is_portfolio() ) : ?>
+
+
+
+
+
+
+
+
diff --git a/lib/menus.php b/lib/menus.php
index 3af511a..165a36d 100644
--- a/lib/menus.php
+++ b/lib/menus.php
@@ -1101,74 +1101,19 @@ function openlab_group_submenu_nav() {
add_action( 'bp_screens', 'openlab_group_submenu_nav', 1 );
/**
- * Markup for group admin tabs
+ * Markup for group admin tabs.
+ *
+ * @since 1.6.0 Markup was moved into theme template file.
+ *
+ * @param BP_Groups_Group $group Optional. Group object. Deprecated.
+ * @return void
*/
function openlab_group_admin_tabs( $group = false ) {
- global $bp, $groups_template;
-
- if ( ! $group ) {
- $group = ( $groups_template->group ) ? $groups_template->group : $bp->groups->current_group;
+ if ( false !== $group ) {
+ _deprecated_argument( __FUNCTION__, '1.6.0', 'The $group parameter is no longer used.' );
}
- $current_tab = bp_action_variable( 0 );
-
- $group_type = cboxol_get_group_group_type( $group->id );
-
- // Portfolio tabs look different from other groups
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- get_can_be_cloned() ) : ?>
- $group_type->get_slug(),
- 'clone' => bp_get_current_group_id(),
- ),
- bp_get_groups_directory_permalink() . 'create/step/group-details/'
- );
- ?>
-
-
-
-
-
-
- get_is_portfolio() ) : ?>
-
-
-
-
-
-
-
-
-