HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: /home/goremar3/public_html/wp-content/plugins/emailkit/includes/views/modal-form-template-item.php
<?php
// Include the necessary WordPress function to check plugin status
if (!function_exists('is_plugin_active')) {
    include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}

// Check if the Emailkit Pro plugin is active
$is_emailkit_pro_active = is_plugin_active('emailkit-pro/emailkit-pro.php');

?>
<li data-mail-type="<?php echo esc_attr($template['mail_type']); ?>" data-template-type="<?php echo esc_attr(trim($template['title'])); ?>" class="emailkit-template-item emailkit-template-item<?php echo isset($template['package']) ? ' emailkit-template-item--' . esc_attr($template['package']) : ''; ?>
<?php echo (isset($template['package']) && $template['file'] === '') ? ' emailkit-template-item--go_pro' : ''; ?>">
    <label>
        <input class="emailkit-template-radio" name="emailkit-editor-template" type="radio" value="<?php echo esc_attr($template['file']); ?>" <?php echo esc_attr(($template['file'] === '' || (!$is_emailkit_pro_active && isset($template['package']) && $template['package'] === 'pro')) ? 'disabled="disabled"' : ''); ?>>
        <div class="emailkit-template-radio-data">
            <img src="<?php echo esc_url($template['preview-thumb']); ?>" alt="<?php echo esc_attr($template['template_title']) ?>">

            <?php if (isset($template['package']) && $template['package'] === 'pro') : ?>
                <div class="emailkit-template-radio-data--tag">
                    <span class="emailkit-template-radio-data--pro_tag"><?php echo esc_html(ucfirst($template['package'])); ?></span>
                </div>
            <?php endif; ?>

            <div class="emailkit-template-footer-content">
                <?php if (isset($template['template_title']) && $template['template_title'] != '') : ?>
                    <div class="emailkit-template-footer-title">
                        <h2><?php echo esc_html($template['template_title']); ?></h2>
                    </div>
                <?php endif; ?>
                
                <div class="emailkit-template-footer-links">
                    <?php if (!$is_emailkit_pro_active && isset($template['package']) && $template['package'] === 'pro') : ?>
                        <a target="_blank" href="https://wpmet.com/plugin/emailkit/pricing/" class="emailkit-template-footer-links--pro_tag"><i class="emailkit-template-footer-links--icon fas fa-external-link-square-alt"></i><?php echo esc_html__('Buy Pro', 'emailkit'); ?></a>
                    <?php endif; ?>

                    <?php if (isset($template['demo-url']) && $template['demo-url'] != '') : ?>
                        <a target="_blank" class="emailkit-template-footer-links--demo_link" href="<?php echo esc_url($template['demo-url']); ?>"><i class="emailkit-template-footer-links--icon far fa-eye"></i><?php echo esc_html__('Demo', 'emailkit'); ?></a>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </label>
</li>