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/app/webroot/news/tmp/install_5320fcc93572d/additional/plugin/joomla/layouts/ |
Upload File : |
<div id="widgetkit" class="wrap"> <?php echo $this['template']->render('title', array('title' => ($widget->id ? 'Edit' : 'Add').' ' . ucfirst($type))); ?> <form id="form" method="post" action="<?php echo $this['system']->link(array('task' => "save_{$type}_joomla")); ?>"> <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> <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 class="zoo box"> <h3>Joomla Articles</h3> <div class="content"> <?php $settings = array(); if ($setting = $joomla_xml->xpath('params/param')) { $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->joomla[$name]) ? $widget->joomla[$name] : $default; echo '<div class="option">'; echo '<h4>'.$label.'</h4>'; echo '<div class="value">'; echo $this['field']->render($type, 'joomla['.$name.']', $value, $setting); echo '</div>'; echo '</div>'; } ?> </div> </div> <p class="actions"> <input type="submit" value="Save changes" class="button-primary action save"/> <span></span> </p> </div> </form> </div>