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:
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
34
wp-content/themes/brpfinanse/page-3.php
Normal file
34
wp-content/themes/brpfinanse/page-3.php
Normal 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();
|
||||
@@ -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>
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user