diff --git a/app/setup.php b/app/setup.php index e5a74e7..e06e9b8 100644 --- a/app/setup.php +++ b/app/setup.php @@ -72,6 +72,26 @@ add_action('after_setup_theme', function () { 'network-footer-menu' => __('Network Footer Menu', 'aldine') ]); + /** + * Custom Header + */ + add_theme_support('custom-header', [ + 'default-image' => asset_path('images/header.jpg'), + 'width' => 1650, + 'height' => 880, + // 'default-text-color' => '', + // 'header-text' => true, + // 'uploads' => true, + // 'wp-head-callback' => '', + // 'admin-head-callback' => '', + // 'admin-preview-callback' => '', + ]); + + /** + * Custom Logo + */ + add_theme_support('custom-logo'); + /** * Enable post thumbnails * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ diff --git a/resources/assets/images/banner-desktop.jpg b/resources/assets/images/banner-desktop.jpg deleted file mode 100644 index aeec726..0000000 Binary files a/resources/assets/images/banner-desktop.jpg and /dev/null differ diff --git a/resources/assets/images/banner-mobile.jpg b/resources/assets/images/banner-mobile.jpg deleted file mode 100644 index db498be..0000000 Binary files a/resources/assets/images/banner-mobile.jpg and /dev/null differ diff --git a/resources/assets/images/banner-two.jpg b/resources/assets/images/banner-two.jpg deleted file mode 100644 index a3c82d9..0000000 Binary files a/resources/assets/images/banner-two.jpg and /dev/null differ diff --git a/resources/assets/images/header.jpg b/resources/assets/images/header.jpg new file mode 100644 index 0000000..8ff4a67 Binary files /dev/null and b/resources/assets/images/header.jpg differ diff --git a/resources/assets/images/pb.png b/resources/assets/images/pb.png deleted file mode 100644 index 7aad87c..0000000 Binary files a/resources/assets/images/pb.png and /dev/null differ diff --git a/resources/assets/images/pb@2x.png b/resources/assets/images/pb@2x.png deleted file mode 100644 index 5bf82fb..0000000 Binary files a/resources/assets/images/pb@2x.png and /dev/null differ diff --git a/resources/assets/styles/layouts/_header.scss b/resources/assets/styles/layouts/_header.scss index de841c7..f355df6 100644 --- a/resources/assets/styles/layouts/_header.scss +++ b/resources/assets/styles/layouts/_header.scss @@ -1,6 +1,4 @@ .banner { - background-image: url('../images/banner-mobile.jpg'); - .container { height: 560px; max-width: 1440px; @@ -56,7 +54,7 @@ width: 109px; height: 17px; margin: 30px 0 0 17px; - background-image: url('../images/logo.png'); + background-image: url('../images/logo.png'); // TODO background-size: 109px 17px; } @@ -105,14 +103,12 @@ } } -.page .banner .branding { +.page:not(.home) .banner .branding { display: none; } @media #{$breakpoint-large} { .banner { - background-image: url('../images/banner-desktop.jpg'); - .container { height: 880px; margin: 0 auto; @@ -122,7 +118,7 @@ width: 265px; height: 40px; margin-top: 40px; - background-image: url('../images/logo@2x.png'); + background-image: url('../images/logo@2x.png'); // TODO background-size: 265px 40px; } diff --git a/resources/views/front-page.blade.php b/resources/views/front-page.blade.php index 58742a0..f4b1ece 100644 --- a/resources/views/front-page.blade.php +++ b/resources/views/front-page.blade.php @@ -21,5 +21,8 @@ @if(get_option('pb_front_page_catalog')) @include('partials.front-page-catalog') @endif + @if(get_option('pb_front_page_contact_form')) + @include('partials.front-page-contact-form') + @endif @endsection diff --git a/resources/views/partials/front-page-contact-form.blade.php b/resources/views/partials/front-page-contact-form.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 9a1fbe2..3846469 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -1,4 +1,4 @@ -