From e7fa783a51337cd28233b895b848a018fc02e1c1 Mon Sep 17 00:00:00 2001 From: Vij Project Date: Fri, 22 Dec 2023 22:28:05 +0300 Subject: [PATCH] add pets test --- blocks/header-pets.php | 99 ++++++++++++ footer-pets.php | 331 +++++++++++++++++++++++++++++++++++++++++ functions.php | 6 + page-test.php | 85 +++++++++++ pub/css/pets.css | 104 +++++++++++++ single.php | 2 +- style.css | 11 +- 7 files changed, 634 insertions(+), 4 deletions(-) create mode 100644 blocks/header-pets.php create mode 100644 footer-pets.php create mode 100644 page-test.php create mode 100644 pub/css/pets.css diff --git a/blocks/header-pets.php b/blocks/header-pets.php new file mode 100644 index 0000000..49404d0 --- /dev/null +++ b/blocks/header-pets.php @@ -0,0 +1,99 @@ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + diff --git a/footer-pets.php b/footer-pets.php new file mode 100644 index 0000000..dc81373 --- /dev/null +++ b/footer-pets.php @@ -0,0 +1,331 @@ + + +
+ + + + + + + + + '']); + get_blocks_gen('opinion'); + ?> + + + + + '']);?> + + + +
+ + + +
+ +
+ +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+ + 'mob-lite']);?> + + 'mob-lite']);?> + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/functions.php b/functions.php index 0a08935..40822a2 100644 --- a/functions.php +++ b/functions.php @@ -23,6 +23,12 @@ require ABSPATH.'/vendor/autoload.php'; //wp_clear_scheduled_hook( 'wp_update_plugins' ); +add_action( 'after_setup_theme', function(){ + if ( !is_admin() ) + show_admin_bar( false ); +}); + + #отключаем эмодзи remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); diff --git a/page-test.php b/page-test.php new file mode 100644 index 0000000..522afda --- /dev/null +++ b/page-test.php @@ -0,0 +1,85 @@ + + + + +
+ + + +

+ + + + + + + +
+ + + +

+
+
+
+
+
+ + +
+ + + 1):?> + +
+ +
+ + <?the_title();?> + + + + +
+ +

+
+
+
+
+ + + + + +
+ + + + Здесь пока нет публикаций + + + + + +
+ + diff --git a/pub/css/pets.css b/pub/css/pets.css new file mode 100644 index 0000000..89ac940 --- /dev/null +++ b/pub/css/pets.css @@ -0,0 +1,104 @@ +.header-pets{ + background-color: #000; + display: flex; + align-items: center; + gap: 15px; + box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07); + margin-right: 12px; + width: 100%; + height: 100px; +} + + +#petslogo{ + max-width: 200px; + left: 0; + top: 0; + margin: 0 0 0 22px; + padding: 0; +} + +.pets-dog{ + width: 163px; + height: 125px; + flex-shrink: 0; + margin-top: -24px; +} + + + + +ul.menu_main_pets{ + display: flex; + padding: 5px; + } + + ul.menu_main_pets li{ + margin: 5px; + padding: 15px; + font-weight: bold; + font-size: 15px; + } + + ul.menu_main_pets li a{ + color: #FFF; + } + + ul.menu_main_pets li a:hover{ + color: #FFF; + } + +.head-tel-pets a{ + color: #FFF; +} + +.head-mail-pets a{ + color: #F57825; +} + + +.btn-search-pets{ + background: url(/wp-content/themes/vij/pub/icons/lupa-pets.svg) no-repeat; +} + +.btn-rss-pets{ + background: url(/wp-content/themes/vij/pub/icons/rss-pets.svg) no-repeat; +} + +.header-social-pets{ + display: flex; + align-items: center; + padding: 5px; + gap: 40px; +} + +.footer-info-pets{ + display: flex; + margin-bottom: 8px; + border-top: 1px solid #D5D5D6; + border-bottom: 1px solid #D5D5D6; + margin-bottom: 28px; + padding-top: 28px; + padding-bottom: 28px; + padding-left: 12px; + align-items: center; + justify-content: center; + gap: 60px; +} + +.footer-mail a{ + color: #F57825; +} + + +.socials-footer-pets{ + display: inline-flex; + align-items: flex-start; + gap: 40px; +} + + + + + + diff --git a/single.php b/single.php index 76d346f..138056a 100644 --- a/single.php +++ b/single.php @@ -51,7 +51,7 @@ -
+

Читайте нас в Telegram

diff --git a/style.css b/style.css index 58fa505..c851a26 100644 --- a/style.css +++ b/style.css @@ -106,7 +106,6 @@ a{ order: -1; } - #mainbanner{ width: 100%; display: block; @@ -405,6 +404,8 @@ a{ } + + #footer_menu{ display: flex; align-items: center; @@ -838,6 +839,10 @@ a{ } + + + + ul.menu_main{ display: flex; padding: 5px; @@ -1075,11 +1080,11 @@ a{ /*fill: #3B83B5;*/ } - a svg:hover, + /* a svg:hover, a svg:focus { stroke: #F18129; - } + } */ ul.menu_footer{