function wplc_add_user_stylesheet()
{
    if (function_exists('wplc_display_chat_contents')) {
        $show_chat_contents = wplc_display_chat_contents();
    } else {
        $show_chat_contents = 1;
    }
    if ($show_chat_contents >= 1) {
        wp_register_style('wplc-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__));
        wp_enqueue_style('wplc-font-awesome');
        wp_register_style('wplc-style', plugins_url('/css/wplcstyle.css', __FILE__));
        wp_enqueue_style('wplc-style');
    }
    if (function_exists('wplc_ce_activate')) {
        if (function_exists('wplc_ce_load_user_styles')) {
            wplc_ce_load_user_styles();
        }
    }
}
function wplc_add_user_stylesheet()
{
    if (function_exists('wplc_display_chat_contents')) {
        $show_chat_contents = wplc_display_chat_contents();
    } else {
        $show_chat_contents = 1;
    }
    if ($show_chat_contents >= 1) {
        wp_register_style('wplc-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__));
        wp_enqueue_style('wplc-font-awesome');
        wp_register_style('wplc-style', plugins_url('/css/wplcstyle.css', __FILE__));
        wp_enqueue_style('wplc-style');
        global $wplc_pro_version;
        $wplc_ver = str_replace('.', '', $wplc_pro_version);
        $checker = intval($wplc_ver);
        if (function_exists("wplc_pro_version_control") && $checker < 6000) {
            /* old pro version backwards compatibility */
            wp_register_style('wplc-style-pro', plugins_url('/css/wplcstyle_old.css', __FILE__));
            wp_enqueue_style('wplc-style-pro');
        }
        $wplc_settings = get_option('WPLC_SETTINGS');
        if (isset($wplc_settings['wplc_theme'])) {
            $wplc_theme = $wplc_settings['wplc_theme'];
        } else {
            $wplc_theme = "theme-default";
        }
        if (isset($wplc_theme) && $checker >= 6000 || !function_exists("wplc_pro_version_control")) {
            if ($wplc_theme == 'theme-default') {
                wp_register_style('wplc-theme-palette-default', plugins_url('/css/themes/theme-default.css', __FILE__));
                wp_enqueue_style('wplc-theme-palette-default');
            } else {
                if ($wplc_theme == 'theme-1') {
                    wp_register_style('wplc-theme-palette-1', plugins_url('/css/themes/theme-1.css', __FILE__));
                    wp_enqueue_style('wplc-theme-palette-1');
                } else {
                    if ($wplc_theme == 'theme-2') {
                        wp_register_style('wplc-theme-palette-2', plugins_url('/css/themes/theme-2.css', __FILE__));
                        wp_enqueue_style('wplc-theme-palette-2');
                    } else {
                        if ($wplc_theme == 'theme-3') {
                            wp_register_style('wplc-theme-palette-3', plugins_url('/css/themes/theme-3.css', __FILE__));
                            wp_enqueue_style('wplc-theme-palette-3');
                        } else {
                            if ($wplc_theme == 'theme-4') {
                                wp_register_style('wplc-theme-palette-4', plugins_url('/css/themes/theme-4.css', __FILE__));
                                wp_enqueue_style('wplc-theme-palette-4');
                            } else {
                                if ($wplc_theme == 'theme-5') {
                                    wp_register_style('wplc-theme-palette-5', plugins_url('/css/themes/theme-5.css', __FILE__));
                                    wp_enqueue_style('wplc-theme-palette-5');
                                } else {
                                    if ($wplc_theme == 'theme-6') {
                                        /* custom */
                                        /* handled elsewhere */
                                    }
                                }
                            }
                        }
                    }
                }
            }
            if (isset($wplc_settings['wplc_newtheme'])) {
                $wplc_newtheme = $wplc_settings['wplc_newtheme'];
            } else {
            }
            if (isset($wplc_newtheme)) {
                if ($wplc_newtheme == 'theme-1') {
                    wp_register_style('wplc-theme-classic', plugins_url('/css/themes/classic.css', __FILE__));
                    wp_enqueue_style('wplc-theme-classic');
                } else {
                    if ($wplc_newtheme == 'theme-2') {
                        wp_register_style('wplc-theme-modern', plugins_url('/css/themes/modern.css', __FILE__));
                        wp_enqueue_style('wplc-theme-modern');
                    }
                }
            }
            if ($wplc_settings["wplc_settings_align"] == 1) {
                wp_register_style('wplc-theme-position', plugins_url('/css/themes/position-bottom-left.css', __FILE__));
                wp_enqueue_style('wplc-theme-position');
            } else {
                if ($wplc_settings["wplc_settings_align"] == 2) {
                    wp_register_style('wplc-theme-position', plugins_url('/css/themes/position-bottom-right.css', __FILE__));
                    wp_enqueue_style('wplc-theme-position');
                } else {
                    if ($wplc_settings["wplc_settings_align"] == 3) {
                        wp_register_style('wplc-theme-position', plugins_url('/css/themes/position-left.css', __FILE__));
                        wp_enqueue_style('wplc-theme-position');
                    } else {
                        if ($wplc_settings["wplc_settings_align"] == 4) {
                            wp_register_style('wplc-theme-position', plugins_url('/css/themes/position-right.css', __FILE__));
                            wp_enqueue_style('wplc-theme-position');
                        } else {
                            wp_register_style('wplc-theme-position', plugins_url('/css/themes/position-bottom-right.css', __FILE__));
                            wp_enqueue_style('wplc-theme-position');
                        }
                    }
                }
            }
        }
    }
    if (function_exists('wplc_ce_activate')) {
        if (function_exists('wplc_ce_load_user_styles')) {
            wplc_ce_load_user_styles();
        }
    }
}