diff --git a/images/icons/arrow_yellow.svg b/images/icons/arrow_yellow.svg new file mode 100644 index 0000000..9ab3401 --- /dev/null +++ b/images/icons/arrow_yellow.svg @@ -0,0 +1,4 @@ + + + + diff --git a/includes/shortcodes.php b/includes/shortcodes.php index a172fd7..432ec61 100644 --- a/includes/shortcodes.php +++ b/includes/shortcodes.php @@ -37,4 +37,14 @@ function getSubpages($atts){ return $content; } -add_shortcode( 'subpages', 'getSubpages' ); \ No newline at end of file +add_shortcode( 'subpages', 'getSubpages' ); + + +function getContactBoxes($atts){ + ob_start(); + $content .= get_template_part('template-parts/shortcodes/contactboxes','',$atts); + $content .= ob_get_clean(); + return $content; +} + +add_shortcode( 'contactboxes', 'getContactBoxes' ); \ No newline at end of file diff --git a/scss/includes/_content.scss b/scss/includes/_content.scss index aae109d..9e4719d 100644 --- a/scss/includes/_content.scss +++ b/scss/includes/_content.scss @@ -43,6 +43,10 @@ a{ margin-right: 0 !important; } + .boxicon { + width: 35px; + height: auto; + } .single-post-image{ width: 100%; @@ -64,16 +68,28 @@ a{ width: 100%; height: 240px; background-color: #fff; + + &.subpage-content{ + .teaser { + height: 140px; + } + height: auto; + } } .imagecontainer{ width: 100%; height: 240px; background-color: $lightgrey; - background-size: cover; + background-size: 100%; background-repeat: no-repeat; background-position: center; - + transition: all 0.3s ease-in-out; + + &:hover{ + transition: all 0.3s ease-in-out; + background-size: 105%; + } } } } @@ -169,4 +185,5 @@ h2 { margin: auto; } } -} \ No newline at end of file +} + diff --git a/scss/styles.css b/scss/styles.css index 2976990..77712f7 100644 --- a/scss/styles.css +++ b/scss/styles.css @@ -394,6 +394,10 @@ a:hover { margin-right: 0 !important; } } +.posts-grid .single-post .boxicon { + width: 35px; + height: auto; +} .posts-grid .single-post .single-post-image { width: 100%; height: 240px; @@ -414,13 +418,24 @@ a:hover { height: 240px; background-color: #fff; } +.posts-grid .single-post .single-post-content.subpage-content { + height: auto; +} +.posts-grid .single-post .single-post-content.subpage-content .teaser { + height: 140px; +} .posts-grid .single-post .imagecontainer { width: 100%; height: 240px; background-color: #f7f8f8; - background-size: cover; + background-size: 100%; background-repeat: no-repeat; background-position: center; + transition: all 0.3s ease-in-out; +} +.posts-grid .single-post .imagecontainer:hover { + transition: all 0.3s ease-in-out; + background-size: 105%; } #about-banner { diff --git a/template-parts/pages/subpage.php b/template-parts/pages/subpage.php index 1d0d09c..47b9895 100644 --- a/template-parts/pages/subpage.php +++ b/template-parts/pages/subpage.php @@ -1,13 +1,17 @@
- ID )): ?> + ID )): + $image = wp_get_attachment_image_src( get_post_thumbnail_id( $args->ID ), 'full' )[0]; + ?> +
-
+

post_title; ?>

-

ID,'teaser',true); ?>

+

ID,'teaser',true); ?>

+
\ No newline at end of file diff --git a/template-parts/shortcodes/contact.php b/template-parts/shortcodes/contact.php new file mode 100644 index 0000000..f560031 --- /dev/null +++ b/template-parts/shortcodes/contact.php @@ -0,0 +1,9 @@ + + +
+ Autohaus Löhr, Fahrzeugzentrum Olpe +

Anschrift

+
+ +
+
\ No newline at end of file diff --git a/template-parts/shortcodes/contactboxes.php b/template-parts/shortcodes/contactboxes.php new file mode 100644 index 0000000..dae0c4d --- /dev/null +++ b/template-parts/shortcodes/contactboxes.php @@ -0,0 +1,7 @@ + +
+ + + + +
\ No newline at end of file diff --git a/template-parts/shortcodes/fragen.php b/template-parts/shortcodes/fragen.php new file mode 100644 index 0000000..fb0f224 --- /dev/null +++ b/template-parts/shortcodes/fragen.php @@ -0,0 +1,16 @@ + + +
+ Autohaus Löhr, Fahrzeugzentrum Olpe +

Haben Sie Fragen?

+
+
+

Wir beraten Sie gerne:

+

02761/ 82870

+
+
+

Mo.-Fr.:
Sa.:

+

08:00 - 17:00 Uhr
09:00 - 12:00 Uhr

+
+
+
\ No newline at end of file diff --git a/template-parts/shortcodes/socialmedia.php b/template-parts/shortcodes/socialmedia.php new file mode 100644 index 0000000..24aea83 --- /dev/null +++ b/template-parts/shortcodes/socialmedia.php @@ -0,0 +1,12 @@ + + +
+ Autohaus Löhr, Fahrzeugzentrum Olpe +

Folge uns auf Social Media

+
+
+

Mo.-Fr.:
Sa.:

+

08:00 - 17:00 Uhr
09:00 - 12:00 Uhr

+
+
+
\ No newline at end of file