ACC SHELL
<?php
/*
Template Name: Galerie
*/
get_header();
// Parallax Title
$parallax_title = get_post_meta( $post->ID, 'coffee_parallax_title', true);
// Parallax Background
$parallax_background = get_option('parallax_background', get_template_directory_uri().'/img/parallax-bg.jpg');
$parallax_background_meta = get_post_meta( $post->ID, 'coffee_parallax_background', true);
if($parallax_background_meta != ''){$parallax_background = $parallax_background_meta;}
// Parallax Height
$parallax_height = get_option('parallax_height', '125');
$parallax_height_meta = get_post_meta( $post->ID, 'coffee_parallax_height', true);
if($parallax_height_meta != ''){$parallax_height = $parallax_height_meta;}
// Parallax Speed
$parallax_speed = get_option('parallax_speed', '12');
$parallax_speed_meta = get_post_meta( $post->ID, 'coffee_parallax_speed', true);
if($parallax_speed_meta != ''){$parallax_speed = $parallax_speed_meta;}
?>
<?php if ($parallax_height != 0) { ?>
<div id="parallax-wrapper" style="background-image: url('<?php echo($parallax_background); ?>'); height: <?php echo($parallax_height); ?>px;" data-parallax-speed="<?php echo($parallax_speed); ?>" <?php if(get_option('header_switch', true)){echo('class="parallax-on"');} ?>>
<div id="parallax-inner" class="clearfix">
<div id="parallax-title-wrapper">
<div id="parallax-title" class="heading-font">
<?php echo($parallax_title); ?>
</div>
</div>
</div><!-- #parallax-inner -->
</div><!-- #parallax-wrapper -->
<?php } ?>
<div id="content-wrapper" style="margin-top:<?php echo(125+$parallax_height); ?>px">
<div id="content" class="clearfix">
<div id="full-width-template" class="content-column-wrapper clearfix">
<div class="content-column clearfix">
<article <?php post_class('clearfix'); ?>>
<div class="entry-inner clearfix">
<div class="entry-content-wrapper clearfix">
<div class="entry-content clearfix">
<?php the_content(false); ?>
<div id='gallery-1' class='gallery gallery-columns-4'>
<dt class='gallery-icon landscape'>
<?php
$loop = new WP_Query("post_type=portfolio-type&post_status=publish");
while ( $loop->have_posts() ) : $loop->the_post();
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium');
$thumb_url = $thumb[0];
?>
<dl class='gallery-item'><a href="<?php echo $url; ?>" title="<?php echo the_title(); ?>"><img src="<?php echo $thumb_url; ?>" style="width:98%;max-height: 200px;"/></a></dl>
<?php endwhile; ?>
</dt></div>
</div>
</div>
</div>
</article>
</div>
</div>
</div><!-- #content -->
<?php get_footer(); ?>
ACC SHELL 2018