本文整理汇总了PHP中st_before_content函数的典型用法代码示例。如果您正苦于以下问题:PHP st_before_content函数的具体用法?PHP st_before_content怎么用?PHP st_before_content使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了st_before_content函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
<?php
/**
* Template Name: bbPress - Statistics
*
* @package bbPress
* @subpackage Theme
*/
// Get the statistics and extract them for later use in this template
// @todo - remove variable references
extract(bbp_get_statistics(), EXTR_SKIP);
get_header();
st_before_content($columns = '');
do_action('bbp_template_notices');
while (have_posts()) {
the_post();
?>
<div id="bbp-statistics" class="bbp-statistics">
<h1 class="entry-title"><?php
the_title();
?>
</h1>
<div class="entry-content">
<?php
get_the_content() ? the_content() : _e('<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress');
?>
<dl role="main">
示例2: extract
<?php
/**
* Template Name: bbPress - Statistics
*
* @package bbPress
* @subpackage Theme
*/
// Get the statistics and extract them for later use in this template
// @todo - remove variable references
extract(bbp_get_statistics(), EXTR_SKIP);
get_header();
st_before_content($columns);
do_action('bbp_template_notices');
while (have_posts()) {
the_post();
?>
<div id="bbp-statistics" class="bbp-statistics">
<h1 class="entry-title"><?php
the_title();
?>
</h1>
<div class="entry-content">
<?php
get_the_content() ? the_content() : _e('<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress');
?>
<dl role="main">
示例3: get_header
<?php
/**
* The template for displaying attachments.
*
* @package Skeleton WordPress Theme Framework
* @subpackage skeleton
* @author Simple Themes - www.simplethemes.com
*/
get_header();
st_before_content('sixteen');
/* Run the loop to output the attachment.
* If you want to overload this in a child theme then include a file
* called loop-attachment.php and that will be used instead.
*/
get_template_part('loop', 'attachment');
st_after_content();
// get_sidebar();
get_footer();