| Server IP : 116.153.78.57 / Your IP : 43.159.78.114 Web Server : nginx/1.28.0 System : Linux 1763701629066 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.lengcat.cn/wp-content/plugins/xml-sitemap-feed/inc/compat/ |
Upload File : |
<?php
/**
* Catch Box Pro compatibility
*
* @package XML Sitemap & Google News
*/
namespace XMLSF\Compat;
/**
* Class
*/
class Catch_Box_Pro {
/**
* Admin notices.
*/
public static function admin_notices() {
if ( ! \current_user_can( 'manage_options' ) || ! \catchbox_is_feed_url_present( null ) ) {
return;
}
if ( \XMLSF\sitemaps_enabled( 'sitemap-news' ) || ( \XMLSF\sitemaps_enabled( 'sitemap' ) && 'plugin' === \xmlsf()->sitemap->server_type ) ) {
?>
<div class="notice notice-error fade is-dismissible">
<p>
<?php
\printf( /* Translators: Feed Redirect URL (Theme option name), Plugn name, Theme Options, Customizer (linked to Customizer page) */
\esc_html__( 'The Catch Box theme option %1$s is not compatible with %2$s. Please go to %3$s in the %4$s and remove it.', 'xml-sitemap-feed' ),
'<strong>' . \esc_html__( 'Feed Redirect URL', 'catch-box' ) . '</strong>',
\esc_html__( 'XML Sitemap & Google News', 'xml-sitemap-feed' ),
'<strong>' . \esc_html__( 'Theme Options', 'catch-box' ) . '</strong>',
'<a href="' . \esc_url( \admin_url( 'customize.php' ) ) . '" target="_blank">' . \esc_html( \translate( 'Customizer' ) ) . '</a>'
);
?>
</p>
</div>
<?php
}
}
}