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

PHP the_archive_description函数代码示例

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

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



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

示例1: issimple_page_header

/**
 * Page Header
 * 
 * @since IS Simple 1.0
 * ----------------------------------------------------------------------------
 */
function issimple_page_header()
{
    if (!is_single() || !is_front_page()) {
        ?>
		<header id="page-header">
			<div class="jumbotron">
				<div class="container-fluid">
					<?php 
        if (is_page()) {
            the_title('<h1 id="page-title">', '</h1>');
            edit_post_link(__('Edit', 'issimple'), '<span class="edit-link"><span class="glyphicon glyphicon-pencil"></span> ', '</span>');
        } elseif (is_404()) {
            ?>
							<h1 id="page-title"><?php 
            _e('Page not found', 'issimple');
            ?>
</h1><?php 
        } elseif (is_archive()) {
            the_archive_title('<h1 id="page-title">', '</h1>');
            if (is_author()) {
                if (get_the_author_meta('description')) {
                    ?>
									<p id="author-bio">
										<?php 
                    get_template_part('author-info');
                    ?>
									</p><!-- #author-bio --><?php 
                }
            } else {
                the_archive_description('<div class="taxonomy-description">', '</div>');
            }
        } elseif (is_search()) {
            ?>
							<h1 id="page-title"><?php 
            printf(__('Search results for: %s', 'issimple'), get_search_query());
            ?>
							</h1><?php 
        } else {
            ?>
							<h3 id="page-title" class="h1"><?php 
            _e('Latest Posts', 'issimple');
            ?>
</h1><?php 
        }
        ?>
				</div>
			</div>
		</header><!-- #page-header --><?php 
    }
}
开发者ID:joao-parana,项目名称:is_simple_wp,代码行数:56,代码来源:template-tags.php


示例2: portland_archive_title

/**
 * Archive title
 *
 * Displays the title for archive pages.
 *
 * @since 1.0.0
 * @see https://developer.wordpress.org/reference/functions/the_archive_title/
 */
function portland_archive_title()
{
    $portland_archive_title = get_the_archive_title();
    if ('Archives' != $portland_archive_title) {
        echo '<h1 class="page-title">' . $portland_archive_title . '</h1>';
    }
    the_archive_description('<p class="page-description">', '</p>');
}
开发者ID:aaronjamesyoung,项目名称:portland,代码行数:16,代码来源:index.php


示例3: render_shortcode

    /**
     * Render main shortcode.
     * 
     * @since 1.0.0
     * @access public
     * @param array $atts 
     * @param string $content 
     * @return string
     */
    public function render_shortcode($atts, $content = null)
    {
        extract(shortcode_atts(array('first_page_only' => 'yes'), $atts, $this->shortcode));
        if (!TF_Model::is_template_page()) {
            if ('yes' == $first_page_only && is_paged()) {
                return '';
            }
            ob_start();
            ?>

                    <?php 
            the_archive_description('<div class="tf_category_description">', '</div>');
            ?>

                    <?php 
            $output = ob_get_clean();
        } else {
            $output = sprintf('<p>%s</p>', __('<strong>This is only preview text.</strong> The text content here will be replaced with actual category description when viewing the real page.', 'themify-flow'));
        }
        return $output;
    }
开发者ID:jhostetter,项目名称:wp_intern_themes,代码行数:30,代码来源:module.php


示例4: get_header

 * @package Bootstrap_to_WordPress
 */
get_header();
?>

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

			<section class="feature-image feature-image-default-alt" data-type="background" data-speed="2">
				
				<h1>
				<?php 
    the_archive_title();
    the_archive_description('<small class="taxonomy-description">', '</small>');
    ?>
				</h1>
				
			</section>
			
			<div class="container">
				<div id="primary" class="row">
					<main id="content" class="col-sm-8">
					<?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
开发者ID:kakil,项目名称:B2W,代码行数:31,代码来源:archive.php


示例5: the_archive_title

    ?>

			<header class="page-header">
				<h1 class="page-title">
					<?php 
    if (is_category()) {
        echo "ssss";
    } else {
        the_archive_title();
        echo "ppspss";
    }
    ?>
				</h1>

				<?php 
    the_archive_description();
    ?>
				pp
			</header><!-- .page-header -->

			<?php 
    get_template_part('loop');
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('content', 'none');
    ?>
开发者ID:GermansRegi,项目名称:wordpress-bacicleta,代码行数:31,代码来源:archive-ruta.php


示例6: get_header

get_header();
?>

	<section id="primary" <?php 
bavotasan_primary_attr();
?>
 role="main">

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

			<header id="archive-header">
				<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    the_archive_description('<h2 class="archive-meta">', '</h2>');
    ?>
			</header><!-- #archive-header -->

			<?php 
    while (have_posts()) {
        the_post();
        global $mb_content_area;
        $mb_content_area = 'main';
        /* Include the post format-specific template for the content. If you want to
         * this in a child theme then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */
        get_template_part('content', get_post_format());
    }
    bavotasan_pagination();
开发者ID:pavlinov,项目名称:1b.school59.eu,代码行数:31,代码来源:archive.php


示例7: __

    <section class="main_content" role="main">
        <div class="container">
            <div class="row">

                <div class="sub-heading">
                    <h1 class="text-center primary-heading"><?php 
echo __('Архив', 'euzakupki');
?>
</h1>
                    <div class="sub-heading-sub">
                        <?php 
the_archive_title('<span class="text-center center-block">', '</span>');
?>
                        <?php 
the_archive_description('<span class="text-center">', '</span>');
?>
                    </div>
                    <div class="text-center">
                        <span class="divider" aria-hidden="true"><i class="glyphicon glyphicon-bullhorn"></i></span>
                    </div>
                </div>

                <div class="col-sm-8">

                    <?php 
if (have_posts()) {
    ?>
                        <?php 
    while (have_posts()) {
        the_post();
开发者ID:nozhko-i,项目名称:euzakupy,代码行数:30,代码来源:archive.php


示例8: get_header

 */
get_header();
global $wp_query;
?>
	<main class="page resources">
		<div class="color-block section-color"></div>
		<div class="section-title-container container">
			<div class="inner">
				<img src="<?php 
_e(TEMPLATE_URL);
?>
/images/icon-resources.png" alt="Events Calendar Icon" class="section-icon">
				<div class="section-title-text">
					<?php 
the_archive_title('<h1 class="section-title">', '</h1>');
the_archive_description('<p class="section-subtitle">', '</p>');
?>
				</div>
			</div>
		</div>
		<div class="section-content-container">
			<div class="container">

				<section class="page-section analytics">
					<?php 
if (have_posts()) {
    the_post();
    ?>
						<?php 
    D_Tempate()->get_template('content-big.php', array('classes' => 'article-8 lead-section sm'));
    ?>
开发者ID:nguyenvanduocit,项目名称:DiaDiemPhatGiao,代码行数:31,代码来源:author.php


示例9: get_header

 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package moderna
 */
get_header();
get_template_part('template-parts/headline');
?>
    <section id="content">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">

                    <?php 
the_archive_title('<h2>', '</h2><hr/>');
the_archive_description('<div>', '</div>');
if (have_posts()) {
    ?>


                        <?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/content', 'page');
    }
开发者ID:nordcap,项目名称:wp_template_moderna,代码行数:31,代码来源:archive.php


示例10: hybrid_loop_description

/**
 * Outputs the loop description.
 *
 * @since      2.0.0
 * @deprecated 3.0.0
 * @access     public
 * @return     void
 */
function hybrid_loop_description()
{
    _deprecated_function(__FUNCTION__, '3.0.0', 'the_archive_description()');
    the_archive_description();
}
开发者ID:KL-Kim,项目名称:my-theme,代码行数:13,代码来源:functions-deprecated.php


示例11: get_header

 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Briar
 * @since 1.0
 */
get_header();
?>

	<div class="page-title">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<?php 
the_archive_title('<h1 class="page-title">', '</h1>');
the_archive_description('<h5>', '</h5>');
?>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.container -->
	</div><!-- /.page title -->

	<div class="container">
		<div class="row">
			<div class="<?php 
briar_main_class();
?>
">
				<div class="post-list" id="content" role="main">
				<?php 
if (have_posts()) {
开发者ID:markc,项目名称:briar,代码行数:31,代码来源:archive.php


示例12: get_header

<?php

/**
 * The template for displaying the Clean Up Day category page.
 * @package Curb_Your_Litter
 */
get_header();
?>

<div class="container">
	<div class="row">
		<h1 class=" text-center">Clean Up Days</h1>
		<div class="col-sm-8 col-sm-offset-2">
<!-- 		<?php 
the_archive_description('<h3 class="leadin">', '</h3>');
?>
 -->
		</div>
	</div>
</div>


<?php 
$upcoming_query = cyl_get_upcoming_cleanup_query();
if ($upcoming_query->have_posts()) {
    ?>
<div class="row full background-green">

	<div class="container">
	
				<div class="row">
开发者ID:partnerandpartners,项目名称:cyl,代码行数:31,代码来源:category-clean-up-day.php


示例13: get_header

<?php

get_header();
?>
	<section class="content clear" role="main">
		<?php 
if (have_posts()) {
    ?>
			<header class="search-meta bbs">
				<div class="inner">
					<?php 
    the_archive_title('<h1 style="font-size:16px" itemprop="headline">', '</h1>');
    the_archive_description('<div class="mt10 c4">', '</div>');
    ?>
				</div>
			</header>
		<div class="archive-list">
		<?php 
    while (have_posts()) {
        the_post();
        ?>
			<article class="item post mb20 pb20 bbs" itemprop="articleBody">
				<?php 
        the_title(sprintf('<h2 class="f18 mb10" itemprop="headline"><a href="%s" rel="bookmark"  itemprop="url">', esc_url(get_permalink())), '</a></h2>');
        ?>
				<?php 
        if (has_post_thumbnail()) {
            ?>
					<div class="left mr20">
						<?php 
            the_post_thumbnail(array(120, 90));
开发者ID:yusn,项目名称:Brave,代码行数:31,代码来源:archive.php


示例14: get_header

 * @package politics
 */
get_header();
?>

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

	<div class="row">
		<div class="large-12 columns">

			<header class="page-header">
				<?php 
    the_archive_title('<h1 class="page-header-title">', '</h1>');
    the_archive_description('<h2 class="page-header-subtitle"><div class="taxonomy-description">', '</div></h2>');
    ?>
			</header><!-- .page-header -->

		</div><!-- .large-12 .blog_page_header -->
	</div><!-- .row -->

	<div class="row">

		<div class="large-8 columns">

		<div id="primary" class="content-area">
			<main id="main" class="site-main traditional-wrap" role="main">

				<?php 
    /* Start the Loop */
开发者ID:RescueThemes,项目名称:politics,代码行数:31,代码来源:archive.php


示例15: get_header

 */
get_header();
?>

	<section id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

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

			<section class='page-top'>
				<header class="page-header">
					<?php 
    the_archive_title('<h1 class="page-title trunk gutters">', '</h1>');
    the_archive_description('<div class="taxonomy-description"><div class="trunk gutters"><div class="L-1-2 M-1-1">', '</div></div></div>');
    ?>
				</header><!-- .page-header -->

				<div class='filters trunk gutters'>
<!-- 					<div class='float-container'>
						<a class='button' href='/category/whats-on/'>Show All</a>
						<button id='exhibitions' class='button dropdown filter-toggle'>Exhibitions<span class='icon'></span></button>
						<button id='events' class='button dropdown filter-toggle'>Events<span class='icon'></span></button>
					</div> -->
					<div id='filters-exhibitions' class='filter-list float-container'>
						<a href='/dev/mate/wordpress/en/category/whats-on/exhibitions/' id='exhibitions' class='button dropdown'>Exhibitions<!-- <span class='icon'></span> --></a>
						<?php 
    wp_list_categories('exclude=31&title_li=&child_of=8');
    ?>
					</div>
开发者ID:baerdaniel,项目名称:MAT-wordpress,代码行数:31,代码来源:category.php


示例16: _e

 
        <h3 class="headline"><?php 
    if (is_home() || is_front_page()) {
        _e('Latest Recipes', 'chow');
    } else {
        the_archive_title();
    }
    ?>
</h3>
        <span class="line rb margin-bottom-35"></span>
        <div class="clearfix"></div>
    <?php 
}
?>
    <?php 
the_archive_description('<div class="margin-bottom-20">', '</div>');
if ($layout == 'masonry') {
    echo '</div><div class="clearfix"></div>';
}
?>
    <!-- Isotope -->

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

    <?php 
    /* Start the Loop */
    ?>
    <div class="isotope">
        <?php 
开发者ID:net0,项目名称:lecook,代码行数:30,代码来源:loop-grid.php


示例17: scotch_get_hero_text_color

;"></div>
    <div class="row small-collapse medium-uncollapse">
      <div class="columns large-12 large-centered">
        <header class="page__header <?php 
    echo scotch_get_hero_text_color($cat_id);
    ?>
"> <!-- Add inverse class -->
          <?php 
    echo scotch_get_the_archive_title();
    ?>
          <div class="page__line" style="background-color: <?php 
    echo scotch_get_category_color($cat_id);
    ?>
;"></div>
          <?php 
    the_archive_description('<div class="page__description">', '</div>');
    ?>
        </header><!-- .page-header -->

        <?php 
    global $burocrate;
    ?>

        <!-- Feaured slider -->
        <?php 
    if ($burocrate['categories-featured-slider']) {
        ?>
          <div class="hero__slider">
            <?php 
        get_template_part('parts/section', 'featured');
        ?>
开发者ID:rusakoff,项目名称:tonic-first,代码行数:31,代码来源:section-hero.php


示例18: the_monday_innerpage_title_section

    function the_monday_innerpage_title_section()
    {
        ?>
    <div class="tm-header-title">
    <?php 
        if (is_page()) {
            ?>
        <header class="entry-header">
            <?php 
            the_title('<h1 class="entry-title">', '</h1>');
            ?>
        </header><!-- .entry-header -->
    <?php 
        } elseif (is_archive()) {
            ?>
        <header class="page-header">
            <?php 
            the_archive_title('<h1 class="page-title archive-title">', '</h1>');
            the_archive_description('<div class="taxonomy-description">', '</div>');
            ?>
        </header><!-- .page-header -->
    <?php 
        } elseif (is_single()) {
            if (get_post_type() == 'post') {
                $post_category = get_the_category();
                $cat_name = $post_category[0]->cat_name;
                $cat_desc = $post_category[0]->category_description;
                ?>
            <div class="post-cat-info">
                <div class="post-cat-name"><h1 class="page-title archive-title"><?php 
                echo $cat_name;
                ?>
</h1></div>
                <div class="post-cat-desc"><div class="taxonomy-description"><?php 
                echo $cat_desc;
                ?>
</div></div>
            </div>
    <?php 
            }
        } elseif (is_404()) {
            echo '<h1 class="page-title archive-title">' . __('404', 'the-monday') . '</h1>';
        }
        ?>
        <div class="tm-breadcrumbs-area">
            <?php 
        the_monday_breadcrumbs();
        ?>
        </div>
    </div>
<?php 
    }
开发者ID:shrestharaaz,项目名称:the-monday,代码行数:52,代码来源:the-monday-functions.php


示例19: get_template_directory_uri

} else {
    echo '<div class="parallax-bg-image" style="background-image:url(' . get_template_directory_uri() . '/layout/images/header-bg.jpg)"></div>';
}
echo '</div><!--/.parallax-bg-container-->';
echo '<div class="container">';
echo '<div class="intro-content parallax-text-fade">';
echo '<div class="row">';
echo '<div class="col-md-12">';
echo '<div class="text-center">';
if (is_page_template('page-templates/blog-template.php')) {
    echo '<h1 class="intro-title">' . esc_html(get_option('blogname')) . '</h1>';
    echo '<p class="intro-tagline">' . esc_html(get_option('blogdescription')) . '</p>';
} else {
    if (is_category()) {
        echo the_archive_title('<h1 class="intro-title">', '</h1>');
        echo the_archive_description('<p class="intro-tagline">', '</p>');
    } else {
        if (is_tag()) {
            echo '<h1 class="intro-title">';
            printf(__('Posts tagged with: %s', 'pixova-lite'), single_tag_title('', false));
            echo '</h1>';
            echo '<p class="intro-tagline">' . tag_description() . '</p>';
        } else {
            if (is_search()) {
                echo '<h1 class="intro-title">';
                printf(__('Search Results for: %s', 'pixova-lite'), '<span><u>' . esc_html(get_search_query()) . '</u></span>');
                echo '</h1>';
            }
        }
    }
}
开发者ID:web-way,项目名称:web-way,代码行数:31,代码来源:section-header-archive.php


示例20: the_archive_title

<div id="primary" class="content-area">

  <div class="row" role="main">

    <div class="large-12 columns">

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

			<header class="page-header">

				<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    the_archive_description('<p class="taxonomy-description">', '</p>');
    ?>

			<hr>

			</header><!-- .page-header -->

</div><!-- .large-12 .columns -->
</div><!-- .row -->

  <div class="row" role="main">

    <div class="large-7 columns inner_content">

		<main id="main" class="site-main" role="main">
开发者ID:duongnguyen92,项目名称:tvd12v2,代码行数:29,代码来源:archive.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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