* @copyright Webcraftic 20.11.2019 * @version 1.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Выводит кнопку настроек в шапке интерфейса плагина */ /* add_action( 'wbcr/factory/pages/impressive/header', function ( $plugin_name ) { if ( $plugin_name != WBCR\Titan\Plugin::app()->getPluginName() ) { return; } ?> getPluginName() || defined( 'WTITAN_PLUGIN_ACTIVE' ) ) { return $notices; } if ( ! \WBCR\Titan\Plugin::app()->is_premium() ) { return $notices; } $about_plugin_url = "https://anti-spam.space"; $install_plugin_url = admin_url( 'update.php?action=install-plugin&plugin=anti-spam&_wpnonce=' . wp_create_nonce( 'activate-plugin_titan-security' ) ); $notice_text = sprintf( __( 'Thanks for activating the premium Titan security plugin. You got a bonus, premium Anti-spam plugin. Want to install it now?', "titan-security" ), $about_plugin_url, $install_plugin_url ); $notices[] = [ 'id' => 'wtitan_bonus_suggestion', 'type' => 'success', /*'where' => [ 'edit-comments', 'plugins', 'themes', 'dashboard', 'edit', 'settings' ],*/ 'dismissible' => true, 'dismiss_expires' => 0, 'text' => '

Titan:
' . $notice_text . '

' ]; return $notices; }, 10, 2 ); if ( ! \WBCR\Titan\Plugin::app()->getOption( 'trial_notice_dismissed', false ) ) { /** * Trial notice on plugin pages */ add_action( 'wbcr/factory/pages/impressive/print_all_notices', function ( $plugin, $obj ) { /** @var \Wbcr_Factory427_Plugin $plugin */ /** @var \Wbcr_FactoryPages427_ImpressiveThemplate $obj */ if ( ( \WBCR\Titan\Plugin::app()->premium->is_activate() ) || ( $plugin->getPluginName() != \WBCR\Titan\Plugin::app()->getPluginName() ) || $obj->id == 'license' ) { return; } $notice_text = __( 'Get the free trial edition (no credit card) contains all of the features included in the paid-for version of the product.', 'titan-security' ); $notice_text .= ' ' . __( 'Activate 30 days trial', 'titan-security' ) . ''; $notice_text .= ""; $obj->printWarningNotice( $notice_text ); }, 10, 2 ); /** * Trial notice on all WP admin pages */ add_action( "wbcr/factory/admin_notices", function ( $notices, $plugin_name ) { if ( ( \WBCR\Titan\Plugin::app()->premium->is_activate() ) || ( $plugin_name != \WBCR\Titan\Plugin::app()->getPluginName() ) || ! current_user_can( 'manage_options' ) ) { return $notices; } $notice_text = __( 'Get the free trial edition (no credit card) contains all of the features included in the paid-for version of the product.', 'titan-security' ); $notice_text .= ' ' . __( 'Activate 30 days trial', 'titan-security' ) . ''; $notices[] = [ 'id' => 'get_trial_for_' . \WBCR\Titan\Plugin::app()->getPluginName(), 'type' => 'info', 'dismissible' => true, 'dismiss_expires' => 0, 'text' => "

" . \WBCR\Titan\Plugin::app()->getPluginTitle() . ": " . $notice_text . '

' ]; return $notices; }, 10, 2 ); } // Vulner class require_once WTITAN_PLUGIN_DIR . "/includes/vulnerabilities/boot.php"; // Audit class require_once WTITAN_PLUGIN_DIR . "/includes/audit/boot.php"; // SiteChecker class require_once WTITAN_PLUGIN_DIR . "/includes/sitechecker/boot.php"; // Scanner class require_once WTITAN_PLUGIN_DIR . "/includes/scanner/boot.php"; // Anti-spam class require_once WTITAN_PLUGIN_DIR . "/includes/antispam/boot.php"; // Audit class require_once WTITAN_PLUGIN_DIR . "/includes/check/boot.php";