From 94d0d58a3ca6c6690a2dc88f31ac5653077b7246 Mon Sep 17 00:00:00 2001 From: John Fraskos Date: Thu, 14 Dec 2023 14:39:06 +0200 Subject: [PATCH] Update three-columns-features.php --- inc/patterns/three-columns-features.php | 93 +++++++++---------------- 1 file changed, 34 insertions(+), 59 deletions(-) diff --git a/inc/patterns/three-columns-features.php b/inc/patterns/three-columns-features.php index 02ba584..f95c7eb 100644 --- a/inc/patterns/three-columns-features.php +++ b/inc/patterns/three-columns-features.php @@ -1,72 +1,47 @@ 'shape-05.svg', - 'title' => __( 'Style Variations', 'raft' ), - ), - array( - 'image' => 'shape-06.svg', - 'title' => __( 'Built-in Patterns', 'raft' ), - ), - array( - 'image' => 'shape-04.svg', - 'title' => __( 'Powered by blocks', 'raft' ), - ), -); +$raft_strings = apply_filters( 'raft_strings', array() ); -$strings = array( - 'title' => __( 'Three columns of features', 'raft' ), +$images = array( + RAFT_URL . 'assets/img/shape-05.svg', + RAFT_URL . 'assets/img/shape-06.svg', + RAFT_URL . 'assets/img/shape-04.svg', ); -$columns_markup = ''; - -foreach ( $columns as $column ) { - $columns_markup .= ''; - $columns_markup .= '
'; - - $columns_markup .= ''; - $columns_markup .= '
'; - $columns_markup .= 'Illustration'; - $columns_markup .= '
'; - $columns_markup .= ''; - - $columns_markup .= ''; - $columns_markup .= '

' . esc_html( $column['title'] ) . '

'; - $columns_markup .= ''; - - $columns_markup .= ''; - $columns_markup .= '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.

'; - $columns_markup .= ''; - - $columns_markup .= '
'; - $columns_markup .= ''; -} - return array( - 'title' => $strings['title'], - 'categories' => array( 'raft/features' ), - 'content' => ' - -
- - -
' . wp_kses_post( $columns_markup ) . '
- - -
- -', + 'title' => __( 'Three Columns of Features', 'raft' ), + 'categories' => array( 'raft/features' ), + 'content' => ' +
+
+
+
Illustration
+

' . esc_html( $raft_strings['feature_title'] ) . '

+

' . esc_html( $raft_strings['feature_description'] ) . '

+
+
+
Illustration
+

' . esc_html( $raft_strings['feature_title'] ) . '

+

' . esc_html( $raft_strings['feature_description'] ) . '

+
+
+
Illustration
+

' . esc_html( $raft_strings['feature_title'] ) . '

+

' . esc_html( $raft_strings['feature_description'] ) . '

+
+
+
+ ', );