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">
Example #2
0
                                    
	                 <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>                   
Example #3
0
  <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>
Example #4
0
						<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']);
        }
			
			<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 -->
							<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 
Example #7
0
									<?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 
Example #8
0
 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>
Example #9
0
    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();
                }
                ?>
				</div>
				<!-- end article section -->

				<footer class="article-footer">
					<p class="tags"><?php 
                the_tags('<span class="tags-title">' . __('Tags:', 'adap_sc') . '</span> ', ', ', '');
                ?>
</p>

				</footer>
				<!-- end article footer -->

				<?php 
                // comments_template(); // uncomment if you want to use them
                ?>

			</article>
			<!-- end article -->
		</section>
		<?php 
                if ($new_row) {
                    ?>
			</div>
			<div class="row-fluid">
		<?php 
                }
                ?>

	<?php 
            }
            ?>

		<?php 
            if (function_exists('bones_page_navi')) {
                ?>
			<?php 
                bones_page_navi('', '', 'Newer Posts', 'Older Posts');
                ?>
		<?php 
            } else {
                ?>
			<nav class="wp-prev-next">
				<ul class="clearfix">
					<li class="prev-link"><?php 
                next_posts_link(__('&laquo; Older Entries', 'adap_sc'));
                ?>
</li>
					<li class="next-link"><?php 
                previous_posts_link(__('Newer Entries &raquo;', 'adap_sc'));
                ?>
</li>
				</ul>
			</nav>
		<?php 
            }
            ?>

	<?php 
        } else {
            ?>

		<article id="post-not-found" class="hentry clearfix">
			<header class="article-header">
				<h1><?php 
            _e("Oops, Post Not Found!", 'adap_sc');
            ?>
</h1>
			</header>
			<section class="entry-content">
				<p><?php 
            _e("Uh Oh. Something is missing. Try double checking things.", 'adap_sc');
            ?>
</p>
			</section>
			<footer class="article-footer">
				<p><?php 
            _e("This is the error message from the Adaptive Shortcodes' Blog Shortcode ", 'adap_sc');
            ?>
</p>
			</footer>
		</article>

	<?php 
        }
        ?>
		</div>
		<?php 
        $ret_val = ob_get_contents();
        ob_end_clean();
        wp_reset_query();
        return $ret_val;
    }
							<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);
Example #11
0
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 
}
Example #12
0
						
								<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 
        }
Example #13
0
    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();
                }
                ?>
					</div>
					<!-- end article section -->

					<footer class="article-footer">
						<p class="tags"><?php 
                the_tags('<span class="tags-title">' . __('Tags:', 'adap_sc') . '</span> ', ', ', '');
                ?>
</p>

					</footer>
					<!-- end article footer -->

					<?php 
                // comments_template(); // uncomment if you want to use them
                ?>

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

		</div>

	<?php 
            }
            ?>
		</div>

	<?php 
        } else {
            ?>

		<article id="post-not-found" class="hentry clearfix">
			<header class="article-header">
				<h1><?php 
            _e("Oops, Post Not Found!", 'adap_sc');
            ?>
</h1>
			</header>
			<section class="entry-content">
				<p><?php 
            _e("Uh Oh. Something is missing. Try double checking things.", 'adap_sc');
            ?>
</p>
			</section>
			<footer class="article-footer">
				<p><?php 
            _e("This is the error message from the Adaptive Shortcodes' Blog Shortcode ", 'adap_sc');
            ?>
</p>
			</footer>
		</article>

	<?php 
        }
        ?>

		<?php 
        $ret_val = ob_get_contents();
        ob_end_clean();
        wp_reset_query();
        return $ret_val;
    }
Example #14
0
 *
 * 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);
Example #15
0
    ?>
">
				<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 
Example #16
0
        }
        ?>

		<h1 class="entry-title"><?php 
        the_title();
        ?>
</h1>

		<?php 
        if (get_post_type() == 'post') {
            ?>
		<h5 class="entry-byline"><?php 
            printf(__('
			<time class="updated" datetime="%1$s" pubdate>%2$s</time>
			<!-- | <span class="byline">by %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(', '));
            ?>
		</h5>
		<?php 
        }
        ?>

		<?php 
        get_template_part('inc/event');
        ?>

	</header><!-- /entry-header" -->

	<section class="entry-content clearfix">