HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /var/www/html/wpamazingsecret/wp-content/plugins_/woo-discount-rules/v2/App/Views/Admin/Menu.php
<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly
?>
<div class="wdr">
    <div class="wdr-alert-top-right" id="notify-msg-holder"></div>
    <h2 class="wdr_tabs_container nav-tab-wrapper">
        <?php foreach ($tabs as $tab_key => $tab_handler) {
            $params = array(
                'page' => WDR_SLUG,
                'tab' => $tab_key
            );
            $target = '';
            $link = admin_url('admin.php?' . http_build_query($params));
            // if ($tab_key === 'help') {
            //$link = 'https://docs.flycart.org/en/collections/2195266-discount-rules-2-0?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=documentation';
            //  $target = 'target="_blank"';
            //  }
            ?>
            <a class="nav-tab <?php echo esc_attr(($tab_key === $current_tab ? 'nav-tab-active' : '')); ?>"
               style="<?php echo ($tab_key === 'help') ? 'background: cornflowerblue;color: white;' : ''; ?>"
               href="<?php echo esc_url($link); ?>" <?php echo esc_attr($target); ?>><?php echo esc_html($tab_handler->title); ?></a>
        <?php } ?>
        <span class="awdr_version_text"> <?php echo 'v' . (defined('WDR_VERSION') ? WDR_VERSION : '2.0.0 + ') . ' '; ?> </span>
        <?php
        if (isset($on_sale_page_rebuild['available']) && $on_sale_page_rebuild['available']) {
            $additional_class_for_rebuild = '';
            if ($on_sale_page_rebuild['required_rebuild'] === true) {
                $additional_class_for_rebuild = ' need_attention';
            }
            ?>
            <span class="awdr_rebuild_on_sale_rule_page_con<?php echo esc_attr($additional_class_for_rebuild); ?>">
                <button type="button" class="btn btn-danger"
                        id="awdr_rebuild_on_sale_list_on_rule_page" data-awdr_nonce="<?php echo esc_attr(\Wdr\App\Helpers\Helper::create_nonce('wdr_ajax_rule_build_index')); ?>"><?php esc_html_e('Rebuild index', 'woo-discount-rules'); ?></button>
            </span>
            <?php
        }

        do_action('advanced_woo_discount_rules_content_next_to_tabs');
        ?>
    </h2>

    <div class="wdr_settings">
        <?php
        \Wdr\App\Helpers\Helper::displayCompatibleCheckMessages();
        ?>
        <div class="wdr_settings_container">
            <?php
            $handler->render($page);
            ?>
        </div>
        <div class="woo_discount_loader">
            <div class="lds-ripple">
                <div></div><div></div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>