当前位置: 首页>>代码示例>>PHP>>正文


PHP bones_get_the_author_posts_link函数代码示例

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


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

示例1: the_permalink

 role="article">

				<header class="article-header">

					<h3><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        the_title_attribute();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
					<p class="byline vcard"><?php 
        printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'anp-main-theme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'anp-main-theme')), bones_get_the_author_posts_link());
        ?>
</p>

				</header>

				<section class="entry-content clearfix">

					<?php 
        the_excerpt();
        ?>

				</section>

				<footer class="article-footer">
开发者ID:misfist,项目名称:anp-network-main-theme-redux,代码行数:30,代码来源:archive-custom_type.php

示例2: the_permalink

                                    
	                 <h3 class="archive-post-title">
	                    <a href="<?php 
        the_permalink();
        ?>
">
	                        <?php 
        the_title();
        ?>
	                    </a>
	                 </h3>
	                 
	                     <?php 
        $subtitle = get_post_meta($post->ID, 'subtitle', true);
        if (!$subtitle) {
            echo '<div class="archive-author">' . bones_get_the_author_posts_link() . '</div>';
        } else {
            if ($subtitle) {
                echo '<div class="archive-author">' . $subtitle . '</div>';
            }
        }
        ?>
 
		                                
	                <div class="entry">
	                    <?php 
        the_excerpt();
        ?>
	                </div>
		                                
				 </div>                   
开发者ID:bmeisler,项目名称:sensitiveskinandbones,代码行数:30,代码来源:index.php

示例3: Header

  <aside class="right-side">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1 class="single-title entry-title"><a href="<?php 
the_permalink();
?>
" rel="bookmark" title="<?php 
the_title_attribute();
?>
"><?php 
the_title();
?>
</a></h1>
      <p class="byline vcard">
        by <span class="author"><em><?php 
echo bones_get_the_author_posts_link();
?>
</em></span> -
        <time class="updated" datetime="<?php 
echo get_the_time('Y-m-d');
?>
"><?php 
echo get_the_time(get_option('date_format'));
?>
</time>
      </p>

      <?php 
get_template_part('breadcrumb');
?>
    </section>
开发者ID:shopline,项目名称:doxytheme,代码行数:31,代码来源:single.php

示例4: post_class

						<article <?php 
        post_class('card clearfix');
        ?>
 role="article" itemscope itemtype="http://schema.org/BlogPosting">
							<div class="featured-image" style="background-image: url(<?php 
        echo $url;
        ?>
)">
							</div>
							<div class="card-content">
								<h1><?php 
        the_title();
        ?>
</h1>
								<div class="byline vcard"><?php 
        printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
        ?>
</div>
								<div class="social-share">
									<!-- <span class="text">Share this:</span> -->
									<a class="share-icon facebook" title="Recommend on Facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php 
        the_permalink();
        ?>
" target="blank" rel="nofollow"><span>Facebook <?php 
        $URL = get_permalink();
        function get_shares($URL)
        {
            $json_string = file_get_contents('http://graph.facebook.com/?ids=' . $URL);
            $json = json_decode($json_string, true);
            return intval($json[$URL]['shares']);
        }
开发者ID:avanwart,项目名称:roiworks,代码行数:31,代码来源:single.php

示例5: if

			
			<div id="content" class="blog-post">

				<div id="inner-content" class="wrap clearfix">
			
					<div id="main" class="eightcol first clearfix" role="main">

						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
					
							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
						
								<header class="article-header">
							
									<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                  <p class="byline vcard"><?php
                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&amp;</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F js, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
                  ?></p>
						
								</header> <!-- end article header -->
					
								<section class="entry-content clearfix" itemprop="articleBody">
									<?php the_content(); ?>
									
									<div id="ssba"><a id="ssba_twitter_share" href="http://twitter.com/share?url=<?php the_permalink() ?>/&text=<?php the_title(); ?>" target="_blank"><img title="Twitter" class="ssba" alt="Twitter" src="/wp-content/themes/hemplers-2013/library/images/social/twitter.png" /></a><a id="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=<?php the_permalink() ?>" target="_blank"><img title="Facebook" class="ssba" alt="Facebook" src="/wp-content/themes/hemplers-2013/library/images/social/facebook.png" /></a><a id="ssba_linkedin_share" class="ssba_share_link" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink() ?>" target="_blank"><img title="Linkedin" class="ssba" alt="LinkedIn" src="/wp-content/themes/hemplers-2013/library/images/social/linkedin.png" /></a><a id="ssba_google_share" href="https://plus.google.com/share?url=<?php the_permalink() ?>" target="_blank"><img title="Google+" class="ssba" alt="Google+" src="/wp-content/themes/hemplers-2013/library/images/social/google.png" /></a><a id="ssba_tumblr_share" href="http://www.tumblr.com/share/link?url=<?php the_permalink() ?>&name=<?php the_title(); ?>" target="_blank"><img title="tumblr" class="ssba" alt="tumblr" src="/wp-content/themes/hemplers-2013/library/images/social/tumblr.png" /></a><a id='ssba_pinterest_share' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;https://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img title="Pinterest" class="ssba" alt="Pinterest" src="/wp-content/themes/hemplers-2013/library/images/social/pinterest.png" /></a><a id="ssba_email_share" href="mailto:?Subject=<?php the_title(); ?>&Body= <?php the_permalink() ?>"><img title="Email" class="ssba" alt="Email" src="/wp-content/themes/hemplers-2013/library/images/social/email.png" /></a></div>	
									
								</section> <!-- end article section -->
						
								<footer class="article-footer">
									<?php the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', '</p>'); ?>
							
								</footer> <!-- end article footer -->
开发者ID:habibimroncn,项目名称:hemplers-template,代码行数:30,代码来源:single.php

示例6: the_ID

							<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('clearfix');
        ?>
 role="article">

								<header class="article-header">

									<h1 class="single-title custom-post-type-title"><?php 
        the_title();
        ?>
</h1>
									<p class="byline vcard"><?php 
        printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list($post->ID, 'custom_cat', ' ', ', ', ''));
        ?>
</p>

								</header> <!-- end article header -->

								<section class="entry-content clearfix">

									<?php 
        the_content();
        ?>

								</section> <!-- end article section -->

								<footer class="article-header">
									<p class="tags"><?php 
开发者ID:avanwart,项目名称:beglammedwp,代码行数:31,代码来源:single-custom_type.php

示例7: the_permalink

									<?php 
        } else {
            ?>

								<h3 class="archive-title h2"><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark" title="<?php 
            the_title_attribute();
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
								<p class="byline vcard"><?php 
            printf(__('by <span class="author">%3$s</span> on <time class="updated" datetime="%1$s" pubdate>%2$s</time> in ', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
            ?>
								<?php 
            $categories = get_the_category();
            $separator = ' ';
            $output = '';
            if (!empty($categories)) {
                foreach ($categories as $category) {
                    $output .= '<a href="' . esc_url(get_category_link($category->term_id)) . '" alt="' . esc_attr(sprintf(__('View all posts in %s', 'textdomain'), $category->name)) . '">' . esc_html($category->name) . '</a>' . $separator;
                }
                echo trim($output, $separator);
            }
            ?>
</p>

									<?php 
开发者ID:webprese,项目名称:dev.mgeonline,代码行数:31,代码来源:archive-news.php

示例8: the_permalink

 role="article">

        <header class="article-header">

          <h3 class="h2"><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        the_title_attribute();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
          <p class="byline vcard"><?php 
        printf(__('Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list(get_the_ID(), 'custom_cat', "", ", ", ""));
        ?>
</p>

        </header>

        <section class="entry-content">
          <?php 
        the_excerpt('<span class="read-more">' . __('Read More &raquo;', 'bonestheme') . '</span>');
        ?>

        </section>

        <footer class="article-footer">

        </footer>
开发者ID:SiAdcock,项目名称:repsych,代码行数:31,代码来源:taxonomy-custom_cat.php

示例9: grid_blog

    function grid_blog($atts, $content = null)
    {
        extract($atts);
        switch ($columns) {
            case 3:
                $column_class = 'span4';
                $mod = 3;
                break;
            case 2:
                $column_class = 'span6';
                $mod = 2;
                break;
            case 1:
                $column_class = 'span12';
                $mod = 1;
                break;
            default:
                $column_class = 'span3';
                $mod = 4;
                break;
        }
        $this->get_query($atts);
        global $wp_query;
        $total_num_posts = $wp_query->post_count;
        $count = 0;
        ?>
		<div class="row-fluid adap-blog-layout-grid">
		<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>

		<?php 
                $count++;
                if ($count % $mod == 0 && $count != $total_num_posts) {
                    $new_row = true;
                } else {
                    $new_row = false;
                }
                $curr_post['id'] = get_the_ID();
                $curr_post['title'] = get_the_title();
                $curr_post['content'] = get_the_content();
                $curr_post['featured'] = '';
                $curr_post['feature_size'] = 'medium';
                $img_size = $columns == 1 ? 'full' : 'large';
                $curr_post['featured'] = get_the_post_thumbnail(get_the_ID(), $img_size);
                //        $curr_post = apply_filters('adap_post_formatting', $curr_post);
                ?>
		<section class="post-preview <?php 
                echo $column_class;
                ?>
 thumbnail">
			<article <?php 
                post_class('clearfix');
                ?>
 role="article" class="thumbnail">

				<header class="article-header">
					<?php 
                echo $curr_post['featured'];
                ?>
					<?php 
                if ($grid_show_title != 'false') {
                    ?>
						<h1 class="h2"><a href="<?php 
                    the_permalink();
                    ?>
" rel="bookmark"
										  title="<?php 
                    the_title_attribute();
                    ?>
"><?php 
                    echo $curr_post['title'];
                    ?>
</a>
						</h1>
					<?php 
                }
                ?>

					<?php 
                if ($grid_show_meta != 'false') {
                    ?>
						<p class="byline vcard"><?php 
                    printf(__('Posted <time class="updated" datetime="%1$s">%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'adap_sc'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
                    ?>
</p>
					<?php 
                }
                ?>


				</header>
				<!-- end article header -->

				<div class="entry-content clearfix">
					<?php 
                if ($grid_show_excerpt != 'false') {
                    the_excerpt();
//.........这里部分代码省略.........
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:101,代码来源:blog.php

示例10: the_ID

							<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('clearfix');
        ?>
 role="article">

								<header class="article-header">

									<h1 class="single-title custom-post-type-title"><?php 
        the_title();
        ?>
</h1>
									<p class="byline vcard"><?php 
        printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time>', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list($post->ID, 'custom_cat', ' ', ', ', ''));
        ?>
</p>

								</header> <!-- end article header -->

								<section class="entry-content clearfix">

									<?php 
        /* Notice how we are using the name given when we register the meta data */
        $text_ie = get_post_meta($post->ID, '_tcu_text_name', true);
        $email_ie = get_post_meta($post->ID, '_tcu_email_name', true);
        $phone_ie = get_post_meta($post->ID, '_tcu_telephone_name', true);
        $website_ie = get_post_meta($post->ID, '_tcu_website_name', true);
        $textarea_ie = get_post_meta($post->ID, '_tcu_textarea_name', true);
        $image_ie = get_post_meta($post->ID, '_tcu_image_name', true);
开发者ID:mjperales,项目名称:mjp_custom_post_types,代码行数:31,代码来源:single-faculty.php

示例11: bones_show_bardate_filed

function bones_show_bardate_filed()
{
    ?>
  <div class="byline vcard">
    <?php 
    printf(__('Bar-Date', 'bonestheme') . ' <time class="updated" datetime="%1$s" itemprop="datePublished">%3$s%4$s</time> ' . __('by', 'bonestheme') . __(' <span class="author">%5$s</span> <span class="amp">&</span> filed under %6$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), substr(get_the_time('Y'), 0, 1), get_the_time('ym.d.H.i'), bones_get_the_author_posts_link(), get_the_term_list(get_the_ID(), 'custom_cat', "", ", ", ""));
    ?>
  </div>
  <?php 
}
开发者ID:Barfleet,项目名称:Barfleet_WP_theme,代码行数:10,代码来源:functions.php

示例12: get_post_class

						
								<header class="article-header">
							
									
<?php 
        $classes = get_post_class($class, $post_id);
        if (!in_array("download", $classes)) {
            ?>
    	<h2 class="entry-title single-title" itemprop="headline"><?php 
            the_title();
            ?>
</h2>
    	 <?php 
            $subtitle = get_post_meta($post->ID, 'subtitle', true);
            if (!$subtitle) {
                echo '<h1 id="author">' . bones_get_the_author_posts_link() . '</h1>';
                $writer = get_the_author();
            } else {
                if ($subtitle) {
                    echo '<h1 id="author">' . $subtitle . '</h1>';
                    $writer = $subtitle;
                }
            }
        } else {
            ?>
    	<h1 class="page-title"><?php 
            the_title();
            ?>
</h1>
  <?php 
        }
开发者ID:bmeisler,项目名称:sensitiveskinandbones,代码行数:30,代码来源:single.php

示例13: shortcode_handler

    function shortcode_handler($atts, $content = null)
    {
        ob_start();
        $atts = $this->getPreparedAtts($atts, $content);
        $atts = shortcode_atts(array('blog_type' => 'posts', 'paginate' => 'false', 'items' => '2', 'categories' => '', 'post_type' => 'post', 'taxonomy' => 'category', 'display' => 'excerpt', 'show_excerpt' => 'show_excerpt'), $atts);
        extract($atts);
        $column_span = 12 / intval($items);
        $span_class = 'span' . $column_span;
        switch ($items) {
            case 3:
                $image_size = 'portfolio-three-column';
                break;
            case 2:
                $image_size = 'portfolio-two-column';
                break;
            case 1:
                $image_size = 'portfolio-one-column';
                break;
            default:
                $image_size = 'portfolio-four-column';
                break;
        }
        $this->do_query($atts);
        ?>

		<div class="row-fluid recent-posts-shortcode">

		<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>


		<div class="<?php 
                echo $span_class;
                ?>
">

			<section class="post-preview">
				<article <?php 
                post_class('clearfix');
                ?>
 role="article">

					<?php 
                if (has_post_thumbnail()) {
                    ?>
						<a class="recent-posts-image" href="<?php 
                    the_permalink();
                    ?>
"
						   title="<?php 
                    the_title_attribute();
                    ?>
">
							<?php 
                    the_post_thumbnail($image_size);
                    ?>
						</a>
					<?php 
                }
                ?>

					<header class="article-header">

						<h1 class="h2"><a href="<?php 
                the_permalink();
                ?>
" rel="bookmark"
										  title="<?php 
                the_title_attribute();
                ?>
"><?php 
                the_title();
                ?>
</a></h1>

						<p class="byline vcard"><?php 
                printf(__('<time class="updated" datetime="%1$s">%2$s</time>', 'adap_sc'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
                ?>

						<div class="byline-item byline-comments"><a href="<?php 
                comments_link();
                ?>
"
																	class="entypo-comment"><?php 
                echo number_format_i18n(get_comments_number());
                ?>
</a>
						</div>
						</p>

					</header>
					<!-- end article header -->

					<div class="entry-content clearfix entry-excerpt">
						<?php 
                if ($show_excerpt == 'show_excerpt') {
                    the_excerpt();
//.........这里部分代码省略.........
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:101,代码来源:posts.php

示例14: bones_get_the_author_posts_link

 *
 * This is necessary to allow usage of the usual l10n process with printf().
 */
function bones_get_the_author_posts_link()
{
    global $authordata;
    if (!is_object($authordata)) {
        return false;
    }
    $link = sprintf('<a href="%1$s" title="%2$s" rel="author">%3$s</a>', get_author_posts_url($authordata->ID, $authordata->user_nicename), esc_attr(sprintf(__('Posts by %s'), get_the_author())), get_the_author());
    return $link;
}
add_filter('the_content', function ($content) {
    global $post;
    if ($post->post_type !== 'press_release') {
        $author = '<div class="author-heading-blog">';
        $id = get_the_author_id();
        $author .= get_avatar($id);
        $author .= '<div class="info-wrapper">';
        $author .= '<p class="author-name">';
        $author .= bones_get_the_author_posts_link();
        // $author .= the_author_description();
        $author .= '</p>';
        $author .= '<p>';
        $author .= get_the_author_meta('description');
        $author .= '</p>';
        $author .= '</div>';
        $author .= '</div><br>';
    }
    return $content . $author;
}, 5);
开发者ID:Jaballadares,项目名称:talix-website,代码行数:31,代码来源:bones.php

示例15: get_the_time

    ?>
">
				<time class="updated"
					  datetime="<?php 
    echo get_the_time('Y-m-d');
    ?>
"><?php 
    echo get_the_time(get_option('date_format'));
    ?>
</time>
			</a></li>
		<li class="byline-item right-side-byline-items-parent">
			<ul class="right-side-byline-items">
				<li class="byline-item byline-author"><span
						class="author"><?php 
    echo bones_get_the_author_posts_link('entypo-user');
    ?>
</span></li>
				<?php 
    if (count(get_the_category()) > 0) {
        ?>
					<li class="byline-item byline-categories">
						<div class="categories entypo-docs"><?php 
        echo adap_get_categories_meta_markup();
        ?>
</div>
					</li>
				<?php 
    }
    ?>
				<li class="byline-item byline-comments"><a href="<?php 
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:31,代码来源:meta.php


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