| Current Path : /home/sunflowe/www/templates/yoo_revista/warp/systems/joomla/config/layouts/fields/ |
| Current File : /home/sunflowe/www/templates/yoo_revista/warp/systems/joomla/config/layouts/fields/position.php |
<?php
/**
* @package Warp Theme Framework
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
printf('<select %s>', $control->attributes(compact('name')));
foreach ($this['dom']->create($this['path']->path('template:templateDetails.xml'), 'xml')->find('positions > position') as $position) {
// set attributes
$attributes = array('value' => $position->text());
// is checked ?
if ($position->text() == $value) {
$attributes = array_merge($attributes, array('selected' => 'selected'));
}
printf('<option %s>%s</option>', $control->attributes($attributes), $position->text());
}
printf('</select>');