-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomepage.php
102 lines (82 loc) · 3.26 KB
/
homepage.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/*
Template Name: homepage
*/
?>
<?php get_header(); ?>
<body <?php body_class(); ?>>
<!-- page header -->
<?php include('pageheader.php') ?>
<!-- content -->
<div id="content"> <!-- page content -->
<!-- slider -->
<div class="marginTop">
<div class="<!--container removed for large slides -->">
<div class="row slideshow">
<!-- display page's featured image -->
<div class="heroimage" data-parallax="scroll" data-image-src="<?php echo wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) );?>">
<h2 class="caption"><?php echo get_post_meta($post->ID, "caption", true); ?></h2>
<div class="shopbtnwrap"><div class="shopbtn"><a href="#shopsection"><h2>SHOP</h2></a></div></div>
</div>
<!-- display meta slider (disabled) -->
<?php
//echo do_shortcode("[metaslider id=38]");
?>
<div class="shopbtnwrap"><div class="shopbtn"><a href="#welcome"><h2>SHOP</h2></a></div></div>
</div>
</div>
</div>
<!-- home page text -->
<section>
<div class="container">
<div class="row">
<div class="col-md-12 textCenter"><a id="welcome" class="anchor"></a>
<!-- Start the Loop. -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Display the Post's Content -->
<h1><?php the_title(); ?></h1>
<div class="dashedline"></div>
<?php the_content(); ?>
<!-- Stop The Loop (but note the "else:" - see next line). -->
<?php endwhile; else: ?>
<!-- The very first "if" tested to see if there were any Posts to -->
<!-- display. This "else" part tells what do if there weren't any. -->
<h1>Page not found</h1>
<p>Sorry, that page no longer exists. The page may have been removed or you have followed an obsolete link.
Please use the site's navigation menus to try again.</p><p> </p><p> </p><p> </p><p> </p>
<!-- REALLY stop The Loop. -->
<?php endif; ?>
<!-- /post -->
</div>
</div>
</div>
</section>
<!-- shop section -->
<section>
<div class="container">
<div class="row">
<div class="col-md-12"><a id="shopsection" class="anchor"></a>
<!-- Start the Loop. -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- product categories - moved into sidebar-8 widget -->
<?php // echo do_shortcode("[product_categories number='3' parent='0' columns='3']"); ?>
<div class="featuredprods">
<?php dynamic_sidebar( 'sidebar-8' ); ?>
</div>
<!-- Stop The Loop (but note the "else:" - see next line). -->
<?php endwhile; else: ?>
<!-- The very first "if" tested to see if there were any Posts to -->
<!-- display. This "else" part tells what do if there weren't any. -->
<h1>Page not found</h1>
<p>Sorry, that page no longer exists. The page may have been removed or you have followed an obsolete link.
Please use the site's navigation menus to try again.</p><p> </p><p> </p><p> </p><p> </p>
<!-- REALLY stop The Loop. -->
<?php endif; ?>
<!-- /post -->
</div>
</div>
</div>
</section>
</div><!-- end page container -->
<!-- footer -->
<?php get_footer(); ?>