From eeaa77b244dd498b5c4c27f3d997733dc18c9ca4 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Wed, 23 Oct 2024 12:57:48 +0200 Subject: [PATCH] Refactor Instagram box component to use Splide slider --- .../components/instagram-box-dev.php | 98 +++++++++---------- templates_user/components/instagram-box.php | 54 ---------- 2 files changed, 47 insertions(+), 105 deletions(-) diff --git a/templates_user/components/instagram-box-dev.php b/templates_user/components/instagram-box-dev.php index c4d96ac..7a1056c 100644 --- a/templates_user/components/instagram-box-dev.php +++ b/templates_user/components/instagram-box-dev.php @@ -1,58 +1,54 @@ -'; - $html .= ''; - $html .= ''; - $html .= ''; - return $html; - } -?> +
Sprawdź nas na Instagramie
- - +
+
+
    + data as $post): ?> + id; + $permalink = $post->permalink; + $mediaUrl = $post->media_url; + $mediaType = $post->media_type; + $description = $post->caption; + ?> +
  • + + + +
  • + +
+
+
- - + instagramFeedBox.mount(); + \ No newline at end of file diff --git a/templates_user/components/instagram-box.php b/templates_user/components/instagram-box.php index 7a1056c..e69de29 100644 --- a/templates_user/components/instagram-box.php +++ b/templates_user/components/instagram-box.php @@ -1,54 +0,0 @@ - - -
Sprawdź nas na Instagramie
- -
-
-
    - data as $post): ?> - id; - $permalink = $post->permalink; - $mediaUrl = $post->media_url; - $mediaType = $post->media_type; - $description = $post->caption; - ?> -
  • - - - -
  • - -
-
-
- - \ No newline at end of file