post_likes() public method

public post_likes ( $content )
 function recipe_hero_output_jetpack_sharing_buttons()
 {
     if (function_exists('sharing_display')) {
         sharing_display('', true);
     }
     if (class_exists('Jetpack_Likes')) {
         $custom_likes = new Jetpack_Likes();
         echo $custom_likes->post_likes('');
     }
 }
Beispiel #2
0
?>
" <?php 
post_class();
?>
>
<p>content.php - <?php 
echo get_post_type();
?>
</p>
<?php 
if (function_exists('sharing_display')) {
    sharing_display('', true);
}
if (class_exists('Jetpack_Likes')) {
    $custom_likes = new Jetpack_Likes();
    echo $custom_likes->post_likes('');
}
?>
	<header class="entry-header">
		<?php 
if (is_single()) {
    the_title('<h1 class="entry-title">', '</h1>');
} else {
    the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
if ('post' === get_post_type()) {
    ?>
		<div class="entry-meta">
			<?php 
    pacificano_posted_on();
    ?>
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function aaron_portfolio_footer()
 {
     if (get_theme_mod('aaron_hide_meta') == "") {
         echo '<footer class="entry-footer">';
         global $post;
         echo '<a href="' . esc_url(home_url('/portfolio/')) . '"><b>' . __('Portfolio', 'aaron') . '</b></a><br/><br/>';
         //the_terms( $id, $taxonomy, $before, $sep, $after );
         echo the_terms($post->ID, 'jetpack-portfolio-type', '<span class="jetpack-portfolio-type">' . __('Project Type: ', 'aaron'), ', ', '</span>');
         echo the_terms($post->ID, 'jetpack-portfolio-tag', '<span class="tags-links">' . __('Project Tags: ', 'aaron'), ', ', '</span>');
         /* translators: % is the post title */
         edit_post_link(sprintf(__('Edit %s', 'aaron'), get_the_title()), '<span class="edit-link"><i aria-hidden="true"></i>', '</span>');
         /* Display jetpack's share if it's active*/
         if (function_exists('sharing_display')) {
             echo sharing_display();
         }
         /* Display jetpack's like  if it's active */
         if (class_exists('Jetpack_Likes')) {
             $aaron_custom_likes = new Jetpack_Likes();
             echo $aaron_custom_likes->post_likes('');
         }
         echo '</footer><!-- .entry-footer -->';
     }
 }
Beispiel #4
0
function ms_share_display()
{
    if (function_exists('sharing_display')) {
        sharing_display('', true);
    }
    if (class_exists('Jetpack_Likes')) {
        $custom_likes = new Jetpack_Likes();
        echo $custom_likes->post_likes('');
    }
}