File: /var/www/html/wp-content/themes/frameMyrskyNew/footer.php
</div>
<div class="foot_menu">
<div style="width:960px;margin:0 auto;">
<ul class="sf-menu sf-js-enabled">
<?
$config_path = dirname(__FILE__)."/config.php";
$config_path = str_replace("\\","/",$config_path);
if(file_exists($config_path))include_once($config_path);
global $not_in_menu;
if(!is_array($not_in_menu)) $not_in_menu = array();
$pages = get_pages('sort_column=menu_order');
foreach($pages as $page){
if(in_array($page->post_title,$not_in_menu)) continue;
if(in_array($page->post_title,array("客户登录","用户注册","购物车","产品展示","设备展示","ISO认证","PCB询价","PCBA询价",'购物车','product-list','product-detail',"网站地图","今日特价","今日特价信息"))) continue;
if($page->post_parent == 0){
$title_array["$page->ID"][0] = $page->post_title;
}else{
if(get_page($page->post_parent)->post_parent == 0)
$title_array["$page->post_parent"]["$page->ID"] = $page->post_title;
//echo $title_array['$page->post_parent'] = $page->ID;
//echo "<li><a href='".get_page_link($page->post_parent)."'><span>".$page->post_title."</span></a><ul>";
//echo "</ul></li>";
}
}
//var_dump($title_array);
foreach($title_array as $key => $value){
if(count($value) == 1){
if(strtoupper($title_array[$key][0])=="MY CART"){
$cart_key = $key;
//echo "<li><a href='".get_page_link($key)."' style='color:#ff9933'><span>".$title_array[$key][0]."</span></a></li>";
}else{
echo "<li><a href='".get_page_link($key)."'><span>".$title_array[$key][0]."</span></a></li>";
}
}elseif(count($value) > 1){
echo "<li><a href='".get_page_link($key)."'><span>".$title_array[$key][0]."</span></a><ul class=\"sub-menu\">";
/* foreach($value as $key2 => $temp){
if($key2 != 0){
echo "<li><a href='".get_page_link($key2)."'>".$temp."</a></li>";
}
} */
echo "</ul></li>";
}
}
?>
</ul>
</div>
<div class="clear"></div>
</div>
<div class="footer_resize">
<div class="footer_top">
<?
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Menu') ){}else{
echo "<ul>";
$footer_menu = get_page_by_title(FOOTER_MENU)->ID;
$footer_menu = empty($footer_menu)? 27 : $footer_menu;
wp_list_pages("child_of=$footer_menu&sort_column=menu_order&title_li=&depth=2");
echo "</ul>";
}
?>
</div>
<div class="footer_bottom">
<P align=left class="font12_gray2">
<A href="http://www.cqfusjy.com/" target=_blank>Guiyang Hongjie Technology Co., Ltd Address:580 Trevor Avenue, Ottawa, Canada </A>
<BR>Telephone number: +001 6475190869 <A>Mailbox:</A> <A href="mailto:robli@myrsky.com.cn">robli@myrsky.com.cn
</A>
</P>
<p>
Copyright © 2002 - <?php echo date(__('Y','ml'));?>
Inc. All rights reserved.
</p>
<p><script id="ebsgovicon" src="https://cert.ebs.gov.cn/govicon.js?id=06c4d57b-e74c-4341-84d6-a659efb91275&width=36&height=50&type=1" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
//document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5bf42630c94bcd482cf2d2f96e781e1e' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/encodeToGb2312.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#mailto').click(function(){
var mailto = "info@hongjie-soft.com";
var subject = "申请友情链接";
var body = "您好! 我想要申请友情链接! 我的网站名称:xxxx, 我的网站链接:xxxx, 我网站的Page/Rank:xxxx";
var url = "";
if(isFF()){
url = "mailto:"+mailto+"?subject="+subject+"&body="+body;
}else{
body = encodeToGb2312(body);
body = body.replace(/\+/g,'%0a%0d');
url = "mailto:"+mailto+"?subject="+encodeToGb2312(subject)+"&body="+body;
}
window.open(url,'_self');
});
function isFF(){
return navigator.userAgent.indexOf("Firefox")!=-1;
}
});
</script>
</p>
<!-- <?php
if(is_user_logged_in())
{
echo '<p class="center">';
_e('Page generated in ');
timer_stop(1);
_e(' seconds. ');
echo $wpdb->num_queries;
_e(' queries.');
// echo "<A href=\"http://www.miibeian.gov.cn\" target=_blank><FONT color=#dd4822>粤ICP备06047528号</FONT></A>";
echo '</p>';
}
?>
-->
</div><?php global $servers;if(!$servers["is_test_web"]){?>
<?php }?>
</div>
<!--<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.4.2.min.js"></script>-->
<script>
//调整左边sidebar与右边内容的高度
/*var left_height = $(".left_sidebar").height();
var right_height = $(".right_content").height();
if(right_height > left_height){
$(".left_sidebar").height(right_height);
}*/
</script>
</body>
</html>