Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/cookie-law-info/lite/admin/modules/settings/class-settings.php
Назад
<?php /** * Class Settings file. * * @package CookieYes */ namespace CookieYes\Lite\Admin\Modules\Settings; use CookieYes\Lite\Includes\Modules; use CookieYes\Lite\Admin\Modules\Settings\Api\Api; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Handles Cookies Operation * * @class Settings * @version 3.0.0 * @package CookieYes */ class Settings extends Modules { /** * Constructor. */ public function init() { $controller = Includes\Controller::get_instance(); add_filter( 'cky_admin_scripts_config', array( $controller, 'load_common_settings' ) ); add_action( 'cky_after_connect', array( $controller, 'delete_cache' ) ); $this->load_default(); $this->load_apis(); } /** * Load API files * * @return void */ public function load_apis() { new Api(); } /** * Main menu template * * @return void */ public function menu_page_template() { echo '<div id="cky-app"></div>'; } /** * Load default settings to the database. * * @return void */ public function load_default() { if ( false === cky_first_time_install() || false !== get_option( 'cky_settings', false ) ) { return; } $settings = new \CookieYes\Lite\Admin\Modules\Settings\Includes\Settings(); $default = $settings->get_defaults(); $settings->update( $default ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка