'General', 'mixed-contents' => 'Mixed Contents'); public function __construct() { $this->render_menu_page(); } public function get_current_tab() { $tab = isset($_GET['tab']) ? $_GET['tab'] : array_keys($this->dashboard_menu_tabs)[0]; return $tab; } /** * Renders our tabs of this menu as nav items */ public function render_page_tabs() { $current_tab = $this->get_current_tab(); foreach ($this->dashboard_menu_tabs as $tab_key => $tab_caption) { $active = $current_tab == $tab_key ? 'nav-tab-active' : ''; echo '' . $tab_caption . ''; } } /** * The menu rendering goes here */ public function render_menu_page() { $tab = $this->get_current_tab(); ?>

render_mixed_content_tab(); break; case 'general': default: //include_once('file-to-handle-this-tab-rendering.php');//If you want to include a file $this->render_general_tab(); break; } ?>
documentation_link_box();?>

'.__("Settings Saved.", 'https-redirection').'

'; $httpsrdrctn_obj = new EHSSL_Htaccess(); $httpsrdrctn_obj->write_to_htaccess(); // clear caching plugins cache if needed // WP Fastest Cache if (isset($GLOBALS["wp_fastest_cache"])) { $wpfc = $GLOBALS["wp_fastest_cache"]; if (method_exists($wpfc, 'deleteCache') && is_callable(array($wpfc, 'deleteCache'))) { $wpfc->deleteCache(true); } } // httpsrdrctn_generate_htaccess(); } $siteSSLurl = get_home_url(null, '', 'https'); // Save data for settings page. if (isset($_POST['ehssl_debug_log_form_submit']) && check_admin_referer('ehssl_debug_settings_nonce')) { $settings['enable_debug_logging'] = isset($_POST['enable_debug_logging']) ? esc_attr($_POST['enable_debug_logging']) : 0; update_option('httpsrdrctn_options', $settings) ?>

' . $siteSSLurl . ''); ?>


/
/

/>

# BEGIN HTTPS Redirection Plugin
# END HTTPS Redirection Plugin

Settings > Permalinks and select any option other than "default".', 'https-redirection');?>

/>



/>