本文整理汇总了PHP中the_author_description函数的典型用法代码示例。如果您正苦于以下问题:PHP the_author_description函数的具体用法?PHP the_author_description怎么用?PHP the_author_description使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_author_description函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: authorWidget
function authorWidget()
{
$settings = get_option("widget_authorwidget");
$title = $settings['title'];
if ($title == "") {
$title = __('Author Info', 'woothemes');
}
if (is_single()) {
?>
<div id="author" class="widget">
<h3 class="widget_title"><img src="<?php
bloginfo('template_directory');
?>
/images/ico-author.png" alt="" /><?php
echo $title;
?>
</h3>
<div class="wrap">
<div class="fl"><?php
echo get_avatar(get_the_author_id(), '48');
?>
</div>
<span class="author-info"><?php
_e('This post was written by', 'woothemes');
?>
<?php
the_author_posts_link();
?>
<?php
_e('who has written', 'woothemes');
?>
<?php
the_author_posts();
?>
<?php
_e('posts on', 'woothemes');
?>
<a href="<?php
echo get_option('home');
?>
/"><?php
bloginfo('name');
?>
</a>.</span>
<br class="fix"></br>
<p class="author-desc"><?php
the_author_description();
?>
</p>
</div>
</div>
<?php
}
}
开发者ID:juslee,项目名称:e27,代码行数:56,代码来源:theme-widgets.php
示例2: bf_author_information
/**
* {@internal Missing Short Description }}
*
* {@internal Missing Long Description }}
*
* @ignore
* @since 0.5.2
*/
function bf_author_information()
{
if (bf_get_option('display_author')) {
echo '<div class="author-desc vcard">';
echo '<h5>Author Information</h5>';
echo '<div class="fn description">';
the_author_description();
echo '</div></div>';
}
}
开发者ID:jagtesh,项目名称:op_theme,代码行数:18,代码来源:template.php
示例3: the_content
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox"></div>
<div class="row">
<div class="col-sm-11">
<div class="conteudo">
<?php
the_content();
?>
</div>
<div class="dados-autor">
<div class="descricao-autor">
<?php
the_author_description();
?>
</div>
</div>
</div>
</div>
</article><!-- #post-## -->
开发者ID:rodrigo-mamangava,项目名称:vertigem,代码行数:30,代码来源:content-search.php
示例4: blog_author_info
function blog_author_info()
{
?>
<section id="about_the_author">
<h3><?php
_e('About the author', 'striking_front');
?>
</h3>
<div class="author_content">
<div class="gravatar"><?php
echo get_avatar(get_the_author_meta('user_email'), '60');
?>
</div>
<div class="author_info">
<div class="author_name"><?php
the_author_posts_link();
?>
</div>
<p class="author_desc"><?php
the_author_description();
?>
</p>
</div>
<div class="clearboth"></div>
</div>
</section>
<?php
}
开发者ID:blocher,项目名称:oneholyname,代码行数:28,代码来源:themeGenerator.php
示例5: widget
function widget($args, $instance)
{
extract($args);
$title = empty($instance['title']) ? __('About', 'k2_domain') : apply_filters('widget_title', $instance['title']);
$message = stripslashes($instance['message']);
if (is_home() or is_front_page() or is_page()) {
if (!empty($message)) {
echo $before_widget;
if ($title != '<none>') {
echo $before_title . $title . $after_title;
}
echo '<div>' . $message . '</div>' . $after_widget;
}
} elseif (!is_singular()) {
echo $before_widget;
if ($title != '<none>') {
echo $before_title . $title . $after_title;
}
?>
<?php
if (is_category()) {
// Category Archive
?>
<p><?php
printf(__('The %1$s archives for the %2$s category.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', single_cat_title('', false));
?>
</p>
<?php
} elseif (is_day()) {
// Day Archive
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time(__('l, F jS, Y', 'k2_domain')));
?>
</p>
<?php
} elseif (is_month()) {
// Monthly Archive
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time(__('F, Y', 'k2_domain')));
?>
</p>
<?php
} elseif (is_year()) {
// Yearly Archive
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time('Y'));
?>
</p>
<?php
} elseif (is_search()) {
// Search
?>
<p><?php
printf(__('You searched the %1$s archives for <strong>%2$s</strong>.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', esc_attr(get_search_query()));
?>
</p>
<?php
} elseif (is_author()) {
// Author Archive
?>
<p><?php
printf(__('Archive for <strong>%s</strong>.', 'k2_domain'), get_the_author());
?>
</p>
<p><?php
the_author_description();
?>
</p>
<?php
} elseif (is_tag()) {
// Tag Archive
?>
<p><?php
printf(__('The %1$s archives for the <strong>%2$s</strong> tag.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>', get_query_var('tag'));
?>
</p>
<?php
} elseif (is_paged()) {
// Paged Archive
?>
<p><?php
printf(__('The %s weblog archives.', 'k2_domain'), '<a href="' . get_option('siteurl') . '">' . get_bloginfo('name') . '</a>');
?>
</p>
<?php
}
?>
<?php
//.........这里部分代码省略.........
开发者ID:JeffLuckett,项目名称:quickref,代码行数:101,代码来源:widgets.php
示例6: author_info
function author_info()
{
?>
<div class="info">
<a title="<?php
_e('Subscribe to this!', 'guangzhou');
?>
" href="<?php
echo $this->archive_feed();
?>
"><img src="<?php
bloginfo('template_url');
?>
/image/feed.png" width="16" height="16" alt="RSS"/></a>
</div>
<h2><?php
_e('Author Information', 'guangzhou');
?>
</h2>
<?php
if ($this->archive_total() > 0) {
?>
<p><?php
printf(__('The author has written <strong>%s entries</strong>.', 'guangzhou'), $this->archive_total());
?>
</p>
<?php
}
?>
<dl>
<dt><?php
_e('Name', 'guangzhou');
?>
</dt>
<dd>
<?php
the_author();
?>
<?php
if (get_the_author_url()) {
?>
<?php
printf(__('(visit <a href="%s">website</a>', 'guangzhou'), get_the_author_url());
?>
<?php
}
?>
</dd>
<?php
if (get_the_author_description()) {
?>
<dt><?php
_e('Description', 'guangzhou');
?>
</dt>
<dd><?php
the_author_description();
?>
</dd>
<?php
}
?>
<?php
do_action('author_page_info');
?>
</dl>
<?php
}
开发者ID:billerby,项目名称:Surdeg,代码行数:75,代码来源:page_info.php
示例7: wpi_template_attachment
function wpi_template_attachment()
{
global $post;
$pby_class = wpi_get_theme_option('post_by_enable') ? 'pby' : 'pby dn';
?>
<ul class="hfeed r cf">
<?php
while (have_posts()) {
the_post();
?>
<li class="xfolkentry hentry hreview hlisting cf">
<dl class="r">
<dd class="postmeta-date fl">
<ul class="span-1 pdate r">
<li class="pmonth"><span><?php
the_time('M');
?>
</span></li>
<li class="pday"><span><?php
the_time('d');
?>
</span></li>
<li class="pyear"><span><?php
the_time('Y');
?>
</span></li>
</ul>
</dd>
<dd class="postmeta-head span-13 start fl">
<?php
wpi_hatom_title();
?>
<div class="postmeta-info">
<span class="<?php
echo $pby_class;
?>
">Posted by <cite class="vcard reviewer author"><?php
wpi_post_author();
?>
</cite>.</span> <p class="di"><?php
_e('Filed under', WPI_META);
wpi_cat_links(1);
?>
.</p>
<p><span class="ptime r"><?php
printf(__(' <cite>%s</cite>', WPI_META), wpi_get_postime());
?>
</span></p><?php
wpi_text_size();
?>
</div>
</dd>
<dd class="entry-content description entry cb ox">
<?php
do_action('wpi_before_content_attachment');
?>
<div class="entry-attachment pdt"><a href="<?php
echo wp_get_attachment_url($post->ID);
?>
" title="<?php
echo wp_specialchars(get_the_title($post->ID), 1);
?>
" class="thickbox thumb-" rel="attachment"><?php
echo wp_get_attachment_image($post->ID, 'large');
?>
</a></div>
<div class="entry-caption mgt"><?php
if (!empty($post->post_excerpt)) {
the_excerpt();
}
?>
</div>
<?php
if (wpi_option('post_author_description')) {
?>
<fieldset id="post-author" class="cb cf pdt mgt">
<?php
$ll = __('About the Author', WPI_META);
?>
<?php
t('legend', $ll, array('title' => $ll));
?>
<address class="author-avatar <?php
wpiGravatar::authorGID();
?>
rn fl">
<span class="rtxt"> </span>
</address>
<p id="about-author" class="postmetadata fl">
<small class="db rn"><?php
the_author_description();
?>
</small>
</p>
</fieldset>
<?php
}
?>
//.........这里部分代码省略.........
开发者ID:Creativebq,项目名称:wp-istalker,代码行数:101,代码来源:template.php
示例8: about_sidebar_module
function about_sidebar_module($args)
{
global $s;
extract($args);
$k2about = sbm_get_option('aboutblurp');
if (!(is_home() and !is_paged() and $k2about == '' or is_single() or is_page())) {
echo $before_module . $before_title . $title . $after_title;
?>
<?php
/* Frontpage */
if (is_home() and !is_paged() and $k2about != '') {
?>
<p><?php
echo stripslashes($k2about);
?>
</p>
<?php
/* Category Archive */
} elseif (is_category()) {
?>
<p><?php
printf(__('The %1$s archives for the %2$s category.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', single_cat_title('', false));
?>
</p>
<?php
/* Day Archive */
} elseif (is_day()) {
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time(__('l, F jS, Y', 'k2_domain')));
?>
</p>
<?php
/* Monthly Archive */
} elseif (is_month()) {
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time(__('F, Y', 'k2_domain')));
?>
</p>
<?php
/* Yearly Archive */
} elseif (is_year()) {
?>
<p><?php
printf(__('The %1$s archives for %2$s.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', get_the_time('Y'));
?>
</p>
<?php
/* Search */
} elseif (is_search()) {
?>
<p><?php
printf(__('You searched the %1$s archives for \'<strong>%2$s</strong>\'.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', wp_specialchars(stripslashes($s), true));
?>
</p>
<?php
/* Author Archive */
} elseif (is_author()) {
?>
<p><?php
printf(__('Archive for <strong>%s</strong>.', 'k2_domain'), get_the_author());
?>
</p>
<p><?php
the_author_description();
?>
</p>
<?php
/* Tag Archive */
} elseif (function_exists('is_tag') and is_tag()) {
?>
<p><?php
printf(__('The %1$s archives for the \'%2$s\' tag.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>', get_query_var('tag'));
?>
</p>
<?php
/* Paged Archive */
} elseif (is_paged()) {
?>
<p><?php
printf(__('The %s weblog archives.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>');
?>
</p>
<?php
}
echo $after_module;
}
}
开发者ID:64kbytes,项目名称:stayinba,代码行数:98,代码来源:aboutcurrent.php
示例9: postinfo
function postinfo($postinfo_string)
{
// one theme option needed below for nofollow trackback / RSS links yes/no
global $bfa_ata, $post;
/* replace date format escape placeholders(#) with the actual escpae
character (=backslashes). This function removes all backslashes from
post info strings to avoid issues with hosts that have magic_quotes_gpc ON.
But we want to keep the backslashes inside date items, because they are
needed to escape literal strings inside dates */
$postinfo_string = str_replace("#", "\\", $postinfo_string);
$postinfo = $postinfo_string;
// Author public name
if (strpos($postinfo_string, '%author%') !== FALSE) {
ob_start();
the_author();
$author = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author%", $author, $postinfo);
}
// Public name of Author who last modified a post, since WordPress 2.8.
// Check first if function is available (= if this is WP 2.8+)
if (function_exists('the_modified_author')) {
if (strpos($postinfo_string, '%modified-author%') !== FALSE) {
ob_start();
the_modified_author();
$modified_author = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%modified-author%", $modified_author, $postinfo);
}
}
// Author about yourself
if (strpos($postinfo_string, '%author-description%') !== FALSE) {
ob_start();
the_author_description();
$author_description = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-description%", $author_description, $postinfo);
}
// Author login name
if (strpos($postinfo_string, '%author-login%') !== FALSE) {
ob_start();
the_author_login();
$author_login = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-login%", $author_login, $postinfo);
}
// Author first name
if (strpos($postinfo_string, '%author-firstname%') !== FALSE) {
ob_start();
the_author_firstname();
$author_firstname = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-firstname%", $author_firstname, $postinfo);
}
// Author last name
if (strpos($postinfo_string, '%author-lastname%') !== FALSE) {
ob_start();
the_author_lastname();
$author_lastname = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-lastname%", $author_lastname, $postinfo);
}
// Author nickname
if (strpos($postinfo_string, '%author-nickname%') !== FALSE) {
ob_start();
the_author_nickname();
$author_nickname = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-nickname%", $author_nickname, $postinfo);
}
// Author ID
if (strpos($postinfo_string, '%author-id%') !== FALSE) {
ob_start();
the_author_ID();
$author_ID = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-id%", $author_ID, $postinfo);
}
// Author email address, clear text in HTML source code
if (strpos($postinfo_string, '%author-email-clear%') !== FALSE) {
ob_start();
the_author_email();
$author_email_clear = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-email-clear%", $author_email_clear, $postinfo);
}
// Author email address obfuscated
if (strpos($postinfo_string, '%author-email%') !== FALSE) {
$postinfo = str_replace("%author-email%", antispambot(get_the_author_email()), $postinfo);
}
// Author website URL
if (strpos($postinfo_string, '%author-url%') !== FALSE) {
ob_start();
the_author_url();
$author_url = ob_get_contents();
ob_end_clean();
$postinfo = str_replace("%author-url%", $author_url, $postinfo);
}
// Author website link
if (strpos($postinfo_string, '%author-link%') !== FALSE) {
//.........这里部分代码省略.........
开发者ID:billerby,项目名称:Surdeg,代码行数:101,代码来源:bfa_postinfo.php
示例10: the_title
<div id="content">
<div id="content_head">
<div class="content_title">
<h1> <?php the_title(); ?></h1>
</div>
<div class="ny_two_column">
<div class="ny_column column_first">
<p>
<strong>简介:</strong><?php the_excerpt(); ?>
</p>
</div>
<div class="ny_column column_second">
<p>
<strong>发布日期:</strong><?php the_time('F j, Y'); ?><br />
<strong>关于作者:</strong><?php the_modified_author(); ?><?php the_author_description(); ?><br />
<strong>技术主题:</strong><?php the_category(', ') ?>
</p>
</div>
</div>
</div>
<div id="contentleft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
开发者ID:nieyong,项目名称:nienet_theme,代码行数:29,代码来源:single.php
注:本文中的the_author_description函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论