-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer-colophon.php
53 lines (52 loc) · 2.08 KB
/
footer-colophon.php
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
/*
* 欢迎来到代码世界,如果你想修改多梦主题的代码,那我猜你是有更好的主意了~
* 那么请到多梦网络( http://www.dmeng.net/ )说说你的想法,数以万计的童鞋们会因此受益哦~
* 同时,你的名字将出现在多梦主题贡献者名单中,并有一定的积分奖励~
* 注释和代码同样重要~
* @author 多梦 @email [email protected]
*/
?>
<footer id="colophon" class="container" role="contentinfo" itemscope itemtype="http://schema.org/WPFooter">
<div class="<?php echo apply_filters('dmeng_footer_widget_panel_class', 'panel panel-default text-muted');?>">
<div class="panel-body">
<?php
/*
* 底部边栏
* @since DMENG 2.0
*
*/
if( is_active_sidebar( 'sidebar-2' ) ){
dynamic_sidebar( 'sidebar-2' );
}
// 链接菜单
if ( has_nav_menu( 'link_menu' ) ) {
wp_nav_menu( array(
'menu' => 'link_menu',
'theme_location' => 'link_menu',
'depth' => -1,
'container' => '',
'container_class' => '',
'menu_id' => 'link_menu',
'menu_class' => 'breadcrumb',
'items_wrap' => '<ul id="%1$s" class="%2$s"><li class="active"><span class="glyphicon glyphicon-list-alt"></span> '.__('链接','dmeng').'</li> %3$s</ul>',
'walker' => new Dmeng_Bootstrap_Menu()
) );
}
?>
</div>
<div class="panel-footer clearfix">
<?php
$output = sprintf(
'© %s <a href="%s">%s</a> ',
date( 'Y', current_time( 'timestamp', 0 ) ),
home_url('/'),
get_bloginfo('name')
);
$output .=__('版权所有','dmeng').' '.get_option('zh_cn_l10n_icp_num', '').' '.stripslashes(htmlspecialchars_decode($GLOBALS['dmeng_general_setting']['footer_code']));
// $output .= '<span class="pull-right copyright">'.apply_filters('dmeng_footer_copyright', sprintf(__('<a href="%1$s" target="_blank">WordPress主题</a> 源自 <a href="%2$s" rel="generator" target="_blank">多梦网络</a>','dmeng'), 'http://www.dmeng.net/wordpress/' ,'http://www.dmeng.net/')).'</span>';
echo $output;
?>
</div>
</div>
</footer>