本文整理汇总了PHP中yit_get_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP yit_get_icon函数的具体用法?PHP yit_get_icon怎么用?PHP yit_get_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了yit_get_icon函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: yit_get_icon
echo yit_get_icon('blog-date-icon', true);
?>
<span><?php
_e('Date:', 'yit');
?>
</span> <?php
echo get_the_date();
?>
</p><?php
}
?>
<?php
if (yit_get_option('blog-show-comments')) {
?>
<p class="comments"><?php
echo yit_get_icon('blog-comments-icon', true);
?>
<span><?php
comments_popup_link(__('<span>Comments:</span> 0', 'yit'), __('<span>Comments:</span> 1', 'yit'), __('<span>Comments:</span> %', 'yit'));
?>
</span></p><?php
}
?>
<?php
edit_post_link(__('Edit', 'yit'), '<p class="edit-link"><i class="icon-pencil"></i>', '</p>');
?>
</div>
</div>
<div class="clear"></div>
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:gallery.php
示例2: yit_string
if ( is_single() )
{ yit_string( "<h1 class=\"post-title\"><a href=\"$link\">", $title, "</a></h1>" ); }
else
{ yit_string( "<h2 class=\"post-title\"><a href=\"$link\">", $title, "</a></h2>" ); }
?>
<!-- post author -->
<div class="meta">
<?php if( yit_get_option( 'blog-show-author' ) ) : ?><span class="author"><?php _e( 'posted by', 'yit' ) ?> <?php the_author_posts_link() ?></span><?php endif; ?>
</div>
<!-- post comments -->
<?php if( yit_get_option( 'blog-show-comments' ) ) : ?>
<p class="comments">
<!--<i class="<?php echo yit_get_icon( 'blog-comments-icon' ) ?>"></i>-->
<i class="blog-bazar-comment-icon"></i>
<span><?php comments_popup_link( '0', '1', '%' ); ?></span>
</p>
<?php endif ?>
</div>
<div class="thumbnail span<?php echo $span ?>">
<div class="border">
<div>
<?php yit_string( "<blockquote class=\"post-title\"><a href=\"$link\">", get_the_content(), "</a><cite>" . $title . "</cite></blockquote>" ) ?>
</div>
</div>
开发者ID:simonsays88,项目名称:costa,代码行数:30,代码来源:quote.php
示例3: get_the_title
else
{ $title = get_the_title(); }
if ( is_single() )
{ yit_string( "<h1 class=\"post-title\"><a href=\"$link\">", $title, "</a></h1>" ); }
else
{ yit_string( "<h2 class=\"post-title\"><a href=\"$link\">", $title, "</a></h2>" ); }
?>
<?php if( yit_get_option( 'blog-show-author' ) ) : ?><p class="author"><?php echo yit_get_icon( 'blog-author-icon', true ) ?><span><?php _e( 'Author:', 'yit' ) ?></span> <?php the_author_posts_link() ?></p><?php endif; ?>
<?php if( yit_get_option( 'blog-show-date' ) ) : ?><p class="date"><?php echo yit_get_icon( 'blog-date-icon', true ) ?><span><?php _e( 'Date:', 'yit') ?></span> <?php echo get_the_date() ?></p><?php endif; ?>
<?php edit_post_link( __( 'Edit', 'yit' ), '<p class="edit-link"><i class="icon-pencil"></i>', '</p>' ); ?>
</div>
<div>
<?php if( yit_get_option( 'blog-show-comments' ) ) : ?><p class="comments"><?php echo yit_get_icon( 'blog-comments-icon', true ) ?><span><?php comments_popup_link( __( '<span>Comments:</span> 0', 'yit' ), __( '<span>Comments:</span> 1', 'yit' ), __( '<span>Comments:</span> %', 'yit' ) ); ?></span></p><?php endif ?>
</div>
<div>
<?php echo do_shortcode( apply_filters('yit-elegant_blog-socials', '[share icon_type="square" title="' . __( 'Share on', 'yit' ) . '" socials="facebook, twitter, google, pinterest"]' ) ); ?>
</div>
</div>
<!-- post title -->
<div class="the-content span6">
<div>
<?php
if( $has_thumbnail ) {
if( ( !is_single() || ( get_post_format() != 'video' && get_post_format() != 'gallery' ) ) ) {
the_post_thumbnail( 'blog_elegant', array( 'class' => 'thumbnail' ) );
}
}
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:audio.php
示例4: yit_get_option
*/
$has_thumbnail = ( !yit_image( 'size=blog_bazar&image_scan=' . yit_get_option('blog-show-first-content-image'), false ) || ( ! is_single() && ! yit_get_option( 'blog-show-featured' ) ) || ( is_single() && ! yit_get_option( 'blog-show-featured-single' ) ) ) ? false : true;
if( yit_get_sidebar_layout() == 'sidebar-no' ) {
$span = $has_thumbnail ? ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 7 : 8 ) : ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 11 : 12 );
} else {
$span = $has_thumbnail ? ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 4 : 5 ) : ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 8 : 9 );
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'hentry-post group blog-small-ribbon row' ); ?>>
<?php if( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ) : ?>
<div class="date-comments span1">
<?php if( yit_get_option( 'blog-show-date' ) ) : ?><p class="date"><span class="month"><?php echo get_the_date( 'M' ) ?></span><span class="day"><?php echo get_the_date( 'd' ) ?></span></p><?php endif; ?>
<?php if( yit_get_option( 'blog-show-comments' ) ) : ?><p class="comments"><i class="<?php echo yit_get_icon( 'blog-comments-icon' ) ?>"></i><span><?php comments_popup_link( '0', '1', '%' ); ?></span></p><?php endif ?>
</div>
<?php endif ?>
<!-- post featured & title -->
<?php
if( get_post_format() == 'quote' ) :
yit_get_template( 'blog/small-ribbon/post-formats/quote.php' );
else :
?>
<div class="<?php if ( ! $has_thumbnail ) echo 'without ' ?>thumbnail span4">
<?php if ( $has_thumbnail ) : ?>
<?php yit_image( 'size=blog_small_ribbon&image_scan=' . yit_get_option('blog-show-first-content-image') ); ?>
<?php endif ?>
<?php if( get_post_format() != '' ) : ?><span class="post-format <?php echo get_post_format() ?>"><?php _e( ucfirst( get_post_format() ), 'yit' ) ?></span><?php endif ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:markup.php
示例5: the_author_posts_link
?>
<?php
the_author_posts_link();
?>
</span><?php
}
?>
</div>
<!-- post comments -->
<?php
if (yit_get_option('blog-show-comments')) {
?>
<p class="comments">
<!--<i class="<?php
echo yit_get_icon('blog-comments-icon');
?>
"></i>-->
<i class="blog-bazar-comment-icon"></i>
<span><?php
comments_popup_link('0', '1', '%');
?>
</span>
</p>
<?php
}
?>
</div>
<div class="<?php
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:video.php
注:本文中的yit_get_icon函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论