Server IP : 172.67.157.199 / Your IP : 3.129.247.217 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/cf7-styler/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>