-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase-template-404.php
executable file
·77 lines (66 loc) · 3.29 KB
/
base-template-404.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
<?php
use Roots\Sage\Setup;
use Roots\Sage\Wrapper;
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<?php get_template_part('templates/head'); ?>
<body <?php body_class(); ?>>
<!--[if IE]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage'); ?>
</div>
<![endif]-->
<?php
do_action('get_header');
get_template_part('templates/header');
?>
<div class="wrap container-fluid checkout" role="document">
<div class="content">
<main class="main">
<?php include Wrapper\template_path(); ?>
</main><!-- /.main -->
<?php if (Setup\display_sidebar()) : ?>
<aside class="sidebar">
<?php include Wrapper\sidebar_path(); ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
</div><!-- /.content -->
</div><!-- /.wrap -->
<div class="featured">
<div class="container-fluid">
<h2 class="getkunst-title">Check out our favorites</h2>
<ul class="front-products-slider2">
<section class="multiple-items single-featured3">
<?php
$args = array('post_type' => 'product','stock' => 1,'posts_per_page' => 6,'meta_value' => 'yes','tax_query' => array(
array('taxonomy' => 'product_cat','terms' => 89,'operator' => 'IN')),);
$featured_query = new WP_Query( $args ); while ( $featured_query->have_posts() ) : $featured_query->the_post(); global $product; ?>
<li class="slider-products">
<a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<div class="slider-products-inner">
<?php tm_woowishlist_add_button_single(); ?>
<?php echo do_shortcode('[yith_quick_view product_id="'.get_the_ID().'" type="button" label=""]'); ?>
<a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<img width="300" height="300" class="lazy attachment-shop_catalog size-shop_catalog wp-post-image" src="<?php if (has_post_thumbnail( $featured_query->post->ID )) echo the_post_thumbnail_url( '300x300' ); ?>">
</a>
<a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<h2 class="product__title"><?php the_title(); ?></h2>
</a>
<?php echo $product->get_price_html(); ?>
<?php woocommerce_template_loop_add_to_cart( $featured_query->post, $product ); ?>
</div></a></li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</section>
</ul>
</div>
</div> <!--end featured -->
<?php $options = get_option('futurewave_theme_options'); echo do_shortcode(''.$options['socialbox'].''); ?>
<?php
do_action('get_footer');
get_template_part('templates/footer');
wp_footer();
?>
</body>
</html>