From 7175b922e139508cdbf8edf129a3b48504d2d04b Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Fri, 27 Sep 2024 11:57:15 +0200 Subject: [PATCH] Save --- wp-config.php | 16 +- .../includes/shortcodes/em_case_study.php | 138 +++++++++--------- wp-content/themes/cyber/assets/css/custom.css | 48 +++++- .../themes/cyber/assets/css/custom.css.map | 2 +- .../themes/cyber/assets/css/custom.scss | 69 +++++++++ wp-content/themes/cyber/assets/js/theme.js | 2 +- wp-content/themes/cyber/functions.php | 12 +- 7 files changed, 207 insertions(+), 80 deletions(-) diff --git a/wp-config.php b/wp-config.php index 9ed11373..e4bdc05d 100644 --- a/wp-config.php +++ b/wp-config.php @@ -1,4 +1,12 @@ -
- - +
+
-
+
+

-
+
Finland'; - break; - } - case 'SoftServe': - { - echo 'Ukraine / USA'; - break; - } - case 'Microsoft Corporation': - { - echo 'USA'; - break; - } - case 'Mynavi Corporation': - { - echo 'Japan'; - break; - } - case 'Striped Giraffe': - { - echo 'Germany'; - break; - } - case 'DPDGroup IT Solutions': - { - echo 'France'; - break; - } - case 'Atlassian': - { - echo 'Australia'; - break; - } - case 'ICEYE': - { - echo 'Poland / Finland'; - break; - } - case 'TomTom': - { - echo 'The Netherlands'; - break; - } - case 'Equinix, Inc.': - { - echo 'USA'; - break; - } - case 'Kitopi': - { - echo 'UAE'; - break; - } - case 'Intetics': - { - echo 'USA'; - break; - } - } - ?> + switch(get_the_title()){ + case 'Nokia': + { + echo 'Finland'; + break; + } + case 'SoftServe': + { + echo 'Ukraine / USA'; + break; + } + case 'Microsoft Corporation': + { + echo 'USA'; + break; + } + case 'Mynavi Corporation': + { + echo 'Japan'; + break; + } + case 'Striped Giraffe': + { + echo 'Germany'; + break; + } + case 'DPDGroup IT Solutions': + { + echo 'France'; + break; + } + case 'Atlassian': + { + echo 'Australia'; + break; + } + case 'ICEYE': + { + echo 'Poland / Finland'; + break; + } + case 'TomTom': + { + echo 'The Netherlands'; + break; + } + case 'Equinix, Inc.': + { + echo 'USA'; + break; + } + case 'Kitopi': + { + echo 'UAE'; + break; + } + case 'Intetics': + { + echo 'USA'; + break; + } + } + ?>
-

- diff --git a/wp-content/themes/cyber/assets/css/custom.css b/wp-content/themes/cyber/assets/css/custom.css index 894bdd7f..26bd5b26 100644 --- a/wp-content/themes/cyber/assets/css/custom.css +++ b/wp-content/themes/cyber/assets/css/custom.css @@ -1 +1,47 @@ -/*# sourceMappingURL=custom.css.map */ \ No newline at end of file +.single_case_study .cyber-single-cases-study .em-cases-study-content { + transition: background 250ms ease-in-out; +} +.single_case_study .cyber-single-cases-study .em-cases-study-content:hover { + background: #f7f9fe; +} +.single_case_study .cyber-single-cases-study .em-cases-study-content:hover .em-cases-study-title h2 a { + color: #bf2222; +} +.single_case_study .cyber-single-cases-study .em-cases-study-content .em-cases-study-content-link { + position: absolute; + inset: 0; + z-index: 1; +} + +.footer-middle #custom_html-2 span { + display: block; + margin-bottom: 5px; +} +.footer-middle #custom_html-2 a i { + width: 30px; + height: 30px; + display: inline-flex; + align-items: center; + justify-content: center; + color: #fff; + background: #bf2222; + border-radius: 5px; +} + +.kc-multi-icons-wrapper .multi-icons-link.multi-iconsfa.fa-x-twitter::before { + display: none !important; +} + +i.fa.fa-twitter::before { + content: "\e61b" !important; +} + +i.sl-social-twitter::before { + content: "\e61b" !important; + font-family: "FontAwesome"; + font-style: inherit; + display: inline-block; + text-rendering: auto; + speak: none; + font-weight: normal; +}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file diff --git a/wp-content/themes/cyber/assets/css/custom.css.map b/wp-content/themes/cyber/assets/css/custom.css.map index edff34a2..8d3391cf 100644 --- a/wp-content/themes/cyber/assets/css/custom.css.map +++ b/wp-content/themes/cyber/assets/css/custom.css.map @@ -1 +1 @@ -{"version":3,"sources":[],"names":[],"mappings":"","file":"custom.css"} \ No newline at end of file +{"version":3,"sources":["custom.scss","custom.css"],"names":[],"mappings":"AAEE;EACC,wCAAA;ACDH;ADGG;EACC,mBAAA;ACDJ;ADIM;EACC,cAAA;ACFP;ADOG;EACC,kBAAA;EACA,QAAA;EACA,UAAA;ACLJ;;ADaE;EACC,cAAA;EACA,kBAAA;ACVH;ADaG;EACC,WAAA;EACA,YAAA;EACA,oBAAA;EACA,mBAAA;EACA,uBAAA;EACA,WAAA;EACA,mBAAA;EACA,kBAAA;ACXJ;;ADmBE;EACC,wBAAA;AChBH;;ADsBC;EACC,2BAAA;ACnBF;;ADuBC;EACC,2BAAA;EACA,0BAAA;EACA,mBAAA;EACA,qBAAA;EACA,oBAAA;EACA,WAAA;EACA,mBAAA;ACpBF","file":"custom.css"} \ No newline at end of file diff --git a/wp-content/themes/cyber/assets/css/custom.scss b/wp-content/themes/cyber/assets/css/custom.scss index e69de29b..2bc5f0c4 100644 --- a/wp-content/themes/cyber/assets/css/custom.scss +++ b/wp-content/themes/cyber/assets/css/custom.scss @@ -0,0 +1,69 @@ +.single_case_study { + .cyber-single-cases-study { + .em-cases-study-content { + transition: background 250ms ease-in-out; + + &:hover { + background: #f7f9fe; + .em-cases-study-title { + h2 { + a { + color: #bf2222; + } + } + } + } + .em-cases-study-content-link { + position: absolute; + inset: 0; + z-index: 1; + } + } + } +} + +.footer-middle { + #custom_html-2 { + span { + display: block; + margin-bottom: 5px; + } + a { + i { + width: 30px; + height: 30px; + display: inline-flex; + align-items: center; + justify-content: center; + color: #fff; + background: #bf2222; + border-radius: 5px; + } + } + } +} + +.kc-multi-icons-wrapper { + .multi-icons-link.multi-iconsfa.fa-x-twitter { + &::before { + display: none !important; + } + } +} + +i.fa.fa-twitter { + &::before { + content: '\e61b' !important; + } +} +i.sl-social-twitter { + &::before { + content: '\e61b' !important; + font-family: 'FontAwesome'; + font-style: inherit; + display: inline-block; + text-rendering: auto; + speak: none; + font-weight: normal; + } +} diff --git a/wp-content/themes/cyber/assets/js/theme.js b/wp-content/themes/cyber/assets/js/theme.js index 10a44ab8..3935d1ea 100644 --- a/wp-content/themes/cyber/assets/js/theme.js +++ b/wp-content/themes/cyber/assets/js/theme.js @@ -171,7 +171,7 @@ var headers1 = $('.trp_nav_area'); $(window).on('scroll', function () { - if ($(window).scrollTop() > 200) { + if ($(window).scrollTop() > 50) { headers1.addClass('hbg2'); } else { headers1.removeClass('hbg2'); diff --git a/wp-content/themes/cyber/functions.php b/wp-content/themes/cyber/functions.php index 49b993b5..dc35543f 100644 --- a/wp-content/themes/cyber/functions.php +++ b/wp-content/themes/cyber/functions.php @@ -341,11 +341,19 @@ add_filter('autoptimize_html_after_minify', function($content) { return $content; }, 10, 1); +/** + * Include font-awesome + */ +function cyber_enqueue_font_awesome() { + wp_enqueue_style( 'font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css' ); +} +add_action( 'wp_enqueue_scripts', 'cyber_enqueue_font_awesome' ); /** * Include custom.css with max priority */ function cyber_enqueue_custom_css() { - wp_enqueue_style( 'cyber-custom', get_template_directory_uri() . '/assets/css/custom.css', array(), null, true ); + wp_enqueue_style( 'cyber-custom', get_template_directory_uri() . '/assets/css/custom.css', array(), null ); } -add_action( 'wp_enqueue_scripts', 'cyber_enqueue_custom_css', 999 ); +add_action( 'wp_enqueue_scripts', 'cyber_enqueue_custom_css', PHP_INT_MAX ); +