Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/click-to-chat-for-whatsapp/new/inc/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/click-to-chat-for-whatsapp/new/inc/class-ht-ctc-main.php |
<?php
/**
* main file to get started for front end ..
*/
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! class_exists( 'HT_CTC_Main' ) ) :
class HT_CTC_Main {
public function __construct() {
$this->enables();
}
// If feature enabled load that class..
public function enables() {
// 'chat' feature
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/class-ht-ctc-chat.php';
include_once HT_CTC_PLUGIN_DIR . 'new/inc/chat/class-ht-ctc-chat-shortcode.php';
$options = get_option( 'ht_ctc_othersettings' );
// if enable call 'group' feature
if ( isset( $options['enable_group'] ) ) {
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/class-ht-ctc-group.php';
include_once HT_CTC_PLUGIN_DIR . 'new/inc/group/class-ht-ctc-group-shortcode.php';
}
// if enabled call 'share' feature
if ( isset( $options['enable_share'] ) ) {
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/class-ht-ctc-share.php';
include_once HT_CTC_PLUGIN_DIR . 'new/inc/share/class-ht-ctc-share-shortcode.php';
}
}
}
new HT_CTC_Main();
endif; // END class_exists check