本文整理汇总了PHP中the_archive_description函数的典型用法代码示例。如果您正苦于以下问题:PHP the_archive_description函数的具体用法?PHP the_archive_description怎么用?PHP the_archive_description使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_archive_description函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
}
}
示例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>');
}
示例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;
}
示例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
示例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');
?>
示例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();
示例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();
示例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'));
?>
示例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');
}
示例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();
}
示例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()) {
示例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">
示例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));
示例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 */
示例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>