PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
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
← All changes | includes/features/bbp_voting.php +36 -36 1.3.32.2.0 View file →
@@ -1,36 +1,36 @@
1 -<?php
2 -namespace features;
3 -
4 -class bbp_voting {
5 - function __construct() {
6 - $this->include_files();
7 - $this->load_functions();
8 - }
9 -
10 - public function include_files() {
11 - define( 'BBPC_VOTE_PATH', plugin_dir_path( __FILE__ ) . 'bbp_voting/' );
12 -
13 - // The plugin basename, "folder/file.php"
14 - $plugin = plugin_basename( __FILE__ );
15 -
16 - // Helpers are helpful.
17 - require_once BBPC_VOTE_PATH . 'helpers.php';
18 -
19 - }
20 -
21 - public function load_functions() {
22 - // Require only the appropriate files.
23 - if ( wp_doing_ajax() ) {
24 - // Ajax.
25 - require_once BBPC_VOTE_PATH . 'ajax.php';
26 - } elseif ( is_admin() ) {
27 - require_once BBPC_VOTE_PATH . 'metabox.php';
28 - } else {
29 - // Frontend.
30 - require_once BBPC_VOTE_PATH . 'frontend.php';
31 - }
32 -
33 - }
34 -}
35 -
36 -
1 +<?php
2 +namespace features;
3 +
4 +class bbp_voting {
5 + function __construct() {
6 + $this->include_files();
7 + $this->load_functions();
8 + }
9 +
10 + public function include_files() {
11 + define( 'FORUMAX_VOTE_PATH', plugin_dir_path( __FILE__ ) . 'bbp_voting/' );
12 +
13 + // The plugin basename, "folder/file.php"
14 + $plugin = plugin_basename( __FILE__ );
15 +
16 + // Helpers are helpful.
17 + require_once FORUMAX_VOTE_PATH . 'helpers.php';
18 +
19 + }
20 +
21 + public function load_functions() {
22 + // Require only the appropriate files.
23 + if ( wp_doing_ajax() ) {
24 + // Ajax.
25 + require_once FORUMAX_VOTE_PATH . 'ajax.php';
26 + } elseif ( is_admin() ) {
27 + require_once FORUMAX_VOTE_PATH . 'metabox.php';
28 + } else {
29 + // Frontend.
30 + require_once FORUMAX_VOTE_PATH . 'frontend.php';
31 + }
32 +
33 + }
34 +}
35 +
36 +