footer.php 9.8 KB
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>    	
        <footer class="foot-wrapper">
            <section class="foot-items">
                <section class="layout">
                    <section class="foot-item foot-blog">
                        <h2 class="foot-tit">Enterprise News !</h2>
                        <div class="foot-hide ">
                            <div class="blog-slides">
                                <ul class="slides ">
								<?php query_posts(array( 'post_type' => 'news','showposts' => 5,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
                                    <li class="foot-blog-item">
                                        <div class="blog-cont">
                                            <h3 class="blog-cont-title"><a href="<?php echo $get_lang?home_url('/')  .$get_lang.'/news/' . $post->post_name:home_url('/') .'news/' . $post->post_name ; ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 44,"..."); ?></a></h3>
											<?php $image = get_field('news_img');if( !empty($image) ): ?><div class="blog-cont-pic"><a href="<?php echo $get_lang?home_url('/')  .$get_lang.'/news/' . $post->post_name:home_url('/') .'news/' . $post->post_name ; ?>"><img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>"></a></div><?php endif; ?>
                                            <div class="blog-cont-detail">
                                                <p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 320,"..."); ?></p>
                                            </div>
                                        </div>
                                    </li>
								<?php endwhile; wp_reset_query();  ?>
                                </ul>
                            </div>

                        </div>
                    </section>
                    <section class="foot-item foot-contact">
                        <h2 class="foot-tit">How to reach ?</h2>
                        <div class="foot-hide">
                            <ul>
					<?php if( get_get_field('lianxi_adress') ){ ?><li class="foot-addr"><span>Address:</span><div> <?php get_the_field('lianxi_adress'); ?></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_phone_01') ){ ?><li class="foot-phone"><span>Phone:</span><div> <?php get_the_field('lianxi_phone_01'); ?></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_phone_02') ){ ?><li class="foot-phone"><span>Phone:</span><div> <?php get_the_field('lianxi_phone_02'); ?></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_mail_01') ){ ?><li class="foot-email"><span>E-mail:</span><div> <a href="javascript:" class="add_email12"><?php get_the_field('lianxi_mail_01'); ?></a></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_mail_02') ){ ?><li class="foot-email"><span>E-mail:</span><div> <a href="javascript:" class="add_email12">"><?php get_the_field('lianxi_mail_02'); ?></a></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_fax') ){ ?><li class="foot-fax"><span>Fax:</span><div> <?php get_the_field('lianxi_fax'); ?></div></li><?php } ?>
                    <?php if( get_get_field('lianxi_whatsapp') ){ ?><li class="foot-sky"><span>Whatsapp:</span><div> <?php get_the_field('lianxi_whatsapp'); ?></div></li><?php } ?>
                            </ul>
                        </div>

                    </section>
                    <section class="foot-item foot-inquiry">
                        <h2 class="foot-tit">Get in Touch !</h2>
                        <div class="foot-hide">
                            <div class="subscribe">
                                <p><?php get_the_field('inquiry_price_text'); ?></p>
                                <div class="subscribe-form">
                                    <a class="email inquiryfoot" href="javascript:" onclick="showMsgPop();">Inquiry For Pricelist</a>
                                </div>
                            </div>
                        </div>
                    </section>

                </section>
            </section>
            <section class="footer">
                <div class="foot-log"><img src="<?php $image = get_get_field('ad_logo');if( !empty($image) ): ?><?php echo $image['url']; ?><?php endif; ?>" alt="<?php wp_title( ' ', true, 'right' );  ?>" /></div>
                <div class="copyright"><?php query_posts(array( 'post_type' => 'transall','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') );  while (have_posts()) : the_post();?><?php if( get_field('自动翻译') ){ ?><div class="transall"></div><?php } ?><?php endwhile; wp_reset_query();  ?><?php get_the_field('about_copyright'); ?> <?php get_the_field('3code_an'); ?> <?php get_the_field('3code_qt'); ?></div>
            </section>
            <div class="foot-nav">
                <ul>
                    <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('menu' => 442, 'echo' => false)) ));?>
                </ul>
            </div>
        </footer>

    </section>
                
<aside class="scrollsidebar" id="scrollsidebar"> 
  <section class="side_content">
    <div class="side_list">
    	<header class="hd"><img src="//cdn.goodao.net/title_pic.png" alt=""/></header>
        <div class="cont">
		<li><a class="email" href="javascript:" onclick="showMsgPop();">Send Email</a></li>
<?php query_posts(array( 'post_type' => 'skype','showposts' => 5,'orderby' => 'post_date','order'=> 'DESC') );  ?>
<?php while (have_posts()) : the_post();?>
		<li><a target="_blank" class="skype" href="skype:<?php the_field('skype_id'); ?>?chat"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?></a></li>
<?php endwhile; wp_reset_query();  ?>

<?php query_posts(array( 'post_type' => 'ww','showposts' => 5,'orderby' => 'post_date','order'=> 'DESC') );  ?>
<?php while (have_posts()) : the_post();?>
		<li class="ww"><?php the_field('ww_code'); ?></li>
<?php endwhile; wp_reset_query();  ?>
	     </div>
		 
      <?php $image = get_get_field('ad_android');if( !empty($image) ): ?><div class="t-code"><a href="<?php echo $image['alt']; ?>"><img width="120px" src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>"></a><br/><center>Android</center></div><?php endif; ?>
      <?php $image = get_get_field('ad_ios');if( !empty($image) ): ?><div class="t-code"><a href="<?php echo $image['alt']; ?>"><img width="120px" src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>"></a><br/><center>IOS</center></div></div><?php endif; ?>

        <div class="side_title"><a  class="close_btn"><span>x</span></a></div>
    </div>
  </section>
  <div class="show_btn"></div>
</aside>
            <section class="inquiry-pop-bd">
            <div class="inquiry-pop">
                <i class="ico-close-pop" onclick="hideMsgPop();"></i>
 <script type="text/javascript" src="//www.globalso.site/form.js"></script>
            </div>
            </section>
 <script type="text/javascript" src="<?php echo home_url("/"); ?>style/global/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo home_url("/"); ?>style/global/js/common.js"></script>
<script type="text/javascript" src="<?php echo home_url("/"); ?>style/public/public.js"></script>
<!--[if lt IE 9]>

<script src="<?php echo home_url("/"); ?>style/global/js/html5.js"></script>

<![endif]-->
<?php wp_footer();?>
<script>  function getCookie(name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg) return getCookieVal(j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break;
    }
    return null;
}
function setCookie(name, value) {
    var expDate = new Date();
    var argv = setCookie.arguments;
    var argc = setCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    if (expires != null) {
        expDate.setTime(expDate.getTime() + expires);
    }
    document.cookie = name + "=" + escape(value) + ((expires == null) ? "": ("; expires=" + expDate.toUTCString())) + ((path == null) ? "": ("; path=" + path)) + ((domain == null) ? "": ("; domain=" + domain)) + ((secure == true) ? "; secure": "");
}
function getCookieVal(offset) {
    var endstr = document.cookie.indexOf(";", offset);
    if (endstr == -1) endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}

var firstshow = 0;
var cfstatshowcookie = getCookie('easyiit_stats');
if (cfstatshowcookie != 1) {
    a = new Date();
    h = a.getHours();
    m = a.getMinutes();
    s = a.getSeconds();
    sparetime = 1000 * 60 * 60 * 24 * 1 - (h * 3600 + m * 60 + s) * 1000 - 1;
    setCookie('easyiit_stats', 1, sparetime, '/');
    firstshow = 1;
}
if (!navigator.cookieEnabled) {
    firstshow = 0;
}
var referrer = escape(document.referrer);
var currweb = escape(location.href);
var screenwidth = screen.width;
var screenheight = screen.height;
var screencolordepth = screen.colorDepth;
$(function($){
   var src="<?php echo home_url("/"); ?>wp-admin/admin-ajax.php?action=stats_init&assort=0&referrer="+referrer+"&currweb="+currweb+"&firstshow="+firstshow+"&screenwidth="+screenwidth+"&screenheight="+screenheight+"&screencolordepth="+screencolordepth+"&ranstr="+Math.random()
	$('body').append('<iframe style="display:none" src='+src+'></iframe>')		
});
  </script> </body>
</html>