当前位置: 首页>>代码示例>>PHP>>正文


PHP responsive_get_content_classes函数代码示例

本文整理汇总了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;
开发者ID:kristinakarnitskaya,项目名称:larkyonline,代码行数:31,代码来源:blog-excerpt.php

示例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();
        ?>
开发者ID:dtekcth,项目名称:datateknologer.se,代码行数:31,代码来源:search.php

示例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;
开发者ID:johnmanlove,项目名称:Bridgeland,代码行数:31,代码来源:blog.php


注:本文中的responsive_get_content_classes函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。