Skip to content

Instantly share code, notes, and snippets.

@wolfcoder
Created June 8, 2022 05:41
Show Gist options
  • Save wolfcoder/dacd28517fbb34e313e3e2b2237931eb to your computer and use it in GitHub Desktop.
Save wolfcoder/dacd28517fbb34e313e3e2b2237931eb to your computer and use it in GitHub Desktop.
sync view
<?php
defined( 'ABSPATH' ) || exit;
global $vap, $vap_sync;
$lastsync_option = $vap_sync->vap_get_lastsync();
$ls_timestamp = $lastsync_option['timestamp'];
$ls_category = $lastsync_option['category'];
$ls_page = $lastsync_option['page'];
?>
<div class="wrap vap_content">
<div id="vap_message" class="updated notice notice-success is-dismissible" style="display: none;">
<p id="vap_message_content"></p>
<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
</div>
<div class="cmrc-table">
<div class="setting-general">
<h2>Sync / Import Vin Articles</h2>
<p>
Please click the belowed button to start the import / sync process.
</p>
<table class="form-table">
<tr valign="top">
<td class="forminp">
<button id="lnk_vap_sync" type="button" class="button" data-mode="0"><?php esc_html_e( 'Start Sync / Import Article' ); ?></button>
<img id="loader_vap_sync" src="<?php echo VAP_IMAGES_URL . 'loading-360.gif' ?>" width="30px" style="border: 0; display: none;" />
</td>
</tr>
<tr valign="top">
<td class="forminp">
<input type="hidden" id="vap_syn_tstamp" value="<?php echo $ls_timestamp ?>" />
<input type="hidden" id="vap_syn_cat" value="<?php echo $ls_category ?>" />
<input type="hidden" id="vap_syn_pg" value="<?php echo $ls_page ?>" />
<div>
<p><strong><span id="vapProcessHeading"></span></strong></p>
</div>
<div id="vapProcessMessage"></div>
</td>
</tr>
</table>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment