Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/www.i-plan.ru/components/com_zoo/partials/
Upload File :
Current File : /var/www/iplanru/data/www/www.i-plan.ru/components/com_zoo/partials/_respond.php

<?php
/**
* @package   com_zoo
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

// only registered users can comment
$registered = $params->get('registered_users_only');

$this->app->document->addScript('assets:js/placeholder.js');

?>

<div id="respond">
	<h3><?php echo JText::_('Leave a comment'); ?></h3>

	<form class="style short" method="post" action="<?php echo $this->app->link(array('controller' => 'comment', 'task' => 'save')); ?>">

	<?php if ($active_author instanceof CommentAuthorJoomla) : ?>
		<p class="user">
			<?php echo JText::_('Logged in as').' '.$active_author->name.' ('.JText::_('Joomla').')'; ?>
		</p>
	<?php elseif ($active_author instanceof CommentAuthorFacebook) : ?>
		<p class="user">
			<?php echo JText::_('Logged in as').' '.$active_author->name.' ('.JText::_('Facebook').')'; ?>
			- <a class="facebook-logout" href="<?php echo $this->app->link(array('controller' => 'comment', 'task' => 'facebooklogout', 'item_id' => $item->id)); ?>"><?php echo JText::_('Logout'); ?></a>
		</p>
	<?php elseif ($active_author instanceof CommentAuthorTwitter) : ?>
		<p class="user">
			<?php echo JText::_('Logged in as').' '.$active_author->name.' ('.JText::_('Twitter').')'; ?>
			- <a class="twitter-logout" href="<?php echo $this->app->link(array('controller' => 'comment', 'task' => 'twitterlogout', 'item_id' => $item->id)); ?>"><?php echo JText::_('Logout'); ?></a>
		</p>
	<?php elseif ($active_author->isGuest()) : ?>

		<?php
			$message = $registered ? JText::_('LOGIN_TO_LEAVE_COMMENT') : JText::_('You are commenting as guest.');
		?>

		<p class="user"><?php echo $message; ?> <?php if ($params->get('facebook_enable') || $params->get('twitter_enable')) echo JText::_('Optional login below.'); ?></p>

		<?php if ($params->get('facebook_enable') || $params->get('twitter_enable')) : ?>
			<p class="connects">

				<?php if ($params->get('facebook_enable')) : ?>
				<a class="facebook-connect" href="<?php echo $this->app->link(array('controller' => 'comment', 'item_id' => $item->id, 'task' => 'facebookconnect')); ?>">
					<img alt="<?php echo JText::_('Facebook'); ?>" src="<?php echo JURI::root().'media/zoo/assets/images/connect_facebook.png'; ?>" />
				</a>
				<?php endif; ?>

				<?php if ($params->get('twitter_enable')) : ?>
				<a class="twitter-connect" href="<?php echo $this->app->link(array('controller' => 'comment', 'item_id' => $item->id, 'task' => 'twitterconnect')); ?>">
					<img alt="<?php echo JText::_('Twitter'); ?>" src="<?php echo JURI::root().'media/zoo/assets/images/connect_twitter.png'; ?>" />
				</a>
				<?php endif; ?>

			</p>
		<?php endif; ?>

		<?php if (!$registered) : ?>

			<?php $req = $params->get('require_name_and_mail');?>

			<div class="author <?php if($req) echo 'required' ;?>">
				<input id="comments-author" type="text" name="author" placeholder="<?php echo JText::_('Name'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo $active_author->name; ?>"/>
			</div>

			<div class="email <?php if($req) echo 'required' ;?>">
				<input id="comments-email" type="text" name="email" placeholder="<?php echo JText::_('E-mail'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo $active_author->email; ?>"/>
			</div>

			<div class="url">
				<input id="comments-url" type="text" name="url" placeholder="<?php echo JText::_('Website'); ?>" value="<?php echo $active_author->url; ?>"/>
			</div>

		<?php endif; ?>

	<?php endif; ?>

		<?php if (!$registered || ($registered && !$active_author->isGuest())) : ?>

			<div class="content">
				<textarea name="content" rows="1" cols="1" ><?php echo $params->get('content'); ?></textarea>
			</div>

			<?php if($captcha): ?>
				<?php $this->app->html->_('behavior.framework'); ?>
				<div class="captcha">
					<?php
					echo $captcha->display('captcha', 'captcha', 'captcha');
					?>
				</div>
			<?php endif; ?>

			<div class="actions">
				<input name="submit" type="submit" value="<?php echo JText::_('Submit comment'); ?>" accesskey="s"/>
			</div>

			<input type="hidden" name="item_id" value="<?php echo $this->item->id; ?>"/>
			<input type="hidden" name="parent_id" value="0"/>
			<input type="hidden" name="redirect" value="<?php echo str_replace('&', '&amp;', $this->app->request->getString('REQUEST_URI', '', 'server')); ?>"/>
			<?php echo $this->app->html->_('form.token'); ?>

		<?php endif; ?>

	</form>
</div>