diff --git a/assets/_src/less/ascribe/_blog.less b/assets/_src/less/ascribe/_blog.less
index 357abf5..7ba8125 100644
--- a/assets/_src/less/ascribe/_blog.less
+++ b/assets/_src/less/ascribe/_blog.less
@@ -111,3 +111,26 @@
}
}
}
+
+
+//
+// Featured Blog Posts
+//
+.subtemplate--featured {
+ @media (@screen-sm) {
+ .grid__col { flex: 33%; }
+ }
+}
+
+.subtemplate--featured--more {
+ &:extend(.text-center);
+ margin-bottom: 0;
+}
+
+.featured {
+
+}
+
+.featured__title {
+ &:extend(.h4);
+}
diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php
index e047fab..6ae2397 100644
--- a/controller/classes/Subtemplate.php
+++ b/controller/classes/Subtemplate.php
@@ -349,14 +349,20 @@ class Subtemplate {
return $result;
}
- public function blogFeatures($page = "home") {
+
+
+ //
+ // Subtemplate: Featured Blog Posts
+ //
+ public function blogFeatures() {
+
$blogFeatures = '';
- $subtemplateTitle = get_sub_field('section_title');
+ $subtemplateTitle = get_sub_field('section_title');
+
if (have_rows('blog_features','option')) {
while (have_rows('blog_features','option')) {
the_row();
- $title = get_sub_field('feature_title');
$feature = get_sub_field('post');
$postTitle = $feature->post_title;
$url = get_permalink($feature->ID);
@@ -364,43 +370,32 @@ class Subtemplate {
$date = date('F Y', strtotime($feature->post_date));
$image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'blog-feature-crop')[0];
- if ($page == "home") {
- $blogFeatures .= "{$title}
- {$postTitle}
{$postTitle}
-
-