forked from HYnotAnightClub/bittersTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrink-list.php
50 lines (46 loc) · 1.63 KB
/
drink-list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
Template Name: Menu Template (three columns)
*/
get_header(); ?>
<div class="main">
<div class="container" >
<?php // Start the loop ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="menu-description" style="background-image: url('<?php bloginfo('template_url'); ?>/images/dark_wall.png')"> <!-- change default background image -->
<div class="postText">
<h2><?php the_title(); ?></h2> <!-- add your styling here -->
<?php the_content(); ?>
</div>
</div>
<?php endwhile; // end the loop?>
<!-- start of custom menu area -->
<div class="drink-list">
<div class="left-column">
<?php dynamic_sidebar( 'menu-column1' ); ?>
</div>
<div class="middle-column">
<?php dynamic_sidebar( 'menu-column2' ); ?>
</div>
<div class="right-column">
<?php dynamic_sidebar( 'menu-column3' ); ?>
</div>
</div>
<!-- end of custom menu area -->
</div> <!-- /.container -->
<!-- custom image -->
<?php
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'full', true);
$thumb_url = $thumb_url_array[0];
?>
<?php if ( has_post_thumbnail( $post_id ) ){ ?>
<div class="menu-bottom-image" style="background-image: url('<?php echo $thumb_url; ?>')">
</div>
<?php } else {?>
<div class="menu-bottom-image" style="background-image: url('<?php bloginfo('template_url'); ?>/images/dark_wall.png')"> <!-- change default background image -->
</div>
<?php } ?>
<!-- end custom image -->
</div> <!-- /.main -->
<?php get_footer(); ?>