have_posts()) : ?>
have_posts()) : $esmp_query->the_post(); ?>
ID, 'esml_socialcount_TOTAL', true);
$total_esmp = intval($total_esmp);
if ($total_esmp == 0) {
continue;
}
?>
ID == $current_post_id && is_single()) ? 'active' : ''; ?>
ID, 'esml_socialcount_TOTAL', true);
?>
';
echo '';
echo ''.$total_esmp.'';
echo '';
?>
ID, "esmp_data", true);
//$data = unserialize($current_post_data);
$data = array();
$services = array(
'facebook' => 'Facebook',
'twitter' => 'Twitter',
'googleplus' => 'Google Plus',
'linkedin' => 'LinkedIn',
'pinterest' => 'Pinterest',
'diggs' => 'Digg.com',
'delicious' => 'Delicious',
'stumbleupon'=> 'Stumble Upon'
);
foreach ($services as $key => $name) {
$data[$key] = get_post_meta($post->ID, "esml_socialcount_".$key, true);
}
foreach ($data as $key => $value) {
echo '';
echo '';
echo ''.(isset($value) ? $value : 0).'';
echo '';
}
?>