|
Server : LiteSpeed System : Linux srv526460274 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : kerao9884 ( 1082) PHP Version : 8.0.30 Disable Function : 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/930931/cwd/admin/partials/ |
Upload File : |
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link saleswonder.biz
* @since 1.0.0
*
* @package Cf7_Customizer
* @subpackage Cf7_Customizer/admin/partials
* @var $is_welcome_done
*/
if (!empty($is_welcome_done)) {
$file = 'tutorials';
} else {
$file = 'welcome';
}
$locale = get_user_locale();
$locale_short = explode('_', $locale)[0];
$filename = plugin_dir_path( CF7CSTMZR_PLUGIN_FILE ) . 'admin/partials/tutorials/'.$file.'-'.$locale_short.'.php';
if (!file_exists($filename)) {
$filename = plugin_dir_path( CF7CSTMZR_PLUGIN_FILE ) . 'admin/partials/tutorials/'.$file.'-en.php';
}
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div class="wrap">
<h1><?php
if (empty($is_welcome_done)) {
_e('Welcome', 'cf7-styler');
} else {
_e('Tutorial', 'cf7-styler');
}
?></h1>
<div class="cf7cstmzr-tutorial-section">
<?php
ob_start();
include $filename;
echo apply_filters('the_content', ob_get_clean());
if (empty($is_welcome_done)) {
?>
<div>
<button class="cf7cstmzr-close-welcome button button-primary"><?php _e('Start styling', 'cf7-styler'); ?></button>
</div>
<?php
}
?>
</div>
</div>