From acdaa3a6c8b154d1f0ffdcaa0781e78bb9f80de5 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Sat, 3 Feb 2024 21:38:54 +0530 Subject: [PATCH 1/2] chore: add filters to strings --- patterns/call-to-action-1.php | 4 -- patterns/call-to-action-2.php | 6 +- patterns/content-4.php | 6 +- patterns/content-on-background.php | 16 +++--- patterns/content-plain.php | 2 +- patterns/content-with-image.php | 8 +-- patterns/feature-columns-2.php | 16 +++--- patterns/features-grid.php | 65 +++++++++++++++++---- patterns/features-row.php | 12 ++-- patterns/footer.php | 78 ++++++++++++++++++++------ patterns/hero-3.php | 12 ++-- patterns/hero-cover.php | 10 ++-- patterns/testimonial-centered.php | 6 +- patterns/testimonial-on-background.php | 6 +- 14 files changed, 166 insertions(+), 81 deletions(-) diff --git a/patterns/call-to-action-1.php b/patterns/call-to-action-1.php index c75e673..ed56459 100644 --- a/patterns/call-to-action-1.php +++ b/patterns/call-to-action-1.php @@ -6,10 +6,6 @@ */ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); - -$images = array( - // Add image paths here as needed -); ?> diff --git a/patterns/call-to-action-2.php b/patterns/call-to-action-2.php index 4a1ce3f..0032ba2 100644 --- a/patterns/call-to-action-2.php +++ b/patterns/call-to-action-2.php @@ -15,11 +15,11 @@
-

+

-

+

@@ -28,7 +28,7 @@
- +
diff --git a/patterns/content-4.php b/patterns/content-4.php index a66bbf5..c7debb9 100644 --- a/patterns/content-4.php +++ b/patterns/content-4.php @@ -11,7 +11,7 @@
-

+

@@ -19,7 +19,7 @@
-

+

@@ -27,7 +27,7 @@
-

+

diff --git a/patterns/content-on-background.php b/patterns/content-on-background.php index e2e8065..63abaaf 100644 --- a/patterns/content-on-background.php +++ b/patterns/content-on-background.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-09.webp', + apply_filters( 'quickwp/content-on-background/image', QUICKWP_URL . 'assets/images/qwp-img-09.webp' ), ); ?> @@ -19,7 +19,7 @@
-

Overview

+

@@ -27,11 +27,11 @@
-

A content section

+

-

+

@@ -47,7 +47,7 @@
-

+

@@ -55,18 +55,18 @@
-

A content section

+

-

+

- +
diff --git a/patterns/content-plain.php b/patterns/content-plain.php index 48087c0..ed28a4d 100644 --- a/patterns/content-plain.php +++ b/patterns/content-plain.php @@ -11,7 +11,7 @@
-

+

diff --git a/patterns/content-with-image.php b/patterns/content-with-image.php index fcc130d..452b38a 100644 --- a/patterns/content-with-image.php +++ b/patterns/content-with-image.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-02.webp', + apply_filters( 'quickwp/content-with-image/image', QUICKWP_URL . 'assets/images/qwp-img-02.webp' ), ); ?> @@ -29,17 +29,17 @@
-

+

-

+

-
+
diff --git a/patterns/feature-columns-2.php b/patterns/feature-columns-2.php index f2520a8..a7570a2 100644 --- a/patterns/feature-columns-2.php +++ b/patterns/feature-columns-2.php @@ -8,8 +8,8 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-08.webp', - QUICKWP_URL . 'assets/images/qwp-img-06.webp', + apply_filters( 'quickwp/feature-columns-2/item-1/image', QUICKWP_URL . 'assets/images/qwp-img-08.webp' ), + apply_filters( 'quickwp/feature-columns-2/item-2/image', QUICKWP_URL . 'assets/images/qwp-img-06.webp' ), ); ?> @@ -23,16 +23,16 @@
-

+

-

+

-
+
@@ -45,16 +45,16 @@
-

+

-

+

-
+
diff --git a/patterns/features-grid.php b/patterns/features-grid.php index 9a764aa..14beaee 100644 --- a/patterns/features-grid.php +++ b/patterns/features-grid.php @@ -13,11 +13,11 @@
-

+

- +
@@ -30,37 +30,82 @@
-
-

+

-

+

+ +
+ + + +
+ +

+ + + +

+ +
+ + + + +
+ +

+ + + +

-
-
-

+

+ + + +

+ +
+ + + +
+ +

+ + + +

+ +
+ + + +
+ +

-

+

-
diff --git a/patterns/features-row.php b/patterns/features-row.php index 8b0e7e7..4eba39e 100644 --- a/patterns/features-row.php +++ b/patterns/features-row.php @@ -16,11 +16,11 @@
-

+

-

+

@@ -28,11 +28,11 @@
-

+

-

+

@@ -40,11 +40,11 @@
-

+

-

+

diff --git a/patterns/footer.php b/patterns/footer.php index 3b567e3..58c904f 100644 --- a/patterns/footer.php +++ b/patterns/footer.php @@ -5,8 +5,8 @@ */ ?> - -
+ +
@@ -14,51 +14,86 @@
- + + +
+ -
+
+
+
- -

Footer column

+ +

+
- + + + + + + + + +
+ +
- -

Footer column

+ +

+
- + + + + + + + + +
+
- -

Footer column

+ +

+
- + + + + + + + + +
@@ -69,14 +104,23 @@
- -
+ + +
- + \ No newline at end of file diff --git a/patterns/hero-3.php b/patterns/hero-3.php index c18dd0e..3aade76 100644 --- a/patterns/hero-3.php +++ b/patterns/hero-3.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-09.webp', + apply_filters( 'quickwp/hero-3/image', QUICKWP_URL . 'assets/images/qwp-img-09.webp' ), ); ?> @@ -21,7 +21,7 @@
-

+

@@ -29,7 +29,7 @@
    -
  • +
@@ -37,7 +37,7 @@
    -
  • +
@@ -45,7 +45,7 @@
    -
  • +
@@ -59,7 +59,7 @@
- +
diff --git a/patterns/hero-cover.php b/patterns/hero-cover.php index e02dc78..177a20e 100644 --- a/patterns/hero-cover.php +++ b/patterns/hero-cover.php @@ -8,28 +8,28 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-09.webp', + apply_filters( 'quickwp/hero-cover/image', QUICKWP_URL . 'assets/images/qwp-img-09.webp' ), ); ?>
-

+

-

+

-
+
-
+
diff --git a/patterns/testimonial-centered.php b/patterns/testimonial-centered.php index ae4e5d9..8431c1d 100644 --- a/patterns/testimonial-centered.php +++ b/patterns/testimonial-centered.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-04.webp', + apply_filters( 'quickwp/testimonial-centered/image', QUICKWP_URL . 'assets/images/qwp-img-04.webp' ), ); ?> @@ -21,7 +21,7 @@ -

+

@@ -29,7 +29,7 @@ -

+

diff --git a/patterns/testimonial-on-background.php b/patterns/testimonial-on-background.php index 493d56e..abef73d 100644 --- a/patterns/testimonial-on-background.php +++ b/patterns/testimonial-on-background.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QUICKWP_URL . 'assets/images/qwp-img-02.webp', + apply_filters( 'quickwp/testimonial-on-background/image', QUICKWP_URL . 'assets/images/qwp-img-02.webp' ), ); ?> @@ -17,7 +17,7 @@
-

+

@@ -31,7 +31,7 @@ -

+

From a74d1bdd843ee24e84e206dff51f90dd7de372db Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Sat, 3 Feb 2024 16:22:53 +0000 Subject: [PATCH 2/2] chore: fix phpcs --- patterns/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/footer.php b/patterns/footer.php index 58c904f..71c7b10 100644 --- a/patterns/footer.php +++ b/patterns/footer.php @@ -123,4 +123,4 @@
- \ No newline at end of file +