• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP hybrid_entry_class函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中hybrid_entry_class函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_entry_class函数的具体用法?PHP hybrid_entry_class怎么用?PHP hybrid_entry_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了hybrid_entry_class函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_header

/**
 * Template Name: Custom Template - Text Left
 *
 * @package Hybrid
 * @subpackage Template
 */

get_header(); ?>

	<div class="hfeed content">

		<?php hybrid_before_content(); // Before content hook ?>

		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">

				<?php hybrid_before_entry(); // Before entry hook ?>

				<div class="entry-content">

					<?php the_content(); ?>
					
					<?php wp_link_pages( array( 'before' => '<p class="pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>

				</div><!-- .entry-content -->

				<?php hybrid_after_entry(); // After entry hook ?>

			</div><!-- .hentry -->
开发者ID:nerdfiles,项目名称:sideshowtramps.com,代码行数:30,代码来源:template-left.php


示例2: while

	<!-- Begin featured area. -->
	<div id="feature">

		<?php 
while (have_posts()) {
    the_post();
    ?>

			<?php 
    do_atomic('before_entry');
    // Before entry hook
    ?>

			<div class="<?php 
    hybrid_entry_class();
    ?>
">

				<?php 
    do_atomic('open_entry');
    // Open entry hook
    ?>

				<?php 
    echo apply_atomic_shortcode('entry_title', '[entry-title]');
    ?>

				<div class="entry-content">
					<?php 
    the_content();
开发者ID:jacko5,项目名称:bjj,代码行数:30,代码来源:video.php


示例3: get_header

 * Application Attachment Template
 *
 * This application attachment template is used when a reader is viewing a single application
 * attachment. Applications are uploads (i.e., attachments) that have a mime type of 'application'.
 * @link http://themehybrid.com/themes/hybrid/attachments
 *
 * @package Hybrid
 * @subpackage Template
 */

get_header(); ?>
		<?php hybrid_before_content(); // Before content hook ?>

		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

        <?php the_ID(); ?><?php hybrid_entry_class(); ?>

				<?php hybrid_before_entry(); // Before entry hook ?>

					<?php hybrid_attachment(); ?>

					<?php the_content( sprintf( __( 'Continue reading %1$s', 'hybrid' ), the_title( ' "', '"', false ) ) ); ?>

                    <?php echo wp_get_attachment_url(); ?><?php the_title_attribute(); ?><?php echo get_post_mime_type(); ?>
                    <?php printf( __( 'Download &quot;%1$s&quot;', 'hybrid' ), the_title( '<span class="fn">', '</span>', false) ); ?>

					<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>

				<?php hybrid_after_entry(); // After entry hook ?>

			<?php hybrid_after_singular(); // After singular hook ?>
开发者ID:nerdfiles,项目名称:tbotw.org,代码行数:31,代码来源:attachment-application.php


示例4: wp_link_pages

					<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
				</div><!-- .entry-content -->

				<?php hybrid_after_entry(); // After entry hook ?>

			</div><!-- .hentry -->

			<?php hybrid_after_singular(); // After singular hook ?>

			<?php comments_template( '/comments.php', true ); ?>

			<?php endwhile; ?>

		<?php elseif ( have_posts() && !is_user_logged_in() ) : // If user is not logged in ?>

			<div id="post-0" class="<?php hybrid_entry_class(); ?>">

				<?php hybrid_before_entry(); // Before entry hook ?>

				<div class="entry-content">

					<p class="alert">
						<?php printf( __( 'You must be <a href="%1$s" title="Log in">logged in</a> to view the content of this page.', 'hybrid' ), wp_login_url( get_permalink() ) ); ?>

						<?php if ( get_option( 'users_can_register' ) ) printf( __( 'If you\'re not currently a member, please take a moment to <a href="%1$s" title="Register">register</a>.', 'hybrid' ), site_url( 'wp-login.php?action=register', 'login' ) ); ?>
					</p><!-- .alert -->

				</div><!-- .entry-content -->

				<?php hybrid_after_entry(); // After entry hook ?>
开发者ID:nerdfiles,项目名称:tbotw.org,代码行数:30,代码来源:page-logged-in.php


示例5: hybrid_post_class

/**
 * Old equivalent of hybrid_entry_class().
 *
 * @since 0.2
 * @deprecated 0.5 Use hybrid_entry_class() instead.
 */
function hybrid_post_class( $deprecated = '' ) {
	_deprecated_function( __FUNCTION__, '0.5', 'hybrid_entry_class()' );
	hybrid_entry_class( $deprecated );
}
开发者ID:nerdfiles,项目名称:mabrylaw.com,代码行数:10,代码来源:deprecated.php


示例6: hybrid_before_content

	<div id="content" class="hfeed content">

		<?php hybrid_before_content(); // Before content hook ?>

		<div class="archive-info taxonomy-info">

			<h1 class="archive-title taxonomy-title"><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h1>

			<div class="archive-description taxonomy-description">
				<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
			</div><!-- .archive-description -->

		</div><!-- .archive-info -->

		<div class="<?php hybrid_entry_class(); ?>">

			<?php hybrid_before_entry(); // Before entry hook ?>

			<div class="entry-content">

				<?php $args = array(
					'title_li' => false,
					'title_before' => false,
					'title_after' => false,
					'category_name' => $term->name,
					'category_before' => false,
					'category_after' => false,
					'categorize' => false,
					'show_description' => true,
					'between' => '<br />',
开发者ID:nerdfiles,项目名称:tbotw.org,代码行数:30,代码来源:taxonomy-link_category.php


示例7: get_header

 *
 * This audio attachment template is used when a reader is viewing a single audio attachment. 
 * Audio attachments are uploads that have a mime type of 'audio'.
 * @link http://themehybrid.com/themes/hybrid/attachments/audio
 *
 * @package Hybrid
 * @subpackage Template
 */

get_header(); ?>

		<?php hybrid_before_content(); // Before content hook ?>

		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

        <?php the_ID(); ?> <?php hybrid_entry_class( 'haudio' ); ?>

				<?php hybrid_before_entry(); // Before entry hook ?>

					<?php hybrid_attachment(); ?>

						<?php the_content( sprintf( __( 'Continue reading %1$s', 'hybrid' ), the_title( ' "', '"', false ) ) ); ?>

						<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', 'hybrid' ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
					</p><!-- .download -->

					<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>

				</div><!-- .entry-content -->

				<?php hybrid_after_entry(); // After entry hook ?>
开发者ID:nerdfiles,项目名称:tbotw.org,代码行数:31,代码来源:attachment-audio.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP hybrid_get_attr函数代码示例发布时间:2022-05-15
下一篇:
PHP hybrid_attr函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap