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

PHP bavotasan_primary_attr函数代码示例

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

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



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

示例1: bavotasan_theme_options

 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * For example, it puts together the home page when no home.php file exists.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @since 3.0.0
 */
$bavotasan_theme_options = bavotasan_theme_options();
get_header();
if ('page' == get_option('show_on_front')) {
    include get_page_template();
} else {
    ?>
	<div id="primary" <?php 
    bavotasan_primary_attr();
    ?>
 role="main">
		<?php 
    $sticky = get_option('sticky_posts');
    $featured = new WP_Query(array('posts_per_page' => 1, 'post__in' => $sticky, 'ignore_sticky_posts' => 1));
    global $paged;
    if (!empty($sticky[0]) && 2 > $paged) {
        ?>
		<div id="featured" class="row">
			<?php 
        while ($featured->have_posts()) {
            $featured->the_post();
            global $mb_content_area;
            $mb_content_area = 'main';
            get_template_part('content', get_post_format());
开发者ID:pavlinov,项目名称:1b.school59.eu,代码行数:31,代码来源:front-page.php


示例2: bavotasan_wrapper_start

/**
 * Adds the needed HTML before all WooCommerce pages
 *
 * This function is attached to the 'woocommerce_before_main_content' action hook.
 *
 * @uses	get_query_var()
 * @uses	is_front_page()
 * @uses	bavotasan_header_image()
 * @uses	bavotasan_primary_attr()
 *
 * @since 1.0.0
 */
function bavotasan_wrapper_start()
{
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    if (is_front_page() && 1 == $paged) {
        bavotasan_header_image();
        ?>
		<div class="home-container">
			<div class="wrapper">
				<?php 
    }
    ?>
	<div class="container">
		<div class="row">
			<div id="primary" <?php 
    bavotasan_primary_attr();
    ?>
>
	<?php 
}
开发者ID:aleffsantos,项目名称:Frameye-WebApp,代码行数:31,代码来源:functions.php


示例3: get_header

/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @since 1.0.0
 */
get_header();
?>

	<div class="container">
		<div class="row">
			<div id="primary" class="col-md-12" <?php bavotasan_primary_attr(); ?>>
				<?php
				while ( have_posts() ) : the_post();
					?>
					<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
						<!-- <h1 class="entry-title"><?php the_title(); ?></h1> -->

					    <div class="entry-content description clearfix">
						    <?php the_content( __( 'Read more', 'arcade') ); ?>
					    </div><!-- .entry-content -->

					    <?php get_template_part( 'content', 'footer' ); ?>
					</article><!-- #post-<?php the_ID(); ?> -->

					<?php
					comments_template( '', true );
开发者ID:emergugue,项目名称:theme_salvemooz,代码行数:31,代码来源:page.php


示例4: get_header

 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each specific one.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @since 1.0.0
 */
get_header(); ?>

	<div class="container">
		<div class="row">
			<section id="primary" <?php bavotasan_primary_attr(); ?>>

				<?php if ( have_posts() ) : ?>

					<header id="archive-header">
						<?php if ( is_author() ) echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?>
						<h1 class="page-title">
							<?php if ( is_category() ) : ?>
								<?php echo single_cat_title( '', false ); ?>
							<?php elseif ( is_author() ) : ?>
								<?php printf( __( '%s', 'arcade' ), get_the_author_meta( 'display_name', get_query_var( 'author' ) ) ); ?>
							<?php elseif ( is_tag() ) : ?>
								<?php printf( __( 'Tag Archive for %s', 'arcade' ), single_tag_title( '', false ) ); ?>
							<?php elseif ( is_day() ) : ?>
								<?php printf( __( 'Daily Archives: %s', 'arcade' ), get_the_date() ); ?>
							<?php elseif ( is_month() ) : ?>
开发者ID:emergugue,项目名称:theme_salvemooz,代码行数:31,代码来源:archive.php


示例5: get_header

 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * For example, it puts together the home page when no home.php file exists.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @since 1.0.0
 */
get_header(); ?>

	<div class="container">
		<div class="row">
        	<div id="primary" <?php bavotasan_primary_attr(); ?>>
        		<?php
        		if ( have_posts() ) :
        			while ( have_posts() ) : the_post();
        				get_template_part( 'content', get_post_format() );
        			endwhile;

        			bavotasan_pagination();
        		else :
        			get_template_part( 'content', 'none' );
        		endif;
        		?>
        	</div>
            
		</div>
	</div>
开发者ID:emergugue,项目名称:theme_salvemooz,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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