summaryrefslogtreecommitdiffhomepage
path: root/includes
diff options
context:
space:
mode:
authortradam <[email protected]>2025-11-18 23:46:33 +0000
committertradam <[email protected]>2025-11-18 23:46:33 +0000
commit05706ec17d5c359ba86aa9cdd7685e637b4e25ab (patch)
tree288952ddd1ce9b84bdd71021b123137730e8679f /includes
parent1743bc1b52f390e3942158fa7e911417bc869ee3 (diff)
downloadmalcz-wordpress-theme-main.tar.gz
malcz-wordpress-theme-main.zip
Diffstat (limited to 'includes')
-rw-r--r--includes/section-archive.php12
-rwxr-xr-xincludes/section-content.php10
2 files changed, 22 insertions, 0 deletions
diff --git a/includes/section-archive.php b/includes/section-archive.php
new file mode 100644
index 0000000..c41a57d
--- /dev/null
+++ b/includes/section-archive.php
@@ -0,0 +1,12 @@
+<?php if(have_posts()): while(have_posts()): the_post(); ?>
+ <a href="<?php the_permalink();?>" class="pico-delinkify secondary">
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <h3 class="entry-title"><?php the_title(); ?></h3>
+ <div class="entry-content">
+ <?php the_excerpt(); ?>
+ </div>
+ </article>
+ </a>
+<?php endwhile; else: ?>
+ <p><?php esc_html_e('Sorry, no posts matched your criteria.'); ?></p>
+<?php endif; ?> \ No newline at end of file
diff --git a/includes/section-content.php b/includes/section-content.php
new file mode 100755
index 0000000..5d0262d
--- /dev/null
+++ b/includes/section-content.php
@@ -0,0 +1,10 @@
+<?php if(have_posts()): while(have_posts()): the_post(); ?>
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <h2 class="entry-title"><?php the_title(); ?></h2>
+ <div class="entry-content">
+ <?php the_content(); ?>
+ </div>
+ </article>
+<?php endwhile; else: ?>
+ <p><?php esc_html_e('Sorry, no posts matched your criteria.'); ?></p>
+<?php endif; ?> \ No newline at end of file