Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/old/www/i-plan.ru/media/zoo/elements/textarea/tmpl/
Upload File :
Current File : /var/www/iplanru/data/old/www/i-plan.ru/media/zoo/elements/textarea/tmpl/edit.php

<?php
/**
* @package   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');

?>

<div id="<?php echo $this->identifier; ?>" class="repeat-elements">
	<ul class="repeatable-list">

	<?php foreach($this as $self) : ?>
		<li class="repeatable-element">
			<?php echo $this->_addEditor($this->index(), $this->get('value', $this->config->get('default')), $params->get('trusted_mode', false)); ?>
		</li>
	<?php endforeach; ?>

	<?php for ($index = count($this); $index < count($this) + ElementTextarea::MAX_HIDDEN_EDITORS; $index++) : ?>
		<li class="repeatable-element hidden">
			<?php echo $this->_addEditor($index, '', $params->get('trusted_mode', false)); ?>
		</li>
	<?php endfor; ?>

	</ul>
	<p class="add">
		<a href="javascript:void(0);"><?php echo JText::sprintf('Add another %s', JText::_($this->app->string->ucfirst($this->getElementType()))) ?></a>
	</p>
</div>

<script type="text/javascript">
	jQuery('#<?php echo $this->identifier; ?>').ElementRepeatableTextarea();
</script>