| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 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/tmp/install_5320fcc93572d/media/widgets/slideshow/layouts/ |
Upload File : |
<div id="widgetkit" class="wrap">
<?php echo $this['template']->render('title', array('title' => ($widget->id ? 'Edit' : 'Add').' Slideshow')); ?>
<form id="form" method="post" action="<?php echo $this['system']->link(array('task' => 'save_slideshow')); ?>">
<div class="sidebar">
<div class="box">
<h3>Settings</h3>
<div class="content">
<?php
$settings = array();
foreach (array($xml, $style_xml) as $x) {
if ($setting = $x->xpath('settings/setting')) {
$settings = array_merge($settings, $setting);
}
}
foreach ($settings as $setting) {
$name = (string) $setting->attributes()->name;
$type = (string) $setting->attributes()->type;
$label = (string) $setting->attributes()->label;
$name = (string) $setting->attributes()->name;
$default = (string) $setting->attributes()->default;
$value = isset($widget->settings[$name]) ? $widget->settings[$name] : $default;
echo '<div class="option">';
echo '<h4>'.$label.'</h4>';
echo '<div class="value">';
echo $this['field']->render($type, 'settings['.$name.']', $value, $setting);
echo '</div>';
echo '</div>';
}
?>
</div>
</div>
<div class="box order">
<h3>Order</h3>
<div class="content">
<p class="description">To Re-order use drag & drop.</p>
<ul id="order"></ul>
</div>
</div>
</div>
<div class="form">
<input type="hidden" value="<?php echo $widget->id; ?>" name="id" id="widget_id" />
<input type="text" value="<?php echo $widget->name; ?>" name="name" placeholder="Enter name here..." class="name" required />
<div id="items">
<?php
foreach ($widget->items as $id => $item) {
echo $this->render('slideshow:layouts/item', compact('id', 'item', 'widget', 'style_xml'));
}
?>
</div>
<p class="actions">
<input type="submit" value="Save changes" class="button-primary action save"/>
<button type="button" class="button-secondary action add">Add New Item</button>
<span></span>
</p>
</div>
</form>
</div>