first commit
This commit is contained in:
56
wp-content/themes/aac/template-parts/content.php
Normal file
56
wp-content/themes/aac/template-parts/content.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package aac
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> type="article">
|
||||
<header class="article-header">
|
||||
<a href="<?php echo get_permalink(94); ?>" class="btn-1">
|
||||
<img src="/wp-content/uploads/2025/10/ArrowBendUpLeft.svg" alt="">
|
||||
<span>Wszystkie artykuły</span>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<div class="article-data">
|
||||
<?php if (get_the_category()) : ?>
|
||||
<ol class="article-tags">
|
||||
<?php foreach (get_the_category() as $item) : ?>
|
||||
<li><span><?php echo $item->name; ?></span></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<div class="article-content">
|
||||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'aac' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
wp_kses_post( get_the_title() )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<footer class="article-footer">
|
||||
<div class="footer-title">
|
||||
<h2>Dziękujemy za przeczytanie tego artykułu!</h2>
|
||||
</div>
|
||||
<a href="<?php echo get_permalink(94); ?>" class="btn-3">
|
||||
<span>Wszystkie artykuły</span>
|
||||
<img src="/wp-content/uploads/2025/10/ArrowRight.svg" alt="">
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user