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


PHP DiscussHelper::getSubscriptionHTML方法代码示例

本文整理汇总了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;
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:profile.subscriptions.php

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

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

示例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');
}
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:17,代码来源:toolbar.subscription.email.php


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