post_title : esc_html__( 'Coming Soon', 'powerkit' ); return $title; } } /** * Template */ public function template() { $page_id = get_option( 'powerkit_coming_soon_page' ); if ( $page_id ) { // Get page object. $object = get_post( $page_id ); // Get title. $title = $object ? $object->post_title : esc_html__( 'Coming Soon', 'powerkit' ); // Get content. $content = $object ? $object->post_content : esc_html__( 'Get Ready... Something Really Cool Is Coming Soon', 'powerkit' ); // Set template path. $template_path = apply_filters( 'powerkit_coming_soon_template', POWERKIT_CS_TEMPLATES . '/default.php' ); if ( ! file_exists( $template_path ) ) { wp_die( 'Template file does not exist!' ); } include_once $template_path; } die(); } /** * Register the stylesheets for the public-facing side of the site. */ public function wp_enqueue_scripts() { // Styles. wp_enqueue_style( 'powerkit-coming-soon', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-coming-soon.css' ), array(), powerkit_get_setting( 'version' ), 'all' ); // Add RTL support. wp_style_add_data( 'powerkit-coming-soon', 'rtl', 'replace' ); } }