本文整理汇总了PHP中DiscussHelper::getSubscriptionHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP DiscussHelper::getSubscriptionHTML方法的具体用法?PHP DiscussHelper::getSubscriptionHTML怎么用?PHP DiscussHelper::getSubscriptionHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DiscussHelper
的用法示例。
在下文中一共展示了DiscussHelper::getSubscriptionHTML方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<h4 class="pt-15 mt-15"><?php
echo JText::_('COM_EASYDISCUSS_SUBSCRIPTION_' . $subtype);
?>
</h4>
<ol class="discuss-subscribe-list">
<?php
if ($subtype == 'site') {
?>
<li>
<div class="discuss-subscribe-title"><?php
echo JText::_('COM_EASYDISCUSS_SUBSCRIPTION_' . $subtype);
?>
</div>
<span class="discuss-unsubscribe pull-right"><?php
echo DiscussHelper::getSubscriptionHTML($system->my->id, 0, 'site', 'button-link', false);
?>
</span>
</li>
<?php
} else {
?>
<?php
foreach ($subcription as $sub) {
?>
<li>
<div class="discuss-subscribe-title"><a href="<?php
echo $sub->link;
?>
" class=""><?php
echo $sub->title;
示例2: defined
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="discuss-category-header">
<div class="discuss-subscribe pull-right">
<?php
if ($system->config->get('main_ed_categorysubscription')) {
?>
<?php
if (!$category->container) {
?>
<?php
echo DiscussHelper::getSubscriptionHTML($system->my->id, $category->id, 'category');
?>
<?php
}
?>
<?php
}
?>
<?php
if ($system->config->get('main_rss')) {
?>
<a href="<?php
echo $category->getRSSLink();
?>
" class="via-feed has-tip atr">
示例3:
<i data-original-title="<?php
echo JText::_('COM_EASYDISCUSS_PROTECTED_DESC');
?>
" data-placement="top" rel="ed-tooltip" class="icon-key"></i>
<?php
}
?>
<?php
echo $post->title;
?>
</h2>
</a>
<div class="pull-right mt-15 mr-10">
<?php
echo DiscussHelper::getSubscriptionHTML($system->my->id, $post->id, 'post');
?>
</div>
<div class="row-fluid">
</div>
</div>
<div class="discuss-post-sub-header">
<div class="row-fluid">
<div class="discuss-category-meta pull-left">
<div class="pull-left fs-11">
<i class="icon-inbox"></i>
<?php
echo JText::_('COM_EASYDISCUSS_POSTED_IN');
示例4: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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('Restricted access');
if ($system->config->get('main_sitesubscription')) {
echo DiscussHelper::getSubscriptionHTML($system->my->id, 0, 'site');
}