BP_Nouveau_Nav_Customize_Control: render_content ()
呈现控件的内容。
描述
源
文件:bp-templates / bp-nouveau /包括/ customizer-controls.php
Public function render_content() {$id = '自定义控件'。str_replace ( '[', '-', str_replace ( ']', '', $ - > id));$class = '自定义控件'。$ this - >类型;设置美元= " bp_nouveau_appearance [{$ this - >类型}_nav_order]”;数组$ item_nav = ();$ type = ";//它是一个组if ('group' === $this->type) {$guide = __('自定义组导航需要你首先创建一个组。”、“buddyboss”);数组$蛞蝓= ();美元类型=“集团”; if ( isset( $_GET['url'] ) && !empty( $_GET['url'] ) ) { $parse_url = parse_url( $_GET['url'] ); $path_arr = explode( '/', $parse_url['path'] ); if ( 'groups' === $path_arr[1] && '' !== $path_arr[2] ) { $slug = array( $path_arr[2] ); } } // Try to fetch any random group: $random = groups_get_groups( array( 'type' => 'random', 'per_page' => 1, 'slug' => $slug, 'show_hidden' => true, ) ); if ( ! empty( $random['groups'] ) ) { $group = reset( $random['groups'] ); $nav = new BP_Nouveau_Customizer_Group_Nav( $group->id ); $item_nav = $nav->get_group_nav(); } if ( $item_nav ) { $guide = __( 'Drag and drop each tab to change the group navigation order.', 'buddyboss' ); } // It's a user! } else { $item_nav = bp_nouveau_member_customizer_nav(); $type = 'user'; $guide = __( 'Drag and drop each tab to change the profile navigation order.', 'buddyboss' ); } ?>
- get( 'Name' ); // Check if theme is BuddyBoss if ( strpos( $name, 'BuddyBoss' ) !== false && 'user' === $type ) { // If the BuddyBoss theme activated then remove ( Account, Notification abd Message ) tab. if ( ! in_array( $item->slug, array( 'settings', 'notifications', 'messages' ) ) ) { $i += 1; ?>
更新日志
版本 | 描述 |
---|---|
BuddyPress 3.0.0 | 介绍了。 |