single-guide.php 2.8 KB
<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<section class="head_slider">
    <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="slider_swiper_btns">
      <div class="layout">
        <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>
    </div>
    <div class="slider_swiper_control">
      <div class="layout">
        <div class="swiper-pagination swiper-pagination-white"></div>
      </div>
    </div>
  </section>
<div class="path_bar">
    <div class="layout">
      <ul>
       <li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>
      </ul>
    </div>
  </div>
<section class="web_main page_main">
  <div class="layout">
      <h2 class="page_title">
        <?php wp_title(); ?>
      </h2>
      <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>
  </div>
</section>
<?php get_footer();?>