当前位置: 首页>>代码示例>>PHP>>正文


PHP EB::ratings方法代码示例

本文整理汇总了PHP中EB::ratings方法的典型用法代码示例。如果您正苦于以下问题:PHP EB::ratings方法的具体用法?PHP EB::ratings怎么用?PHP EB::ratings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EB的用法示例。


在下文中一共展示了EB::ratings方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: defined

<?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>
开发者ID:knigherrant,项目名称:decopatio,代码行数:19,代码来源:frontpage.php

示例2:

            ?>
"><?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 {
    ?>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.php

示例3:

?>
    <?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)) {
    ?>
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:default_item.php

示例4:

    }
    ?>
									</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>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:sidenav.php

示例5: prepareTooltipContent

 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";
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:44,代码来源:helper.php

示例6:

?>
	<?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">
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:default_item.php

示例7:

                ?>
										<?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');
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:jsgroup.php


注:本文中的EB::ratings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。