| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * Category Manipulations page view (shell)
- *
- * Renders only the tab bar and an empty content container. Each tab's
- * markup and its (potentially expensive) data is fetched on demand via the
- * studiou_wcpcm_load_tab AJAX handler. This keeps the page-load request
- * lightweight and avoids PHP timeouts on large stores.
- *
- * @since 1.0.0
- * @package Studiou_WC_Product_Cat_Manage
- */
- // If this file is called directly, abort.
- if (!defined('WPINC')) {
- die;
- }
- $tabs = array(
- 'move' => __('Move products between categories', 'studiou-wc-product-cat-manage'),
- 'batch-description' => __('Batch description between categories', 'studiou-wc-product-cat-manage'),
- 'delete-products' => __('Delete products in category', 'studiou-wc-product-cat-manage'),
- 'clear-media' => __('Clear Media Categories', 'studiou-wc-product-cat-manage'),
- 'remove-unassigned' => __('Remove Not Assigned Media', 'studiou-wc-product-cat-manage'),
- 'upvp' => __('Update product variant prices', 'studiou-wc-product-cat-manage'),
- 'notes' => __('Important Notes', 'studiou-wc-product-cat-manage'),
- );
- ?>
- <div class="wrap studiou-wcpcm-wrap">
- <h1><?php echo esc_html__('Category Manipulations', 'studiou-wc-product-cat-manage'); ?></h1>
- <div class="studiou-wcpcm-notice-area">
- <!-- Area for displaying notices -->
- </div>
- <h2 class="nav-tab-wrapper studiou-wcpcm-tabs">
- <?php foreach ($tabs as $slug => $label): ?>
- <a href="#<?php echo esc_attr($slug); ?>"
- class="nav-tab"
- data-tab="<?php echo esc_attr($slug); ?>">
- <?php echo esc_html($label); ?>
- </a>
- <?php endforeach; ?>
- </h2>
- <div id="studiou-wcpcm-tab-content" class="studiou-wcpcm-tab-content">
- <div class="studiou-wcpcm-tab-loading">
- <?php echo esc_html__('Loading...', 'studiou-wc-product-cat-manage'); ?>
- </div>
- </div>
- </div>
|