plugin_includes(); } function plugin_includes() { add_action( 'template_redirect', array( &$this, 'aitasi_redirect_mm' ) ); } function is_valid_page() { return in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ); } function aitasi_redirect_mm() { if ( is_user_logged_in() ) { //do not display maintenance page } else { if ( ! is_admin() && ! $this->is_valid_page() ) { //show maintenance page $this->load_sm_page(); } } } function load_sm_page() { header( 'HTTP/1.0 503 Service Unavailable' ); include_once( "template/comingsoon.php" ); exit(); } } if ( isset( $_POST['aitasi_subscriber_list'] ) ) { update_option( 'aitasi_subscriber_list', $_POST['aitasi_subscriber_list'] ); header( 'Location: ' . $_SERVER['REQUEST_URI'] ); } $GLOBALS['aitasi_coming_soon'] = new AITASI_COMING_SOON(); } } // Redirect after active function shaped_plugin_aitasi_active_redirect( $plugin ) { if ( $plugin == plugin_basename( __FILE__ ) ) { exit( wp_redirect( admin_url( 'options-general.php' ) ) ); } } add_action( 'activated_plugin', 'shaped_plugin_aitasi_active_redirect' ); // admin menu function add_shaped_plugin_aitasi_options_framwrork() { add_options_page( 'Aitasi Coming Soon Help', '', 'manage_options', 'aitasi-settings', 'aitasi_options_framwrork' ); } add_action( 'admin_menu', 'add_shaped_plugin_aitasi_options_framwrork' ); if ( is_admin() ) : // Load only if we are viewing an admin page function shaped_plugin_aitasi_register_settings() { // Register settings and call sanitation functions register_setting( 'aitasi_p_options', 'aitasi_options', 'aitasi_validate_options' ); } add_action( 'admin_init', 'shaped_plugin_aitasi_register_settings' ); // Function to generate options page function aitasi_options_framwrork() { if ( ! isset( $_REQUEST['updated'] ) ) { $_REQUEST['updated'] = false; } // This checks whether the form has just been submitted. ?>
We've added many extra features in our premium version of this plugin. Let see some amazing features. Buy Premium Version Now.
With the section sorter you can move all the sections up and down by dragging or you can deactivate any section by dragging it to inactive area.
With Background option you can set image, slider, youtube, vimeo or self hosted video as a background of the coming soon landing page home section. Google font is integrated, you can set any font family and font variant of google font.