Example #1
0
    view::load('comments/likes', array('resource' => 'blog', 'itemID' => $blog['blog_id'], 'likes' => $blog['total_likes'], 'liked' => $blog['user_vote']['post_date'] ? 1 : 0, 'date' => $blog['user_vote']['post_date']));
    ?>
						</li>
					<?php 
}
?>
				</ul>

			</footer>

		</article>

	</div>

	<?php 
if (session::permission('comments_view', 'comments') && config::item('blog_comments', 'blogs') && $blog['comments']) {
    ?>
		<?php 
    loader::helper('comments/comments');
    ?>
		<?php 
    comments_helper::getComments('blog', $blog['user_id'], $blog['blog_id'], $blog['total_comments'], $blog['comments']);
    ?>
	<?php 
}
?>

</section>

<?php 
view::load('footer');
Example #2
0
    view::load('comments/likes', array('resource' => 'classified_ad', 'itemID' => $ad['ad_id'], 'likes' => $ad['total_likes'], 'liked' => $ad['user_vote']['post_date'] ? 1 : 0, 'date' => $ad['user_vote']['post_date']));
    ?>
						</li>
					<?php 
}
?>
				</ul>

			</footer>

		</article>

	</div>

	<?php 
if (session::permission('comments_view', 'comments') && config::item('ad_comments', 'classifieds') && $ad['comments']) {
    ?>
		<?php 
    loader::helper('comments/comments');
    ?>
		<?php 
    comments_helper::getComments('classified_ad', $ad['user_id'], $ad['ad_id'], $ad['total_comments'], $ad['comments']);
    ?>
	<?php 
}
?>

</section>

<?php 
view::load('footer');
Example #3
0
    }
    ?>
					</ul>

				</footer>

			<?php 
}
?>

		</article>

	</div>

	<?php 
if (session::permission('comments_view', 'comments') && config::item('page_comments', 'pages') && $page['comments']) {
    ?>
		<?php 
    loader::helper('comments/comments');
    ?>
		<?php 
    comments_helper::getComments('page', 0, $page['page_id'], $page['total_comments'], $page['comments']);
    ?>
	<?php 
}
?>

</section>

<?php 
view::load('footer');
Example #4
0
            if ($action['comments']) {
                ?>
					<?php 
                if (!isset($action['comments']['privacy']) || $action['comments']['privacy']) {
                    ?>
						<?php 
                    comments_helper::getComments($action['relative_resource'], 0, $action['item_id'], $action['comments']['total_comments'], 2, $action['comments']['post'], false, true);
                    ?>
					<?php 
                }
                ?>
				<?php 
            } else {
                ?>
					<?php 
                comments_helper::getComments('timeline', 0, $actionID, $action['total_comments'], 2, 1, false, true);
                ?>
				<?php 
            }
            ?>
			<?php 
        }
        ?>

		</li>

	<?php 
    }
    ?>

	<?php 
Example #5
0
    view::load('comments/likes', array('resource' => 'news', 'itemID' => $news['news_id'], 'likes' => $news['total_likes'], 'liked' => $news['user_vote']['post_date'] ? 1 : 0, 'date' => $news['user_vote']['post_date']));
    ?>
						</li>
					<?php 
}
?>
				</ul>

			</footer>

		</article>

	</div>

	<?php 
if (session::permission('comments_view', 'comments') && config::item('news_comments', 'news') && $news['comments']) {
    ?>
		<?php 
    loader::helper('comments/comments');
    ?>
		<?php 
    comments_helper::getComments('news', 0, $news['news_id'], $news['total_comments'], $news['comments']);
    ?>
	<?php 
}
?>

</section>

<?php 
view::load('footer');