<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;
 * 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">
				<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');
<?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');
}