This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $vap, $vap_settings; | |
if( isset( $_REQUEST['vap_setting_save'] ) && isset( $_REQUEST['vap_setting'] ) && $_REQUEST['vap_setting'] != '' ) { | |
do_action( 'vap_save_settings', $_POST ); | |
} | |
echo '<div class="wrap vap_content">'; | |
if( isset( $_SESSION['vap_cfg_msg_status'] ) && $_SESSION['vap_cfg_msg_status'] ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !class_exists ( 'VAP_Settings' ) ) { | |
class VAP_Settings { | |
function __construct(){ | |
add_action( "vap_save_settings", array( $this, "vap_save_settings_func" ), 10 , 1 ); | |
add_action( 'wp_ajax_vap_setting_dellastsync', array( $this, 'vap_setting_dellastsync' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: VIN Articles Post | |
Plugin URI: https://www.vinpractice.com/ | |
Description: Sync / import CDP articles from VIN Api | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vapSyncCategories = []; | |
var vapAllSuccess = true; | |
var vapRunning = false; | |
function vapGetCategoryArticles(categoryIndex, pageIndex) { | |
var post_data = { | |
action: 'vap_sync_start', | |
on_sync: true, | |
category_id: vapSyncCategories[categoryIndex].id, | |
category_wpid: vapSyncCategories[categoryIndex].wpid, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !class_exists ( 'VAP_Sync' ) ) { | |
class VAP_Sync { | |
function __construct() { | |
$vap_settings = get_option( 'vap_setting' ); | |
$this->api_url = isset( $vap_settings['vap_api_url'] ) ? $vap_settings['vap_api_url'] : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RT_Sync { | |
function __construct() { | |
$rt_settings = get_option( 'rentalist_setting' ); | |
$this->api_url = isset( $rt_settings['rt_api_url'] ) ? $rt_settings['rt_api_url'] : ''; | |
$this->api_key = isset( $rt_settings['rt_api_key'] ) ? $rt_settings['rt_api_key'] : ''; | |
$this->project_id = isset( $rt_settings['rt_project_id'] ) ? $rt_settings['rt_project_id'] : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// cek apakah form telah di submit | |
if (isset($_POST["submit"])) { | |
// form telah disubmit, proses data | |
// ambil nilai form | |
$username = htmlentities(strip_tags(trim($_POST["username"]))); | |
$password = htmlentities(strip_tags(trim($_POST["password"]))); | |
// siapkan variabel untuk menampung pesan error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !class_exists ( 'VAP_Settings' ) ) { | |
class VAP_Settings { | |
function __construct(){ | |
add_action( "vap_save_settings", array( $this, "vap_save_settings_func" ), 10 , 1 ); | |
add_action( 'wp_ajax_vap_setting_dellastsync', array( $this, 'vap_setting_dellastsync' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: VIN Articles Post | |
Plugin URI: https://www.vinpractice.com/ | |
Description: Sync / import CDP articles from VIN Api | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vapSyncCategories = []; | |
var vapAllSuccess = true; | |
var vapRunning = false; | |
function vapGetCategoryArticles(categoryIndex, pageIndex) { | |
var post_data = { | |
action: 'vap_sync_start', | |
on_sync: true, | |
category_id: vapSyncCategories[categoryIndex].id, | |
category_wpid: vapSyncCategories[categoryIndex].wpid, |