-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
169 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
admin/admin-display.php → admin/CF7_AntiSpam_Admin_Display.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
namespace CF7_AntiSpam\Core; | ||
|
||
/** | ||
* The core plugin class. | ||
* | ||
|
@@ -14,6 +17,11 @@ | |
* @author Codekraft Studio <[email protected]> | ||
*/ | ||
|
||
namespace CF7_AntiSpam\Core; | ||
|
||
use CF7_AntiSpam\Admin\CF7_AntiSpam_Admin_Core; | ||
use CF7_AntiSpam\Admin\CF7_AntiSpam_Admin_Tools; | ||
|
||
/** | ||
* It sets the version, plugin name, and options. It loads | ||
* the dependencies, sets the locale, updates the plugin, and loads the admin and frontend areas | ||
|
@@ -128,40 +136,40 @@ protected function update() { | |
*/ | ||
private function load_dependencies() { | ||
|
||
/** | ||
* The class responsible for orchestrating the actions and filters of the | ||
* core plugin. | ||
*/ | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-loader.php'; | ||
|
||
/** | ||
* The class responsible for defining internationalization functionality | ||
* of the plugin. | ||
*/ | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-i18n.php'; | ||
|
||
/** | ||
* The class responsible for defining frontend functionality | ||
* of the plugin. | ||
*/ | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-frontend.php'; | ||
|
||
/** | ||
* The classes responsible for defining antispam functionality and the related filters | ||
* of the plugin. | ||
*/ | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-filters.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-geoip.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-flamingo.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-b8.php'; | ||
|
||
/** | ||
* The classes responsible for defining admin backend functionality | ||
*/ | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-customizations.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-display.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-tools.php'; | ||
require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin.php'; | ||
// /** | ||
// * The class responsible for orchestrating the actions and filters of the | ||
// * core plugin. | ||
// */ | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-loader.php'; | ||
// | ||
// /** | ||
// * The class responsible for defining internationalization functionality | ||
// * of the plugin. | ||
// */ | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-i18n.php'; | ||
// | ||
// /** | ||
// * The class responsible for defining frontend functionality | ||
// * of the plugin. | ||
// */ | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-frontend.php'; | ||
// | ||
// /** | ||
// * The classes responsible for defining antispam functionality and the related filters | ||
// * of the plugin. | ||
// */ | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-filters.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-geoip.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-flamingo.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/includes/cf7a-antispam-b8.php'; | ||
// | ||
// /** | ||
// * The classes responsible for defining admin backend functionality | ||
// */ | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-customizations.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-display.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin-tools.php'; | ||
// require_once CF7ANTISPAM_PLUGIN_DIR . '/admin/admin.php'; | ||
|
||
$this->loader = new CF7_AntiSpam_Loader(); | ||
} | ||
|
@@ -236,7 +244,7 @@ private function load_admin() { | |
add_action( 'admin_init', array( $tools, 'cf7a_handle_actions' ), 1 ); | ||
|
||
/* the admin area */ | ||
$plugin_admin = new CF7_AntiSpam_Admin( $this->get_plugin_name(), $this->get_version() ); | ||
$plugin_admin = new CF7_AntiSpam_Admin_Core( $this->get_plugin_name(), $this->get_version() ); | ||
|
||
/* add the admin menu */ | ||
$this->loader->add_action( 'admin_menu', $plugin_admin, 'cf7a_admin_menu' ); | ||
|
3 changes: 3 additions & 0 deletions
3
includes/cf7a-activator.php → core/CF7_AntiSpam_Activator.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
namespace CF7_AntiSpam\Core; | ||
|
||
/** | ||
* Fired during plugin activation. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
namespace CF7_AntiSpam\Core; | ||
|
||
/** | ||
* B8 related functions | ||
* | ||
|
3 changes: 3 additions & 0 deletions
3
includes/cf7a-deactivator.php → core/CF7_AntiSpam_Deactivator.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
namespace CF7_AntiSpam\Core; | ||
|
||
/** | ||
* Fired during deactivation. | ||
* | ||
|
Oops, something went wrong.