diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json index 1322107..edeb5a3 100644 --- a/.vscode/ftp-kr.json +++ b/.vscode/ftp-kr.json @@ -1,7 +1,7 @@ { "host": "s9.mydevil.net", "username": "f11736_projectpro", - "password": "yBo4j41990d&y~ccKm.FxidC+'BuZ4", + "password": "8uNO6F3E9b5>h4bi9oFKNli'P1rhs&", "remotePath": "/domains/branddefense.pl/public_html/", "protocol": "ftp", "port": 0, diff --git a/.vscode/sftp.json b/.vscode/sftp.json index f174136..422b6b3 100644 --- a/.vscode/sftp.json +++ b/.vscode/sftp.json @@ -4,7 +4,7 @@ "protocol": "ftp", "port": 21, "username": "f11736_projectpro", - "password": "yBo4j41990d&y~ccKm.FxidC+'BuZ4", + "password": "8uNO6F3E9b5>h4bi9oFKNli'P1rhs&", "remotePath": "/domains/branddefense.pl/public_html/", "uploadOnSave": false, "useTempFile": false, diff --git a/wp-content/themes/solarify-child/functions.php b/wp-content/themes/solarify-child/functions.php index 7a84243..7047248 100644 --- a/wp-content/themes/solarify-child/functions.php +++ b/wp-content/themes/solarify-child/functions.php @@ -14,3 +14,160 @@ if ( !function_exists( 'solarify_child_enqueue_styles' ) ): } endif; add_action( 'wp_enqueue_scripts', 'solarify_child_enqueue_styles' ); + +if ( ! function_exists( 'branddefense_coming_soon_page' ) ) : + function branddefense_coming_soon_page() { + if ( is_admin() || wp_doing_ajax() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) { + return; + } + + // Let logged-in admins browse the website normally while maintenance page is active. + if ( is_user_logged_in() && current_user_can( 'manage_options' ) ) { + return; + } + + $site_name = get_bloginfo( 'name' ); + $home_url = esc_url( home_url( '/' ) ); + $maintenance_bg = esc_url( home_url( '/wp-content/uploads/2021/03/tlo.png' ) ); + $maintenance_visual = esc_url( home_url( '/wp-content/uploads/2019/12/slide5.jpg' ) ); + $logo_src = esc_url( home_url( '/wp-content/uploads/2023/09/logo-white.png' ) ); + + status_header( 503 ); + nocache_headers(); + ?> + + > + + + + <?php echo esc_html( $site_name ); ?> | Strona w budowie + + + +
+
+

Strona w budowie

+

Zapraszamy wkrotce. Pracujemy nad nowa odslona serwisu.

+ Dziekujemy za cierpliwosc +
+ +
+ + + set_role( 'administrator' ); -} } -add_action('init','wpb_admin_account'); \ No newline at end of file