From 1e13e2117959f49530d9ae11b8649c0ecbaaf337 Mon Sep 17 00:00:00 2001 From: Catalin Date: Tue, 24 Oct 2023 22:55:23 +0300 Subject: [PATCH 1/3] HDX-9242 update Twitter logo to X --- src/footer.php | 6 +++++- src/front-page.php | 6 +++++- src/functions.php | 4 ++-- src/scss/_front.scss | 7 +++++-- src/scss/_menus.scss | 8 ++++++++ 5 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/footer.php b/src/footer.php index 0fbcd8c..73cd73c 100755 --- a/src/footer.php +++ b/src/footer.php @@ -122,7 +122,11 @@ Blogs Contact Us
- + + + + +
diff --git a/src/front-page.php b/src/front-page.php index 6a393e9..ee169df 100644 --- a/src/front-page.php +++ b/src/front-page.php @@ -82,7 +82,11 @@
- +

diff --git a/src/functions.php b/src/functions.php index 0ba2694..082420f 100644 --- a/src/functions.php +++ b/src/functions.php @@ -464,8 +464,8 @@ function get_latest_tweets() { // suitable for the old TwitterFetcher lib $tweets[$i] = [ - 'author' => ''.$tweetUser['name'].'@'.$tweetData['user']['screen_name'].'', - 'tweet' => ''.nl2br($tweetContent).'' + 'author' => ''.$tweetUser['name'].'@'.$tweetData['user']['screen_name'].'', + 'tweet' => ''.nl2br($tweetContent).'' ]; $i++; } diff --git a/src/scss/_front.scss b/src/scss/_front.scss index 46177e9..3253226 100644 --- a/src/scss/_front.scss +++ b/src/scss/_front.scss @@ -177,10 +177,13 @@ .tweet { position: relative; text-align: center; - .fa-twitter { + .x-icon { + display: block; color: $white; - font-size: 55px; + width: 55px; margin-bottom: 30px; + margin-left: auto; + margin-right: auto; } .tweet-content { position: absolute; diff --git a/src/scss/_menus.scss b/src/scss/_menus.scss index dd5e731..2ca2af2 100644 --- a/src/scss/_menus.scss +++ b/src/scss/_menus.scss @@ -232,6 +232,14 @@ i { color: $white; font-size: 16px; + &.x-icon { + display: inline-block; + width: 14px; + padding-bottom: 0; + svg { + padding-bottom: 0; + } + } } &:hover { i { From a80e9eabd4b9efd1a027782c70a926bbe0a00139 Mon Sep 17 00:00:00 2001 From: Catalin Date: Tue, 24 Oct 2023 22:58:10 +0300 Subject: [PATCH 2/3] HDX-9242 fix indentation --- src/footer.php | 27 +++++++++++++++------------ src/front-page.php | 18 ++++++++++-------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/footer.php b/src/footer.php index 73cd73c..9e6f8aa 100755 --- a/src/footer.php +++ b/src/footer.php @@ -118,18 +118,21 @@