PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.3.1
Forumax – AI Powered Advanced Community Forum Plugin v1.3.1
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / includes / Admin.php

Admin.php in Forumax – AI Powered Advanced Community Forum Plugin 1.3.1, at includes/Admin.php

35 lines 721 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class Admin {
3 /**
4 * Admin class construct
5 */
6 public function __construct() {
7 add_filter( 'admin_body_class', [ $this, 'body_class' ] );
8 new admin\Menu();
9 }
10
11 /**
12 * Add body class to admin pages.
13 *
14 * @param string $classes Body classes.
15 * @return string
16 */
17 public function body_class( $classes ) {
18 // if current page is ?page=bbp-core in admin.
19 if ( isset( $_GET['page'] ) && 'bbp-core' === $_GET['page'] ) {
20 $classes .= ' bbpc-forum-ui';
21 }
22
23 // if has no pro plan.
24 if ( bbpc_is_premium() !== true ) {
25 $classes .= ' bbpc-no-pro';
26 }
27
28 if ( class_exists( 'BBPC_GEO_ROLES' ) ) {
29 $classes .= ' bbpc-geo-roles';
30 }
31
32 return $classes;
33 }
34 }
35