1
This commit is contained in:
@@ -41,6 +41,8 @@ $next_site_sync = wp_next_scheduled('igny8_sync_site_data');
|
||||
$next_site_sync_formatted = $next_site_sync ? date_i18n($date_format . ' ' . $time_format, $next_site_sync) : __('Not scheduled', 'igny8-bridge');
|
||||
$available_post_types = igny8_get_supported_post_types();
|
||||
$enabled_post_types = igny8_get_enabled_post_types();
|
||||
$available_taxonomies = igny8_get_supported_taxonomies();
|
||||
$enabled_taxonomies = igny8_get_enabled_taxonomies();
|
||||
$control_mode = igny8_get_control_mode();
|
||||
$woocommerce_enabled = (int) get_option('igny8_enable_woocommerce', class_exists('WooCommerce') ? 1 : 0);
|
||||
$woocommerce_detected = class_exists('WooCommerce');
|
||||
@@ -214,30 +216,7 @@ $webhook_logs = igny8_get_webhook_logs(array('limit' => 10));
|
||||
<?php if ($site_id) : ?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Site ID', 'igny8-bridge'); ?></th>
|
||||
<td>
|
||||
<?php echo esc_html($site_id); ?>
|
||||
<p class="description">
|
||||
<?php _e('Auto-detected from your IGNY8 account. If incorrect, reconnect or manually enter below.', 'igny8-bridge'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php else : ?>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="igny8_site_id_manual"><?php _e('Site ID (Manual)', 'igny8-bridge'); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<input
|
||||
type="number"
|
||||
id="igny8_site_id_manual"
|
||||
name="igny8_site_id"
|
||||
value=""
|
||||
class="regular-text"
|
||||
/>
|
||||
<p class="description">
|
||||
<?php _e('If auto-detection failed, manually enter your IGNY8 Site ID here. You can find it in the IGNY8 app URL: /sites/{site_id}/...', 'igny8-bridge'); ?>
|
||||
</p>
|
||||
</td>
|
||||
<td><?php echo esc_html($site_id); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
@@ -422,7 +401,7 @@ $webhook_logs = igny8_get_webhook_logs(array('limit' => 10));
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('WooCommerce Data', 'igny8-bridge'); ?></th>
|
||||
<th scope="row"><?php _e('WooCommerce Products', 'igny8-bridge'); ?></th>
|
||||
<td>
|
||||
<label>
|
||||
<input
|
||||
@@ -432,7 +411,7 @@ $webhook_logs = igny8_get_webhook_logs(array('limit' => 10));
|
||||
<?php checked($woocommerce_enabled, 1); ?>
|
||||
<?php disabled(!$woocommerce_detected); ?>
|
||||
/>
|
||||
<?php _e('Include products, categories, and inventory during site scans.', 'igny8-bridge'); ?>
|
||||
<?php _e('Sync WooCommerce products and categories.', 'igny8-bridge'); ?>
|
||||
</label>
|
||||
<?php if (!$woocommerce_detected) : ?>
|
||||
<p class="description">
|
||||
@@ -442,32 +421,22 @@ $webhook_logs = igny8_get_webhook_logs(array('limit' => 10));
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Taxonomy ID</th>
|
||||
<th scope="row"><?php _e('Taxonomies to Sync', 'igny8-bridge'); ?></th>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="igny8_taxonomy_id"
|
||||
name="igny8_taxonomy_id"
|
||||
value="<?php echo esc_attr(get_option('igny8_taxonomy_id', '')); ?>"
|
||||
class="regular-text"
|
||||
/>
|
||||
<?php foreach ($available_taxonomies as $taxonomy_slug => $taxonomy_label) : ?>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="igny8_enabled_taxonomies[]"
|
||||
value="<?php echo esc_attr($taxonomy_slug); ?>"
|
||||
<?php checked(in_array($taxonomy_slug, $enabled_taxonomies, true)); ?>
|
||||
/>
|
||||
<?php echo esc_html($taxonomy_label); ?> (<?php echo esc_html($taxonomy_slug); ?>)
|
||||
</label>
|
||||
<br />
|
||||
<?php endforeach; ?>
|
||||
<p class="description">
|
||||
<?php _e('The taxonomy ID used for IGNY8 synchronization.', 'igny8-bridge'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Attribute ID</th>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="igny8_attribute_id"
|
||||
name="igny8_attribute_id"
|
||||
value="<?php echo esc_attr(get_option('igny8_attribute_id', '')); ?>"
|
||||
class="regular-text"
|
||||
/>
|
||||
<p class="description">
|
||||
<?php _e('The attribute ID used for IGNY8 synchronization.', 'igny8-bridge'); ?>
|
||||
<?php _e('Select which taxonomies to synchronize bidirectionally with IGNY8.', 'igny8-bridge'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user