xMiA3LjY0Mzc2IDguNjg5MjMgNy42NDM3NkM3LjgzMTMzIDcuNjQzNzYgNy4xMzU4NiA4LjMzOTIzIDcuMTM1ODYgOS4xOTcxM0M3LjEzNTg2IDEwLjA1NSA3LjgzMTMzIDEwLjc1MDUgOC42ODkyMyAxMC43NTA1QzkuNTQ3MTIgMTAuNzUwNSAxMC4yNDI2IDEwLjA1NSAxMC4yNDI2IDkuMTk3MTNaIiBmaWxsPSJ3aGl0ZSIvPiA8cGF0aCBkPSJNNC4xMjQxMiAxMC4yODAzQzQuMTI0MTIgOS4zOTYxNCAzLjQwNzMzIDguNjc5MzUgMi41MjMxMiA4LjY3OTM1QzEuNjM4OTEgOC42NzkzNSAwLjkyMjExOSA5LjM5NjE0IDAuOTIyMTE5IDEwLjI4MDNDMC45MjIxMTkgMTEuMTY0NiAxLjYzODkxIDExLjg4MTMgMi41MjMxMiAxMS44ODEzQzMuNDA3MzMgMTEuODgxMyA0LjEyNDEyIDExLjE2NDYgNC4xMjQxMiAxMC4yODAzWiIgZmlsbD0id2hpdGUiLz4gPHBhdGggZD0iTTE2LjcxNDggMTcuMjUyM0wxNy43MzA4IDE5LjEwMjRMMTguMzUgMjAuMjE1NUwyMy4xNjAzIDEySDI2Ljg3NTJMMjAuMTQzOSAyMy40OTIzSDE2LjQyOUwxMi45OTk5IDE3LjI1MjNIMTYuNzE0OFoiIGZpbGw9IndoaXRlIi8+IDxwYXRoIGQ9Ik0xOS45NDE0IDI1Ljc5MDVIMTYuNDcyNVYyOS4yMzgySDE5Ljk0MTRWMjUuNzkwNVoiIGZpbGw9IndoaXRlIi8+IDwvc3ZnPg==', 40 ); } /** * Redirect the plugin to web app if connected. * * @return void */ public function handle_redirect() { $settings = new \CookieYes\Lite\Admin\Modules\Settings\Includes\Settings(); global $plugin_page; $menu = str_replace( 'cookie-law-info-', '', $plugin_page ); $pages = $this->get_registered_menus(); if ( ! isset( $pages[ $menu ] ) ) { return; } $page = $pages[ $menu ]; $redirect = isset( $page['redirect'] ) ? $page['redirect'] : false; if ( false === $redirect ) { return; } $redirect = add_query_arg( array( 'website_id' => $settings->get_website_id(), ), $redirect ); wp_safe_redirect( esc_url_raw( $redirect ) ); } /** * Get regisered menus from each module. * * @param boolean $minify Whether to minify or not. * @return array */ public function get_registered_menus( $minify = false ) { $menus = apply_filters( 'cky_registered_admin_menus', array() ); if ( true === $minify ) { foreach ( $menus as $key => $menu ) { unset( $menu['callback'] ); $menus[ $key ] = $menu; } } return $menus; } /** * Main menu template * * @return void */ public function menu_page_template() { echo '
'; } /** * Add custom class to admin body tag. * * @param string $classes List of classes. * @return string */ public function admin_body_classes( $classes ) { if ( true === cky_is_admin_page() ) { $classes .= ' cky-app-admin'; } return $classes; } /** * Returns Jed-formatted localization data. Added for backwards-compatibility. * * @since 4.0.0 * * @param string $domain Translation domain. * @return array The information of the locale. */ public function get_jed_locale_data( $domain ) { $translations = get_translations_for_domain( $domain ); $locale = array( '' => array( 'domain' => $domain, 'lang' => is_admin() && function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale(), ), ); if ( ! empty( $translations->headers['Plural-Forms'] ) ) { $locale['']['plural_forms'] = $translations->headers['Plural-Forms']; } foreach ( $translations->entries as $msgid => $entry ) { $locale[ $msgid ] = $entry->translations; } // If any of the translated strings incorrectly contains HTML line breaks, we need to return or else the admin is no longer accessible. $json = wp_json_encode( $locale ); if ( preg_match( '//', $json ) ) { return array(); } return $locale; } /** * Hide all the unrelated notices from plugin page. * * @since 3.0.0 * @return void */ public function hide_admin_notices() { // Bail if we're not on a CookieYes screen. if ( empty( $_REQUEST['page'] ) || ! preg_match( '/cookie-law-info/', esc_html( wp_unslash( $_REQUEST['page'] ) ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized return; } global $wp_filter; $notices_type = array( 'user_admin_notices', 'admin_notices', 'all_admin_notices', ); foreach ( $notices_type as $type ) { if ( empty( $wp_filter[ $type ]->callbacks ) || ! is_array( $wp_filter[ $type ]->callbacks ) ) { continue; } foreach ( $wp_filter[ $type ]->callbacks as $priority => $hooks ) { foreach ( $hooks as $name => $arr ) { if ( is_object( $arr['function'] ) && $arr['function'] instanceof \Closure ) { unset( $wp_filter[ $type ]->callbacks[ $priority ][ $name ] ); continue; } $class = ! empty( $arr['function'][0] ) && is_object( $arr['function'][0] ) ? strtolower( get_class( $arr['function'][0] ) ) : ''; if ( ! empty( $class ) && preg_match( '/^(?:cky)/', $class ) ) { continue; } if ( ! empty( $name ) && ! preg_match( '/^(?:cky)/', $name ) ) { unset( $wp_filter[ $type ]->callbacks[ $priority ][ $name ] ); } } } } } /** * Load plugin for the first time. * * @return void */ public function load_plugin() { if ( is_admin() && 'true' === get_option( 'cky_first_time_activated_plugin' ) ) { do_action( 'cky_after_first_time_install' ); delete_option( 'cky_first_time_activated_plugin' ); } } /** * Redirect the plugin to dashboard. * * @return void */ public function redirect() { wp_safe_redirect( admin_url( 'admin.php?page=cookie-law-info' ) ); } /** * Modify plugin action links on plugin listing page. * * @param array $links Existing links. * @return array */ public function plugin_action_links( $links ) { $links[] = '' . esc_html__( 'Support', 'cookie-law-info' ) . ''; $links[] = '' . esc_html__( 'Settings', 'cookie-law-info' ) . ''; return array_reverse( $links ); } }
Fatal error: Uncaught Error: Class 'CookieYes\Lite\Admin\Admin' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php:153 Stack trace: #0 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php(95): CookieYes\Lite\Includes\CLI->define_admin_hooks() #1 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/loader.php(31): CookieYes\Lite\Includes\CLI->__construct() #2 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/cookie-law-info.php(148): require_once('/var/www/html/h...') #3 /var/www/html/helitower.com.br/web/wp-settings.php(517): include_once('/var/www/html/h...') #4 /var/www/html/helitower.com.br/web/wp-config.php(99): require_once('/var/www/html/h...') #5 /var/www/html/helitower.com.br/web/wp-load.php(50): require_once('/var/www/html/h...') #6 /var/www/html/helitower.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/h...') #7 /var/www/html/helitower.com.br/web/index. in /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php on line 153