-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bjorn Zschernack
committed
Nov 20, 2023
1 parent
44e5432
commit c45a656
Showing
8 changed files
with
224 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* The template for displaying the header | ||
* | ||
* Displays all of the head element and everything up until the "site-content" div. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Sixteen | ||
* @since Twenty Sixteen 1.0 | ||
*/ | ||
|
||
?><!DOCTYPE html> | ||
<html <?php language_attributes(); ?> class="no-js"> | ||
<head> | ||
<meta charset="<?php bloginfo( 'charset' ); ?>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="icon" type="image/x-icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon.png" type="images/png"/> | ||
<?php wp_head(); ?> | ||
|
||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/fontawesome/css/all.css"> | ||
|
||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/bootstrap-5.3.0-alpha3-dist/css/bootstrap.min.css"> | ||
|
||
|
||
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/js/slick/slick.css"> | ||
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/js/slick/slick-theme.css"/> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/scss/styles.css"> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
|
||
<!-- Pagewrap --> | ||
|
||
|
||
<?php get_template_part('template-parts/header/pageheader'); ?> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
<?php get_header(); ?> | ||
<?php | ||
$categories = get_the_terms( $post->ID, 'category' ) | ||
?> | ||
<div class="container-fluid p-0 bg-light-blue sub-bg" id="main"> | ||
|
||
<article class="container-fluid"> | ||
<?php get_header('pages'); ?> | ||
<div class="container p-0" id="main"> | ||
|
||
<div class="row"> | ||
<div class="col-12 text-center"> | ||
<h2 class="category-headline"><?php echo $post->post_title; ?></h2> | ||
<hr class="yellow-line" /> | ||
<div class="col-12"> | ||
<?php the_content(); ?> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
<div class="row"> | ||
<div class="col my-4"> | ||
<?php the_content(); ?> | ||
<div class="col-12"> | ||
<?php the_content(); ?> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-12"> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</article> | ||
<div class="row"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<?php get_template_part('template-parts/posts/postgrid','',array('category' => 'aktuelles', 'title' => 'Aktuelles', 'bg' => '')) ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<header class="container-fluid w-100 p-0" id="header"> | ||
|
||
<div class="container py-4 px-4 px-xl-0" id="header-inner-container"> | ||
<div class="row"> | ||
|
||
<div class="col-9 col-xl-3"> | ||
<a href="/" class="d-none d-xl-block"> | ||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/FZ_Olpe_Logo.webp" alt="Autohaus Löhr, Fahrzeugzentrum Olpe" class="img-fluid" id="top-logo"/> | ||
</a> | ||
<a href="/" class="d-block d-xl-none"> | ||
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/FZ_Olpe_Logo_mobile.svg" alt="Autohaus Löhr, Fahrzeugzentrum Olpe" class="img-fluid" id="top-logo"/> | ||
</a> | ||
</div> | ||
<div class="col-3 offset-xl-3 col-xl-6"> | ||
<?php get_template_part('template-parts/header/contact','',array()) ?> | ||
<?php get_template_part('template-parts/header/menubars','',array()) ?> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="w-100" id="menucontainer"> | ||
|
||
<div class="container"> | ||
|
||
|
||
<?php | ||
wp_nav_menu(array('menu' => 'mainmenu', 'menu_id'=>'mainmenu', 'container' => false, 'menu_class' => 'mleft')); | ||
?> | ||
|
||
</div> | ||
</div> | ||
|
||
<?php | ||
$backgroundimage = wp_get_attachment_image_src( get_post_thumbnail_id(),'full')[0]; | ||
?> | ||
|
||
<div class="w-100" id="headerbackground" style="background-image:url('<?php echo $backgroundimage; ?>')"> | ||
<div class="headercontent"> | ||
|
||
<div class="container py-4 px-4 px-xl-0" id="header-inner-content-container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h1 class="white fs36 topline"><?php the_title(); ?></h1> | ||
<h2 class="white fs36"><?php echo get_post_meta($post->ID, 'subtitle', true); ?></h2> | ||
</div> | ||
</div> | ||
|
||
<?php if(get_post_meta($post->ID, 'headerinhalt', true)): ?> | ||
|
||
|
||
<div class="row"> | ||
<div class="col-12 bg-white"> | ||
<?php echo apply_filters('the_content', get_post_meta($post->ID, 'headerinhalt', true)); ?> | ||
</div> | ||
</div> | ||
|
||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="container-fluid p-0"> | ||
<div class="row"> | ||
<?php | ||
|
||
$grid = 4; | ||
|
||
if(isset($args['grid'])) : | ||
$grid = $args['grid']; | ||
endif; | ||
|
||
|
||
?> | ||
</div> | ||
</div> |