load_steps(); } public function maintenance_mode_enabled(): bool { $published = get_option( 'hostinger_maintenance_mode' ); return (bool) $published; } public function get_content(): array { if ( ! $this->maintenance_mode_enabled() ) { return array( 'title' => __( 'Website is published', 'hostinger' ), 'description' => __( 'You can access this guide material any time when updating your website', 'hostinger' ), 'btn' => array( 'text' => __( 'Preview website', 'hostinger' ), 'class' => 'hsr-btn hsr-primary-btn hsr-publish-btn', 'url' => home_url(), ), ); } return array( 'title' => __( 'Set up your website', 'hostinger' ), 'description' => __( 'Follow our guided checklist to setup your website', 'hostinger' ), 'btn_text' => __( 'Publish website', 'hostinger' ), 'btn' => array( 'text' => __( 'Publish website', 'hostinger' ), 'class' => 'hsr-btn hsr-primary-btn hsr-publish-btn', 'url' => '#', ), ); } }