Update FTP and database configuration for brpp.pl

This commit is contained in:
2025-11-03 21:32:39 +01:00
parent 8604599c46
commit f632e95630
4 changed files with 200 additions and 187 deletions

30
.vscode/ftp-kr.json vendored
View File

@@ -1,17 +1,17 @@
{ {
"host": "host117523.hostido.net.pl", "host": "brpp.pl",
"username": "www@brpp.pagedev.pl", "username": "strona@brpp.pl",
"password": "LmjPPmby7uexMf7FGdSF", "password": "nwQQzlTpxh2VC0l5rkwr",
"remotePath": "/public_html", "remotePath": "/brpp.pl/",
"protocol": "ftp", "protocol": "ftp",
"port": 0, "port": 21,
"fileNameEncoding": "utf8", "fileNameEncoding": "utf8",
"autoUpload": true, "autoUpload": true,
"autoDelete": false, "autoDelete": false,
"autoDownload": false, "autoDownload": false,
"ignoreRemoteModification": true, "ignoreRemoteModification": true,
"ignore": [ "ignore": [
".git", ".git",
"/.vscode" "/.vscode"
] ]
} }

12
.vscode/sftp.json vendored Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "brpp.pl",
"host": "brpp.pl",
"protocol": "ftp",
"port": 21,
"username": "strona@brpp.pl",
"password": "nwQQzlTpxh2VC0l5rkwr",
"remotePath": "/brpp.pl/",
"uploadOnSave": false,
"useTempFile": false,
"openSsh": false
}

View File

@@ -20,16 +20,16 @@
// ** Database settings - You can get this info from your web host ** // // ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ /** The name of the database for WordPress */
define( 'DB_NAME', 'host117523_brpp' ); define( 'DB_NAME', "00349672_prawopodatki" );
/** Database username */ /** Database username */
define( 'DB_USER', 'host117523_brpp' ); define( 'DB_USER', "00349672_prawopodatki" );
/** Database password */ /** Database password */
define( 'DB_PASSWORD', 'fUF8gjYE46t2zWjafdq3' ); define( 'DB_PASSWORD', "Yx7aMRxrf2I7ItnMBBDQ" );
/** Database hostname */ /** Database hostname */
define( 'DB_HOST', 'localhost' ); define( 'DB_HOST', "mysql8" );
/** Database charset to use in creating database tables. */ /** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' ); define( 'DB_CHARSET', 'utf8mb4' );

View File

@@ -1,181 +1,182 @@
<?php <?php
/**
* Page: Nasze usługi
*/
get_header(); /**
* Page: Nasze usługi
*/
$box1 = get_field('box-1'); get_header();
$box2 = get_field('box-2');
$box3 = get_field('box-3'); $box1 = get_field('box-1');
$box4 = get_field('box-4'); $box2 = get_field('box-2');
$box3 = get_field('box-3');
$box4 = get_field('box-4');
?> ?>
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<div class="box-0"> <div class="box-0">
<?php get_template_part('inc/breadcrumb');?> <?php get_template_part('inc/breadcrumb'); ?>
</div>
<div class="box-1">
<div class="container">
<div class="row">
<div class="col col-1">
<div class="box-head">
<?php echo $box1['title']; ?>
</div>
<div class="box-text">
<p><?php echo esc_html($box1['text']); ?></p>
</div>
<?php if ( isset( $box1['btn']['title'] ) and $box1['btn']['title'] !== '') : ?>
<a class="btn_3" href="<?php echo esc_url($box1['btn']['url']); ?>" target="<?php echo esc_attr($box1['btn']['target'] ?: '_self'); ?>">
<?php echo esc_html($box1['btn']['title']); ?>
</a>
<?php endif; ?>
</div> </div>
</div>
</div>
</div>
<div class="box-1"> <div class="box-2">
<div class="container"> <div class="row row-1">
<div class="row"> <div class="col col-1">
<div class="col col-1"> <img src="<?php echo esc_url($box2['img']); ?>" alt="">
<div class="box-head"> </div>
<?php echo $box1['title']; ?> </div>
</div>
<div class="box-text"> <div class="container">
<p><?php echo esc_html($box1['text']); ?></p> <div class="row row-2">
</div> <div class="c-tabs">
<?php if($box1['btn']['title'] !== '') : ?> <ul class="c-tabs--nav">
<a class="btn_3" href="<?php echo esc_url($box1['btn']['url']); ?>" target="<?php echo esc_attr($box1['btn']['target'] ?: '_self'); ?>"> <?php foreach ($box2['tabs'] as $i => $tab) : ?>
<?php echo esc_html($box1['btn']['title']); ?> <li tab_id="<?= $i + 1; ?>" <?= $i === 0 ? 'class="active"' : ''; ?>><?= esc_html($tab['tab_name']); ?></li>
</a> <?php endforeach; ?>
<?php endif; ?> </ul>
<div class="c-tabs--content">
<?php foreach ($box2['tabs'] as $tab_id => $tab) : ?>
<div tab_id="<?= $tab_id + 1; ?>" class="c-tab--item" <?= $i === 0 ? 'style="display: block;"' : ''; ?>>
<div class="t-row t-row-1">
<div class="t-col t-col-1">
<div class="t-head">
<h2><?= esc_html($tab['card_description']['title']); ?></h2>
</div> </div>
</div> <div class="t-text">
</div> <p><?= esc_html($tab['card_description']['text']); ?></p>
</div>
<div class="box-2">
<div class="row row-1">
<div class="col col-1">
<img src="<?php echo esc_url($box2['img']); ?>" alt="">
</div>
</div>
<div class="container">
<div class="row row-2">
<div class="c-tabs">
<ul class="c-tabs--nav">
<?php foreach ($box2['tabs'] as $i => $tab) : ?>
<li tab_id="<?= $i + 1; ?>" <?= $i === 0 ? 'class="active"' : ''; ?>><?= esc_html($tab['tab_name']); ?></li>
<?php endforeach; ?>
</ul>
<div class="c-tabs--content">
<?php foreach ($box2['tabs'] as $tab_id => $tab) : ?>
<div tab_id="<?= $tab_id + 1; ?>" class="c-tab--item" <?= $i === 0 ? 'style="display: block;"' : ''; ?>>
<div class="t-row t-row-1">
<div class="t-col t-col-1">
<div class="t-head">
<h2><?= esc_html($tab['card_description']['title']); ?></h2>
</div>
<div class="t-text">
<p><?= esc_html($tab['card_description']['text']); ?></p>
</div>
</div>
</div>
<div class="t-row t-row-2 c-acc-group">
<div class="t-col t-col-1">
<ol class="c-acc-advanced" acc_parent_id="<?= $tab_id + 1; ?>">
<?php foreach ($tab['accordion'] as $parent_item_id => $item) : ?>
<li class="c-acc--item" acc_parent_item_id="<?= $parent_item_id + 1; ?>">
<div class="c-acc--head">
<i class="icon"></i>
<span><?= esc_html($item['title']); ?></span>
</div>
</li>
<?php endforeach; ?>
</ol>
</div>
<div class="t-col t-col-2">
<ol class="c-acc-advanced" acc_child_id="<?= $tab_id + 1 ; ?>">
<?php foreach ($tab['accordion'] as $child_item_id => $item) :
$title = $item['accordion_data']['title'] ?? '';
$text = $item['accordion_data']['text'] ?? '';
$btn = $item['accordion_data']['btn'] ?? [];
$btn_url = $btn['url'] ?? '';
$btn_title = $btn['title'] ?? '';
$btn_target = $btn['target'] ?? '_self';
// if (empty($title) && empty($text) && empty($btn_url) && empty($btn_title)) {
// continue;
// }
?>
<li class="c-acc--item" acc_child_item_id="<?= $child_item_id + 1; ?>">
<div class="c-acc--body">
<?php if (!empty($title)) : ?>
<div class="tab-description--head">
<h3><?= esc_html($title); ?></h3>
</div>
<?php endif; ?>
<?php if (!empty($text)) : ?>
<div class="tab-description--text">
<?= wp_kses_post($text); ?>
</div>
<?php endif; ?>
<?php if (!empty($btn_url) && !empty($btn_title)) : ?>
<a class="btn_2"
href="<?= esc_url($btn_url); ?>"
target="<?= esc_attr($btn_target); ?>">
<?= esc_html($btn_title); ?>
</a>
<?php endif; ?>
</div>
</li>
<?php endforeach; ?>
</ol>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div> </div>
</div>
</div> </div>
</div> <div class="t-row t-row-2 c-acc-group">
</div> <div class="t-col t-col-1">
<ol class="c-acc-advanced" acc_parent_id="<?= $tab_id + 1; ?>">
<div class="box-3"> <?php foreach ($tab['accordion'] as $parent_item_id => $item) : ?>
<div class="container"> <li class="c-acc--item" acc_parent_item_id="<?= $parent_item_id + 1; ?>">
<div class="row"> <div class="c-acc--head">
<i class="icon"></i>
<div class="col col-1"> <span><?= esc_html($item['title']); ?></span>
<img src="<?php echo esc_url($box3['img']); ?>" alt=""> </div>
</div> </li>
<?php endforeach; ?>
<div class="col col-2">
<p><?php echo esc_html($box3['title']); ?></p>
<div class="box-text animate-text">
<?php echo split_text_into_spans(wp_kses_post($box3['text'])); ?>
</div>
<ul>
<?php foreach ($box3['list'] as $item) : ?>
<li><?= esc_html($item['tekst']); ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="box-4">
<div class="container">
<div class="row row-1">
<h2><?php echo esc_html($box4['mini_title']); ?></h2>
</div>
<div class="row row-2">
<ol class="c-acc">
<?php foreach ($box4['faq'] as $i => $item) : ?>
<li class="c-acc--item">
<div class="c-acc--head">
<i class="icon"></i>
<span><?= esc_html($item['title']); ?></span>
</div>
<div class="c-acc--body">
<div class="c-acc--body-text">
<?= $item['text']; ?>
</div>
</div>
</li>
<?php endforeach; ?>
</ol> </ol>
</div>
<div class="t-col t-col-2">
<ol class="c-acc-advanced" acc_child_id="<?= $tab_id + 1; ?>">
<?php foreach ($tab['accordion'] as $child_item_id => $item) :
$title = $item['accordion_data']['title'] ?? '';
$text = $item['accordion_data']['text'] ?? '';
$btn = $item['accordion_data']['btn'] ?? [];
$btn_url = $btn['url'] ?? '';
$btn_title = $btn['title'] ?? '';
$btn_target = $btn['target'] ?? '_self';
// if (empty($title) && empty($text) && empty($btn_url) && empty($btn_title)) {
// continue;
// }
?>
<li class="c-acc--item" acc_child_item_id="<?= $child_item_id + 1; ?>">
<div class="c-acc--body">
<?php if (!empty($title)) : ?>
<div class="tab-description--head">
<h3><?= esc_html($title); ?></h3>
</div>
<?php endif; ?>
<?php if (!empty($text)) : ?>
<div class="tab-description--text">
<?= wp_kses_post($text); ?>
</div>
<?php endif; ?>
<?php if (!empty($btn_url) && !empty($btn_title)) : ?>
<a class="btn_2"
href="<?= esc_url($btn_url); ?>"
target="<?= esc_attr($btn_target); ?>">
<?= esc_html($btn_title); ?>
</a>
<?php endif; ?>
</div>
</li>
<?php endforeach; ?>
</ol>
</div>
</div> </div>
</div> </div>
<?php endforeach; ?>
</div>
</div> </div>
</main> </div>
</div>
</div>
<div class="box-3">
<div class="container">
<div class="row">
<div class="col col-1">
<img src="<?php echo esc_url($box3['img']); ?>" alt="">
</div>
<div class="col col-2">
<p><?php echo esc_html($box3['title']); ?></p>
<div class="box-text animate-text">
<?php echo split_text_into_spans(wp_kses_post($box3['text'])); ?>
</div>
<ul>
<?php foreach ($box3['list'] as $item) : ?>
<li><?= esc_html($item['tekst']); ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="box-4">
<div class="container">
<div class="row row-1">
<h2><?php echo esc_html($box4['mini_title']); ?></h2>
</div>
<div class="row row-2">
<ol class="c-acc">
<?php foreach ($box4['faq'] as $i => $item) : ?>
<li class="c-acc--item">
<div class="c-acc--head">
<i class="icon"></i>
<span><?= esc_html($item['title']); ?></span>
</div>
<div class="c-acc--body">
<div class="c-acc--body-text">
<?= $item['text']; ?>
</div>
</div>
</li>
<?php endforeach; ?>
</ol>
</div>
</div>
</div>
</main>
<?php <?php
get_footer(); get_footer();