Example #1
0
<?php

include 'connect.php';
include 'like.php';
session_start();
if (isset($_POST['comment_id'], $_SESSION['user_id']) && comment_exists($_POST['comment_id'])) {
    echo like_count($_POST['comment_id']);
}
?>

<?php 
mysql_close();
Example #2
0
        the_content();
        ?>
			</div>
			<div class="postActions">
				<ul>
					<li class="pa-like"><a class="sitem like <?php 
        like_status($post->ID);
        ?>
" data-postid="<?php 
        the_ID();
        ?>
" href="#"><span><?php 
        _e('Likes', 'boston');
        ?>
 (<em class="likeCount"><?php 
        like_count($post->ID);
        ?>
</em>)</span></a></li>
					<li class="sitem pa-share">
						<span><?php 
        _e('Share', 'boston');
        ?>
</span>
						<ul>
							<li class="share-tw"><a rel="nofollow" href="http://twitter.com/home?status=<?php 
        echo urlencode(get_the_title());
        ?>
+<?php 
        the_permalink();
        ?>
" title="Share this post on Twitter" target="_blank">Twitter</a></li>
Example #3
0
<?php

include "like.php";
if (isset($_POST['article_id'], $idd)) {
    echo like_count($_POST['article_id']);
}