widgets/comments/CiiMSComments.php
private function renderCommentBox()
	{
		$link = CHtml::link('0', Yii::app()->createAbsoluteUrl($this->content['slug']) . '#comment', array('data-ciimscomments-identifier' => $this->content['id']));
		$id = $this->content['id'];

		Yii::app()->clientScript->registerScript('CiiMSComments', "
            $(document).ready(function() {
				// Load the Endpoint
				var endpoint = $('#endpoint').attr('data-attr-endpoint') + '/';

				// Update the comments div
	            $('.comment-count').attr('data-attr-id', '$id').addClass('registered').append('$link');

	            // Load the comments
	            Comments.load();
	            Comments.commentCount();
	        });
	        ");
	}
private function renderCommentBox()
	{
		$link = CHtml::link('0', Yii::app()->createAbsoluteUrl($this->content['slug']) . '#comment', array('data-ciimscomments-identifier' => $this->content['id']));
		$id = $this->content['id'];

		Yii::app()->clientScript->registerScript('CiiMSComments', "
            $(document).ready(function() {
				// Load the Endpoint
				var endpoint = $('#endpoint').attr('data-attr-endpoint') + '/';

				// Update the comments div
	            $('.comment-count').attr('data-attr-id', '$id').addClass('registered').append('$link');

	            // Load the comments
	            Comments.load();
	            Comments.commentCount();
	        });
	        ");
	}
private function renderCommentBox ( ) { $ link = CHtml :: link ( '0' , Yii :: app ( ) -> createAbsoluteUrl ( $ this -> content [ 'slug' ] ) . '#comment' , array ( 'data-ciimscomments-identifier' => $ this -> content [ 'id' ] ) ) ; $ id = $ this -> content [ 'id' ] ; Yii :: app ( ) -> clientScript -> registerScript ( 'CiiMSComments' , "
            $(document).ready(function() {
				// Load the Endpoint
				var endpoint = $('#endpoint').attr('data-attr-endpoint') + '/';

				// Update the comments div
	            $('.comment-count').attr('data-attr-id', '$id').addClass('registered').append('$link');

	            // Load the comments
	            Comments.load();
	            Comments.commentCount();
	        });
	        " ) ; }
Renders the Disqus Comment Box on the page
Renders the Disqus Comment Box on the page