* @license : GPL2 * */ if (defined('ABSPATH') === false) { exit; } $chatyWidgets = []; $widget = ""; $dateStatus = false; $isDeleted = get_option("cht_is_default_deleted"); $hasChatway = false; if ($isDeleted === false) { $chtWidgetTitle = get_option("cht_widget_title"); $chtWidgetTitle = empty($chtWidgetTitle) ? "Widget-1" : $chtWidgetTitle; $status = get_option("cht_active"); $date = get_option("cht_created_on"); $dateStatus = ($date === false || empty($date)) ? 0 : 1; $channels = get_option("cht_numb_slug"); if(!empty($channels)) { $channels = explode(",", $channels); } else { $channels = []; } if(in_array('Chatway', $channels)) { $hasChatway = true; } $widget = [ 'title' => $chtWidgetTitle, 'index' => 0, 'nonce' => wp_create_nonce("chaty_remove__0"), 'status' => $status, 'created_on' => $date, 'channels' => $channels, ]; $chatyWidgets[] = $widget; } $status = get_option("cht_active"); $widgetURL = admin_url("admin.php?page=chaty-upgrade"); if ($status === false) { $chatyWidgets = []; $widgetURL = admin_url("admin.php?page=chaty-app&widget=0"); } $plugin = 'chatway-live-chat/chatway.php'; $installed_plugins = get_plugins(); ?>
" />
"> "> "> 

">