From 3c6d3e68948e8748b788fb550aecf44d70c1f616 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 6 Jul 2021 15:31:46 -0400 Subject: [PATCH] About page working --- content-templates/content-article.php | 17 ++++++++++ index.php | 31 +++++++++--------- page.php | 45 +++++++++++++++++++++++++++ src/classes.php | 2 +- 4 files changed, 79 insertions(+), 16 deletions(-) create mode 100644 page.php diff --git a/content-templates/content-article.php b/content-templates/content-article.php index 319c927..63c958f 100644 --- a/content-templates/content-article.php +++ b/content-templates/content-article.php @@ -9,6 +9,23 @@ namespace WP_73k; ?> +
+
+

+ %s', + esc_url( get_the_permalink() ), + esc_html( get_the_title() ) + ); + } else { + echo get_the_title(); + } ?> +

+
+
+ +
itemscope itemtype="https://schema.org/CreativeWork">

diff --git a/index.php b/index.php index ca01344..fe6378f 100644 --- a/index.php +++ b/index.php @@ -10,23 +10,24 @@ namespace WP_73k; get_header(); ?>
-
-
- -
+ +
+ - + if ( have_posts() ) { + while ( have_posts() ) { + the_post(); + echo get_template_part( 'content-templates/content', 'article' ); + } + } ?> + + // if ( !is_active_sidebar( 'sidebar' ) ) : ?> + + + +
+
+ +
+ +
+
+

+ %s', + esc_url( get_the_permalink() ), + esc_html( get_the_title() ) + ); + } else { + echo get_the_title(); + } ?> +

+
+ +
+ 'rounded shadow-lg'] ); + } + + the_content(); ?> +
+ +
+ +
+
+classes as $c) { if (substr( $c, 0, strlen( $svgicon_prefix ) ) === $svgicon_prefix) { $icon_slug = str_replace($svgicon_prefix, '', $c); - $object->title = svg_icon_use($icon_slug, 'icon baseline') . $object->title; + $object->title = svg_icon_use($icon_slug, 'icon baseline') . "\\" . $object->title; } } }