archive-products.php
4.9 KB
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
<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<!-- sys-sub-head -->
<section class="sys-sub-head">
<!-- swiper -->
<div class="head-bn-slider">
<div class="swiper-container">
<ul class="head-bn-items swiper-wrapper">
<li class="head-bn-item swiper-slide"><img src="<?php echo home_url("/"); ?>style/global/img/demo/sub_head_bn_01.jpg" alt=""></li>
</ul>
</div>
<div class="swiper-control">
<div class="swiper-pagination"></div>
</div>
</div>
</section>
<!-- page-layout start -->
<section class="web-main page-main">
<!-- list-top -->
<article class="list-top-layer">
<div class="layout">
<div class="flex-row">
<div class="sys-col list-top-cont">
<div class="list-top-hd">
<h1 class="list-top-title">SEHR VIEL <br>MEHR</h1>
<h4 class="list-top-subtit">AUSWAHL AN E-BIKES</h4>
</div>
<div class="list-top-desc">
<p>In unserem Shop kannst du alle Modelle vor Ort testen. Wir beraten dich und helfen dir bei der Bestimmung der optimalen Rahmengröße.</p>
<p>Unser Tipp: Gute Elektrofahrräder erhältst du in der Preisklasse ab € 2.000,--. Achten Sie beim Kauf auf gute Verarbeitung, stabile Rahmen, Gabel und Felgen, sowie E-Motoren-Elektronik von namhaften Herstellern.</p>
</div>
</div>
<!-- swiper -->
<div class="sys-col list-top-gallery">
<div class="swiper-container">
<ul class="swiper-wrapper intro-gallery-items">
<li class="swiper-slide intro-gallery-item">
<div class="gallery-item-img"><a href=""><img src="<?php echo home_url("/"); ?>style/global/img/demo/list_top_bn.png" alt=""></a></div>
</li>
</ul>
</div>
</div>
</div>
</div>
</article>
<div class="layout">
<?php get_sidebar();?>
<section class="main">
<div class="product-list">
<ul class="product_list_items">
<?php $args = array(
'cat'=>$cat_ID,
'meta_key' => '_listorder',
'orderby' => 'meta_value_num',
'order' => DESC,
'paged' => $paged
);
$the_query = new WP_Query( $args ); if( $the_query->have_posts() ): while ( $the_query->have_posts() ) : $the_query->the_post();
$images = get_field('product_gallery');
if( $images ): foreach( $images as $key=>$image ):
if(!is_array($images[$key])){
$eric_id = $image;
$eric_urcs = wp_get_attachment_image_src($eric_id);
$eric_urc = $eric_urcs[0];
$image = array(
'id' => $eric_id,
'url' => $eric_urc,
'sizes' => array('thumbnail' => $eric_urc, )
);
$images[$key] = $image;
}
if (!$image['sizes']['thumbnail']) $image['sizes']['thumbnail'] = $srcs[0];
endforeach; endif;?>
<li class="product_list_item">
<figure>
<span class="item_img"><img src="<?php if( $images ): for($x=0;$x<1; $x++){ ?><?php echo $images[0]['sizes']['thumbnail']; ?><?php } endif; ?>" alt="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>"><a href="<?php the_permalink() ?>" title="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 300,""); ?>"></a> </span>
<figcaption>
<div class="item_information">
<h3 class="item_title"><a href="<?php the_permalink() ?>" title="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 300,""); ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 300,"..."); ?></a></h3>
<div class="item_info"><?php $short = get_field('short_description');if( !empty($short) ): ?><?php the_field('short_description'); ?><?php else: ?><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 500,"..."); ?><?php endif; ?></div>
</div>
<div class="product_btns">
<a href="javascript:" class="priduct_btn_inquiry add_email12">inquiry</a><a href="<?php the_permalink() ?>" class="priduct_btn_detail">detail</a>
</div>
</figcaption>
</figure>
</li>
<?php endwhile; endif; wp_reset_query(); ?>
</ul>
<div class="page_bar">
<div class="pages"><?php echo izt_pagenavi();?></div>
</div>
</div>
</section>
</div>
</section>
<?php get_footer();?>