| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) 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,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/blocksy-companion-pro/framework/views/ |
Upload File : |
<?php
if (! defined('ABSPATH')) {
exit;
}
$current_screen = get_current_screen();
if ($current_screen && $current_screen->id === 'update-core') {
return;
}
if (! current_user_can('activate_plugins')) {
return;
}
if (get_option('dismissed-blocksy_theme_version_mismatch_notice', false)) {
return;
}
$updates_url = self_admin_url('update-core.php');
$product_name = 'Blocksy theme';
$slug = 'blocksy';
if ($is_theme_version_ok && ! $is_companion_version_ok) {
$product_name = 'Blocksy Companion plugin';
$data = get_plugin_data(BLOCKSY__FILE__);
$slug = plugin_basename(BLOCKSY__FILE__);
if (blocksy_companion_can_use_premium_code()) {
$product_name = 'Blocksy Companion Pro plugin';
}
}
$messages = [
'title' => sprintf(
// translators: %s is the product name (theme or plugin)
__('Action required - please update %s to the latest version!', 'blocksy-companion'),
$product_name
),
'description' => sprintf(
// translators: %s is the product name (theme or plugin)
__('We detected that you are using an outdated version of %s.', 'blocksy-companion'),
$product_name
),
'action' => sprintf(
// translators: %s is the product name (theme or plugin)
__('In order to take full advantage of all features the core has to offer - please install and activate the latest version of %s.', 'blocksy-companion'),
$product_name
)
];
$notice_attrs = blocksy_attr_to_html([
'class' => 'notice notice-blocksy-theme-version-mismatch',
'data-slug' => $slug,
'data-product-name' => $product_name
]);
?>
<div <?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $notice_attrs;
?>>
<div class="ct-theme-required">
<h2>
<span>
<svg viewBox="0 0 24 24">
<path d="M12,23.6c-1.4,0-2.6-1-2.8-2.3L8.9,20h6.2l-0.3,1.3C14.6,22.6,13.4,23.6,12,23.6z M24,17.8H0l3.1-2c0.5-0.3,0.9-0.7,1.1-1.3c0.5-1,0.5-2.2,0.5-3.2V7.6c0-4.1,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3v3.6c0,1.1,0.1,2.3,0.5,3.2c0.3,0.5,0.6,1,1.1,1.3L24,17.8zM6.1,15.6h11.8c0,0-0.1-0.1-0.1-0.2c-0.7-1.3-0.7-2.9-0.7-4.2V7.6c0-2.8-2.2-5.1-5.1-5.1c-2.8,0-5.1,2.2-5.1,5.1v3.6c0,1.3-0.1,2.9-0.7,4.2C6.1,15.5,6.1,15.6,6.1,15.6z" />
</svg>
</span>
<?php echo wp_kses_post($messages['title']); ?>
</h2>
<p>
<?php echo wp_kses_post($messages['description']); ?>
</p>
<p>
<?php echo wp_kses_post($messages['action']); ?>
</p>
</div>
</div>