File "single-guide.php"

Full Path: /www/wwwroot/shphe-en.com/wp-content/themes/global/single-guide.php
File size: 2.77 KB
MIME-type: --
Charset: utf-8

<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<!--<div class="path_bar">-->
<!--    <div class="layout">-->
<!--      <ul>-->
<!--       <li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>-->
<!--      </ul>-->
<!--    </div>-->
<!--  </div>-->


<?php if(get_field('page_head')):?> 

<div class="path_bar" style="background-image: url(<?php $image = get_field('page_head');if( !empty($image) ): ?> <?php echo $image['url']; ?>	<?php endif; ?>)">
    <div class="layout">
      <ul>
       <li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>
      </ul>
    </div>
  </div>
  
<?php else:?>

<div class="path_bars">
    <div class="layout">
      <ul>
       <li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>
      </ul>
    </div>
  </div>

<?php endif;?>
<section class="web_main page_main">
  <div class="layout">
    <?php get_sidebar();?>
    <section class="main">
      <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>
        <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-542380e974172b9d" async="async"></script>
        <div class="clear"></div>
      </article>
    </section>
  </div>
</section>
<?php get_footer();?>