PHP Wiletize页眉,页脚和其他所有使用论文的钩子

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP Wiletize页眉,页脚和其他所有使用论文的钩子相关的知识,希望对你有一定的参考价值。

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Header Sidebar 3',
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Header Sidebar 4',
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));

function widget_header() { ?>

<div class="sidebar_3">
	<ul class="sidebar_list">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Sidebar 3') ) { ?>
		<li class="widget">
			<div class="widget_box">
				<h3><?php _e('Header Sidebar 3', 'thesis'); ?></h3>
				<p>This is your new sidebar.  You can add widgets to it like normal using the Widgets Panel.</p>
			</div>
		</li>
<?php	}	?>
	</ul>
</div>


<div class="sidebar_4">
	<ul class="sidebar_list">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Sidebar 4') ) { ?>
		<li class="widget">
			<div class="widget_box">
				<h3><?php _e('Header Sidebar 4', 'thesis'); ?></h3>
				<p>This is your new sidebar.  You can add widgets to it like normal using the Widgets Panel.</p>
			</div>
		</li>
<?php	}	?>
	</ul>
</div>

<?php
}
add_action('thesis_hook_header', 'widget_header');

以上是关于PHP Wiletize页眉,页脚和其他所有使用论文的钩子的主要内容,如果未能解决你的问题,请参考以下文章

php 为主题添加页眉,页脚和部件支持(Themer)

Widgetize页眉,页脚和其他一切使用论文&ŧ039;挂钩

php Sage&WooCommerce |页眉,页脚和侧边栏重复

php Sage&WooCommerce |页眉,页脚和侧边栏重复

在单个单元格中显示页眉页脚和单元格?

R:读取 csv 文件时删除页眉、页脚和零星的列标题