本文整理汇总了PHP中responsive_get_content_classes函数的典型用法代码示例。如果您正苦于以下问题:PHP responsive_get_content_classes函数的具体用法?PHP responsive_get_content_classes怎么用?PHP responsive_get_content_classes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了responsive_get_content_classes函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_header
*
* @file blog-excerpt.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2013 ThemeID
* @license license.txt
* @version Release: 1.1.0
* @filesource wp-content/themes/responsive/blog-excerpt.php
* @link http://codex.wordpress.org/Templates
* @since available since Release 1.0
*/
get_header();
?>
<div id="content-blog" class="<?php
echo implode(' ', responsive_get_content_classes());
?>
">
<?php
get_template_part('loop-header');
?>
<?php
global $wp_query, $paged;
if (get_query_var('paged')) {
$paged = get_query_var('paged');
} elseif (get_query_var('page')) {
$paged = get_query_var('page');
} else {
$paged = 1;
示例2: get_header
*
* @file search.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/search.php
* @link http://codex.wordpress.org/Theme_Development#Search_Results_.28search.php.29
* @since available since Release 1.0
*/
get_header();
?>
<div id="content-search" class="<?php
echo esc_attr(implode(' ', responsive_get_content_classes()));
?>
">
<?php
if (have_posts()) {
?>
<?php
get_template_part('loop-header', get_post_type());
?>
<?php
while (have_posts()) {
the_post();
?>
示例3: get_header
* @license license.txt
* @version Release: 1.1.0
* @filesource wp-content/themes/responsive/blog.php
* @link http://codex.wordpress.org/Templates
* @since available since Release 1.0
*/
get_header();
global $more;
$more = 0;
?>
<div id="wrapper" class="clearfix">
<div id="content-blog" class="<?php echo esc_attr( implode( ' ', responsive_get_content_classes() ) ); ?>">
<?php get_template_part( 'loop-header', get_post_type() ); ?>
<?php
global $wp_query, $paged;
if ( get_query_var( 'paged' ) ) {
$paged = get_query_var( 'paged' );
} elseif ( get_query_var( 'page' ) ) {
$paged = get_query_var( 'page' );
} else {
$paged = 1;
}
$blog_query = new WP_Query( array( 'post_type' => 'post', 'paged' => $paged ) );
$temp_query = $wp_query;
$wp_query = null;