single-guide.php
2.8 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
<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<!-- head_banner -->
<div class="slider_banner">
<div class="swiper-wrapper">
<?php $images = get_get_field('ad_index_banner'); if( $images ): foreach( $images as $image ): ?>
<div class="swiper-slide"> <a href="<?php echo $image['alt']; ?>"> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>"/></a></div>
<?php endforeach; endif; ?>
</div>
<div class="swiper-button-prev swiper-button-white"><span class="slide-page-box"></span></div>
<div class="swiper-button-next swiper-button-white"><span class="slide-page-box"></span></div>
<div class="swiper-pagination swiper-pagination-white"></div>
</div>
<!-- cate -->
<section class="sys_page_tools">
<div class="layout">
<a class="btn_side_nav" href="javascript:"><span class="btn_txt">ALL PRODUCT CATEGORIES</span></a>
<div class="share_this"><div class="addthis_sharing_toolbox"></div></div>
</div>
</section>
<section class="web_main page_main">
<?php get_sidebar();?>
<div class="layout">
<section class="main">
<header class="page_titbar">
<h2 class="title"><?php wp_title(); ?></h2>
</header>
<article class="entry blog-article">
<?php query_posts(array('showposts' => 1, 'orderby' => 'rand', )); $i=1;while ( have_posts() ) : the_post(); ?>
<div style="float:right;margin:10px;"><a href="<?php the_permalink() ?>"><img src="<?php $img_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "thumbnail");echo $img_src[0];?>" alt="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>" title="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>"></a></div>
<?php endwhile; wp_reset_query(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<div class="clear"></div>
<hr>
<?php wp_title(); ?>
Related Video: <br/>
<br/>
<?php query_posts(array( 'post_type' => 'vs','showposts' => 1,'orderby' => 'rand') ); while (have_posts()) : the_post();?>
<?php echo apply_filters('the_content', $post->post_content); ?>
<?php endwhile; wp_reset_query();?>
<hr>
<?php echo do_shortcode( '[rand_pre]' ); ?> <?php echo do_shortcode( '[rand_keywords]' ); ?>, <?php echo do_shortcode( '[rand_keywords]' ); ?>, <?php echo do_shortcode( '[rand_keywords]' ); ?>, <?php echo do_shortcode( '[rand_l_suffix]' ); ?>
<hr>
<div class="addthis_sharing_toolbox"></div>
<div class="clear"></div>
</article>
</section>
</div>
</section>
<?php get_footer();?>