Refactor theme files and add new page template

- Updated page-91.php to add an ID to the c-tabs div for better targeting.
- Changed package name in content-page.php from 'brpfinanse' to 'BRPP_prawo_podatki' and updated related function calls.
- Cleaned up content.php by removing commented-out code and unnecessary whitespace.
- Added VSCode settings for live Sass compilation.
- Created a new page template (page-3.php) for the privacy policy with appropriate structure and comments.
This commit is contained in:
2025-11-04 13:57:14 +01:00
parent 687fe6cdaa
commit cae1d0554e
8 changed files with 3603 additions and 7252 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,34 @@
<?php
/**
* Page: Polityka prywatności
*/
get_header();
?>
<main id="primary" class="site-main">
<div class="box-0">
<?php get_template_part('inc/breadcrumb');?>
</div>
<div class="box-1">
<div class="container">
<div class="row">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</div>
</div>
</div>
</main>
<?php
get_footer();

View File

@@ -37,7 +37,7 @@
<div class="box-2">
<div class="container">
<div class="row row-2">
<div class="c-tabs">
<div class="c-tabs" id="oferta">
<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>

View File

@@ -4,7 +4,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package brpfinanse
* @package BRPP_prawo_podatki
*/
?>
@@ -14,7 +14,7 @@
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<?php brpfinanse_post_thumbnail(); ?>
<?php brpp_prawo_podatki_post_thumbnail(); ?>
<div class="entry-content">
<?php
@@ -22,7 +22,7 @@
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'brpfinanse' ),
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'brpp-prawo-podatki' ),
'after' => '</div>',
)
);
@@ -36,7 +36,7 @@
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'brpfinanse' ),
__( 'Edit <span class="screen-reader-text">%s</span>', 'brpp-prawo-podatki' ),
array(
'span' => array(
'class' => array(),

View File

@@ -18,7 +18,6 @@
<path d="M7 1L1 7L7 13" stroke="#9E9E9E"/>
</svg>
</a>
<header class="entry-header">
<?php
if ( is_singular() ) :
@@ -28,7 +27,6 @@
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content(
@@ -56,14 +54,6 @@
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php
brpp_prawo_podatki_posted_by();
brpp_prawo_podatki_posted_on();
?>
</div>
<?php endif; ?>
<!-- <?php brpp_prawo_podatki_entry_footer(); ?> -->
</footer><!-- .entry-footer -->
</div>