<?php /** * @package EasyBlog * @copyright Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved. * @license GNU/GPL, see LICENSE.php * EasyBlog is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ defined('_JEXEC') or die('Unauthorized Access'); ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'blog-' . $post->id . '-ratings', JText::_('COM_EASYBLOG_RATINGS_RATE_BLOG_ENTRY'), !empty($locked) ? true : false); ?> </div>
?> "><?php echo JText::_('MOD_EASYBLOGRELATED_READMORE'); ?> </a></span> <?php } ?> </div> <?php if ($params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebrelatedpost-' . $post->id . '-ratings', JText::_('MOD_EASYBLOGRELATED_RATEBLOG'), $disabled); ?> </div> <?php } ?> </div> <?php } ?> </div> <?php } else { ?>
?> <?php // limit content height using .eb-mod-context if ($layout == 'horizontal') { ?> </div> <?php } ?> <?php if ($params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebtopblogs-' . $post->id . '-ratings', JText::_('MOD_TOPBLOGS_RATEBLOG'), $disabled); ?> </div> <?php } ?> <div class="eb-mod-foot mod-muted mod-small"> <!-- Source --> <div class="mod-cell pr-10"> <i class="fa fa-align-left" style="font-size: 14px;"></i> </div> <?php if ($params->get('showhits', true)) { ?>
} ?> </div> <div class="eb-gallery-content"> <?php echo $post->content; ?> </div> <?php if ($params->get('showratings', true)) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebmostshowcase-' . $post->id . '-ratings', JText::_('MOD_SHOWCASE_RATE_BLOG_ENTRY'), $disabled); ?> </div> <?php } ?> <div class="eb-gallery-more"> <a href="<?php echo $post->getPermalink(); ?> "><?php echo JText::_('MOD_SHOWCASE_READ_MORE'); ?> </a> </div>
?> <?php // limit content height using .eb-mod-context if ($layout == 'horizontal') { ?> </div> <?php } ?> <?php if ($params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebmostcommented-' . $post->id . '-ratings', JText::_('MOD_EASYBLOGMOSTCOMMENTEDPOST_RATEBLOG'), $disabled); ?> </div> <?php } ?> <div class="eb-mod-foot mod-muted mod-small"> <!-- Source --> <div class="mod-cell pr-10"> <i class="fa fa-align-left" style="font-size: 14px;"></i> </div> <?php if ($params->get('showhits', true)) { ?>
private static function prepareTooltipContent(&$post, &$params) { $disabled = true; if ($params->get('enableratings')) { $disabled = false; } $post->html = '<div class="ebpostmap_infoWindow"><table>' . "\n"; $image = '<td class="ebpostmap_featuredImage"'; if ($params->get('showavatar')) { $image .= ' colspan = "2"'; } $image .= '>' . $post->featuredImage . '</td>' . "\n"; if ($params->get('showfeatureimage') && $post->featuredImage) { $post->html .= '<tr>' . $image . '</tr>' . "\n"; } $post->html .= '<tr>'; if ($params->get('showavatar')) { $avatar = '<td class="ebpostmap_avatar" valign="top"><a href="' . $post->author->getProfileLink() . '" class="mod-avatar"><img class="avatar" src="' . $post->author->getAvatar() . '" /></a></td>' . "\n"; $post->html .= $avatar; } $post->html .= '<td class="ebpostmap_detail">'; $post->html .= '<div class="ebpostmap_title"><a href="' . EBR::_('index.php?option=com_easyblog&view=entry&id=' . $post->id) . '"><b>' . $post->title . '</b></a></div>' . "\n"; if ($params->get('showauthor')) { $blogger = '<div class="ebpostmap_blogger">' . JText::sprintf('MOD_EASYBLOGPOSTMAP_POST_BY', $post->author->getName()) . '</div>' . "\n"; $post->html .= $blogger; } if ($params->get('showaddress')) { $address = '<div class="ebpostmap_address">' . JText::sprintf('MOD_EASYBLOGPOSTMAP_ADDRESS_AT', $post->address) . '</div>' . "\n"; $post->html .= $address; } if ($params->get('showcommentcount')) { $comment = '<div class="ebpostmap_comments">' . JText::sprintf('MOD_EASYBLOGPOSTMAP_TOTAL_COMMENTS', $post->commentCount) . '</div>' . "\n"; $post->html .= $comment; } if ($params->get('showhits')) { $hits = '<div class="ebpostmap_hits">' . JText::sprintf('MOD_EASYBLOGPOSTMAP_HITS', $post->hits) . '</div>' . "\n"; $post->html .= $hits; } if ($params->get('showratings')) { $ratings = '<div class="ebpostmap_ratings">' . EB::ratings()->html($post, 'ebpostmap_' . $post->id . '-ratings', $disabled) . '</div>' . "\n"; $post->html .= $ratings; } $post->html .= '</td></tr></div>' . "\n"; }
?> <?php // limit content height using .eb-mod-context if ($layout == 'horizontal') { ?> </div> <?php } ?> <?php if ($config->get('main_ratings') && $params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'eblatestblogs-' . $post->id . '-ratings', JText::_('MOD_LATESTBLOGS_RATEBLOG'), $disabled); ?> </div> <?php } ?> <?php if ($params->get('showhits', true) || $params->get('showcommentcount', 0) || $params->get('showreadmore', true)) { ?> <div class="eb-mod-foot mod-muted mod-small"> <?php if ($params->get('showhits', true)) { ?> <div class="mod-cell pr-10">
?> <?php // limit content height using .eb-mod-context if ($layout == 'horizontal') { ?> </div> <?php } ?> <?php if ($params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebmostrandom-' . $post->id . '-ratings', JText::_('MOD_EASYBLOGRANDOMPOST_RATEBLOG'), $disabled); ?> </div> <?php } ?> <div class="eb-mod-foot mod-muted mod-small"> <!-- Source --> <div class="mod-cell pr-10"> <i class="fa fa-align-left" style="font-size: 14px;"></i> </div> <?php if ($params->get('showhits', true)) { ?>
?> <?php } ?> </div> <?php } ?> <?php if ($params->get('ratings')) { ?> <div class="js-blog-rate"> <div class="blog-rating"> <div class="blog-ratings"><?php echo EB::ratings()->html($blog, 'blog-' . $blog->id . '-ratings', JText::_('COM_EASYBLOG_RATINGS_RATE_BLOG_ENTRY'), false); ?> </div> </div> </div> <?php } ?> <div class="js-blog-more"> <a href="<?php echo EBR::_('index.php?option=com_easyblog&view=entry&id=' . $blog->id); ?> "><?php echo JText::_('COM_EASYBLOG_CONTINUE_READING');
?> <?php // limit content height using .eb-mod-context if ($layout == 'horizontal') { ?> </div> <?php } ?> <?php if ($params->get('showratings', true) && $post->showRating) { ?> <div class="eb-rating"> <?php echo EB::ratings()->html($post, 'ebmostpopular-' . $post->id . '-ratings', JText::_('MOD_EASYBLOGMOSTPOPULARPOST_RATEBLOG'), $disabled); ?> </div> <?php } ?> <div class="eb-mod-foot mod-muted mod-small"> <!-- Source --> <div class="mod-cell pr-10"> <i class="fa fa-align-left" style="font-size: 14px;"></i> </div> <?php if ($params->get('showhits', true)) { ?>