|
|
@@ -16,7 +16,7 @@
|
|
|
while($query->have_posts()) {
|
|
|
$query->the_post();
|
|
|
|
|
|
- if(get_post_meta(get_the_ID(), 'ams_dual_columns_post', true) && !get_post_meta(get_the_ID(), 'ams_tda_gallery', true)) { // 2 Spalten
|
|
|
+ if(get_post_meta(get_the_ID(), 'ams_dual_columns_post', true) && !get_post_meta(get_the_ID(), 'ams_tda_gallery', true) && !get_post_meta(get_the_ID(), 'ams_projects', true)) { // 2 Spalten
|
|
|
|
|
|
$more = 1; // get whole content
|
|
|
$content = get_the_content('', true);
|
|
|
@@ -26,6 +26,9 @@
|
|
|
$columnTwo = substr($content, strpos($content, '<!--column-->'), strlen($content)); ?>
|
|
|
|
|
|
<div id="post-<?php the_ID(); ?>" class="content-wrapper">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <div id="post-<?php the_ID(); ?>-jumper" class="jumper"></div>
|
|
|
+ </div>
|
|
|
<div class="beam">
|
|
|
<div class="container">
|
|
|
<div class="row">
|
|
|
@@ -65,6 +68,9 @@
|
|
|
$columnTwo = substr($content, strpos($content, '<!--column-->'), strlen($content)); ?>
|
|
|
|
|
|
<div id="post-<?php the_ID(); ?>" class="content-wrapper">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <div id="post-<?php the_ID(); ?>-jumper" class="jumper"></div>
|
|
|
+ </div>
|
|
|
<div class="beam">
|
|
|
<div class="container">
|
|
|
<div class="row">
|
|
|
@@ -86,7 +92,7 @@
|
|
|
// images (gallery)
|
|
|
$tdaQuery = new WP_Query(array('post_type' => 'tdas'));
|
|
|
if($tdaQuery->have_posts()) { ?>
|
|
|
- <div class="col-md-12 tda-gallery claerfix">
|
|
|
+ <div class="col-md-12 tda-gallery clearfix">
|
|
|
<div class="row"><?php
|
|
|
while($tdaQuery->have_posts()) {
|
|
|
$tdaQuery->the_post(); ?>
|
|
|
@@ -105,21 +111,7 @@
|
|
|
} ?>
|
|
|
</div>
|
|
|
</div><?php
|
|
|
- }
|
|
|
-
|
|
|
- /*// content-containers
|
|
|
- $tdaQuery = new WP_Query(array('post_type' => 'tdas'));
|
|
|
- $count = 0;
|
|
|
- if($tdaQuery->have_posts()) {
|
|
|
- while($tdaQuery->have_posts()) {
|
|
|
- $tdaQuery->the_post(); ?>
|
|
|
- <div id="tda-content-<?= $count; ?>" class="col-md-4 tda-content" style="text-align: center; display: none;">
|
|
|
- <h1><a href="<?= get_permalink(); ?>"><?php the_title(); ?></a></h1>
|
|
|
- <p><?= substr(get_the_excerpt(), 0, strpos(get_the_excerpt(), ' ', 225)) . " ..."; ?></p>
|
|
|
- </div><?php
|
|
|
- $count++;
|
|
|
- }
|
|
|
- }*/ ?>
|
|
|
+ } ?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="container b-to-top">
|
|
|
@@ -138,6 +130,9 @@
|
|
|
$partnerQuery = new WP_Query( array( 'post_type' => 'partners', 'orderby' => 'title', 'order' => 'ASC' ) );
|
|
|
if($partnerQuery->have_posts()) { ?>
|
|
|
<div id="post-<?php the_ID(); ?>" class="content-wrapper">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <div id="post-<?php the_ID(); ?>-jumper" class="jumper"></div>
|
|
|
+ </div>
|
|
|
<div class="beam">
|
|
|
<div class="container">
|
|
|
<div class="row">
|
|
|
@@ -175,13 +170,78 @@
|
|
|
</div><?php
|
|
|
wp_reset_postdata();
|
|
|
}
|
|
|
+ } else if(get_post_meta(get_the_ID(), 'ams_dual_columns_post', true) && get_post_meta(get_the_ID(), 'ams_projects', true)) { // 2 Spalten & Projekte
|
|
|
+
|
|
|
+ $more = 1; // get whole content
|
|
|
+ $content = get_the_content('', true);
|
|
|
+ $more = 0; // reset to excerpt only
|
|
|
+
|
|
|
+ $columnOne = substr($content, 0, strpos($content, '<!--column-->'));
|
|
|
+ $columnTwo = substr($content, strpos($content, '<!--column-->'), strlen($content)); ?>
|
|
|
+
|
|
|
+ <div id="post-<?php the_ID(); ?>" class="content-wrapper">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <div id="post-<?php the_ID(); ?>-jumper" class="jumper"></div>
|
|
|
+ </div>
|
|
|
+ <div class="beam">
|
|
|
+ <div class="container">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <h1><?php the_title(); ?></h1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="container text-muted">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-6">
|
|
|
+ <span class="teaser"><?php the_excerpt(); ?></span>
|
|
|
+ <?= $columnOne; ?><br>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6">
|
|
|
+ <?= $columnTwo; ?>
|
|
|
+ </div><?php
|
|
|
+ // images (gallery)
|
|
|
+ $tdaQuery = new WP_Query(array('post_type' => 'projects'));
|
|
|
+ if($tdaQuery->have_posts()) { ?>
|
|
|
+ <div class="col-md-12 tda-gallery clearfix">
|
|
|
+ <div class="row"><?php
|
|
|
+ while($tdaQuery->have_posts()) {
|
|
|
+ $tdaQuery->the_post(); ?>
|
|
|
+ <div class="col-md-3 col-xs-6 tda-item" style="padding-bottom: 15px;">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <a href="<?= get_permalink(); ?>">
|
|
|
+ <?php if(has_post_thumbnail()) the_post_thumbnail('thumbnail', array('class' => 'tda-gallery-item')); ?>
|
|
|
+ <div class="tda-hover">
|
|
|
+ <div class="relcontainer">
|
|
|
+ <span><?php the_title(); ?></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div><?php
|
|
|
+ } ?>
|
|
|
+ </div>
|
|
|
+ </div><?php
|
|
|
+ } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="container b-to-top">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <a href="#top" class="scroll-link"><i class="fa fa-chevron-up" aria-hidden="true"></i></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div><?php
|
|
|
+
|
|
|
} else {
|
|
|
the_title();
|
|
|
the_excerpt();
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- echo "ayy no post lmalala"; // TODO: this
|
|
|
+ echo "404"; // TODO: this
|
|
|
}
|
|
|
} else {
|
|
|
the_title();
|
|
|
@@ -189,4 +249,4 @@
|
|
|
|
|
|
</div><?php
|
|
|
|
|
|
- get_footer(); ?>
|
|
|
+ get_footer(); ?>
|