| Server IP : 172.67.199.98 / Your IP : 162.159.115.10 Web Server : nginx/1.26.1 System : Linux ecc7dbd2befa 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64 User : www-data ( 82) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/transcargo/admin/screens/ |
Upload File : |
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
$check_token = stm_check_token();
/*Check if demo import plugin installed*/
$demo_plugin_installed = false;
if ( in_array( 'stm-importer/stm-importer.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || ( function_exists( 'is_plugin_active_for_network' ) && is_plugin_active_for_network( 'stm-importer/stm-importer.php' ) ) ) {
$demo_plugin_installed = true;
}
?>
<div class="wrap about-wrap stm-admin-wrap stm-admin-demos-screen">
<?php stm_get_admin_tabs('demos'); ?>
<?php if($demo_plugin_installed): ?>
<?php
if($check_token) {
stm_demo_import();
} else {
echo '<div class="stm-admin-message">';
esc_html_e('Please make sure you have purchased this theme with the account you registered current token', 'transcargo');
echo '</div>';
}
?>
<?php else: ?>
<?php $plugin = stm_get_plugin_tgm_link('stm-importer/stm-importer.php', 'stm-importer'); ?>
<div class="theme-browser">
<div class="theme">
<div class="theme-wrapper">
<div class="theme-screenshot">
<img src="<?php echo stm_get_admin_images_url('importer.svg'); ?>" />
</div>
<h3 class="theme-name"><?php echo transcargo_sanitize_text_field($plugin['name'] . ' ' . $plugin['version']); ?></h3>
<div class="theme-actions">
<?php echo transcargo_sanitize_text_field($plugin['plugin_url_activate']); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>