<?php
/**
 * @version		$Id$
 * @package		Simple Image Gallery Pro
 * @author		JoomlaWorks - http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
 * @license		http://www.joomlaworks.net/license
 */

// no direct access
defined('_JEXEC') or die ; ?>
<div class="sigTopWhiteFix"></div>
<div class="sigGrayFix"></div>
<div id="sigPro" class="J<?php echo $this->version; if($this->tmpl == 'component')  { echo ' sigProModalSite'; } ?> sigPermissions">

 	<!--[if lt IE 8]>
	<div id="deprecatedOverlay"><div id="browserUpdateWrapper"><div id="frownie">:(</div><h1 id="sorry">We Are Sorry.</h1><h2 id="notSupported">Your web browser is not supported.</h2><div>Please <strong>upgrade</strong> your browser to it's latest version<br/>or <a href="http://browsehappy.com/" title="Upgrade your browser today!" target="_blank">install another one</a>.</div><div class="clr"></div><div id="modernBrowsers"><a href="http://www.mozilla.org/" title="Mozilla Firefox" target="_blank" id="ff"><span>Firefox</span></a><a href="https://www.google.com/chrome" title="Google Chrome" target="_blank" id="gc"><span>Chrome</span></a><a href="http://www.apple.com/safari/" title="Safari" target="_blank" id="as"><span>Safari</span></a><a href="http://www.opera.com/" title="Opera" target="_blank" id="op"><span>Opera</span></a><a href="http://windows.microsoft.com/en-US/internet-explorer/download-ie" title="Internet Explorer" target="_blank" id="ie"><span>IE</span></a></div></div></div>
	<![endif]-->

    <div class="sigProHeader sigBoldMenu">
    	<div class="sigProTopRow"></div>
    	<div class="sigProLogo sigFloatLeft">
    		<i class="hidden"><?php echo JText::_('COM_SIGPRO'); ?></i>
    	</div>
    	<span class="sigMenuVersion"><?php echo JText::_('COM_SIGPRO_VERSION'); ?></span>
    	<div class="sigProMenu sigFloatRight">
    		<ul class="darkMenu">
    			<li><a href="#" onclick="Joomla.submitbutton('save')" class="sigProMenuItems"><?php echo JText::_('COM_SIGPRO_SAVE_AND_CLOSE'); ?></a></li>
       			<li><a href="#" onclick="Joomla.submitbutton('apply')" class="sigProMenuItems"><?php echo JText::_('COM_SIGPRO_SAVE'); ?></a></li>
				<li><a href="#" onclick="Joomla.submitbutton('cancel')" class="sigProMenuItems"><?php echo JText::_('COM_SIGPRO_CLOSE'); ?></a></li>
    		</ul>
    	</div>

    </div>

<form action="<?php echo JRoute::_('index.php'); ?>" method="post" name="adminForm" id="adminForm" class="sigInformationForm">

	<div class="sigProToolbar sigTransition sigBoxSizing sigSlidingItem">
  		<div class="sigProUpperToolbar sigInformationToolbar">
  			<h3 class="sigProPageTitle sigPurple"><?php echo strip_tags($this->title); ?></h3>
		</div>
	</div>

	<?php echo $this->sidebar; ?>

	<div class="sigProGrid sigInformationWrap sigTransition sigSlidingItem">
		<?php if(version_compare(JVERSION, '2.5.0', 'ge')): ?>
			<div class="sigInformationNav sigSideNavBar sigTransition sigSlidingItem">
				<ul class="sigSideNav">
				<?php foreach($this->form->getFieldsets() as $name => $fieldset): ?>
					<li><a href="#<?php echo $name; ?>" class="sigAnchor"><?php echo JText::_($fieldset->label); ?></a></li>
				<?php endforeach; ?>
				</ul>
			</div>

			<?php foreach($this->form->getFieldsets() as $name => $fieldset): ?>
           	<div class="sigSettingsFieldSet">
               <h3 class="sigPermissionHeader" id="<?php echo $name; ?>"><?php echo JText::_($fieldset->label); ?></h3>
               <?php if (isset($fieldset->description) && !empty($fieldset->description)) : ?>
               <p><?php echo JText::_($fieldset->description); ?></p>
               <?php endif; ?>

               <?php foreach ($this->form->getFieldset($name) as $field): ?>
               <div class="sigFieldsetRow sig<?php echo $name; ?>Fieldset">
                   <?php echo $field->label; ?>
                   <?php echo $field->input; ?>
               </div>
               <div class="clr"></div>
               <?php endforeach; ?>
           </div>
           <?php endforeach; ?>
			<div class="sigSettingsDummyHeight"></div>
		<?php else : ?>

		<div class="sigInformationNav sigSideNavBar sigSlidingItem sigTransition">
			<ul class="sigSideNav">
			<?php foreach($this->form->_xml as $fieldset): ?>
				<li><a href="#<?php echo $fieldset->attributes('group'); ?>" class="sigAnchor"><?php echo JText::_($fieldset->attributes('label')); ?></a></li>
			<?php endforeach; ?>
			</ul>
		</div>

		<?php foreach($this->form->_xml as $fieldset): ?>
        <div class="sigSettingsFieldSet">
        	<h3 class="sigPermissionHeader" id="<?php echo $fieldset->attributes('group'); ?>"><?php echo JText::_($fieldset->attributes('label')); ?></h3>

        	<?php if ($fieldset->attributes('description')) : ?>
        	<p><?php echo JText::_($fieldset->attributes('description')); ?></p>
            <?php endif; ?>

            <div class="sigFieldsetRow sig<?php echo $fieldset->attributes('group'); ?>Fieldset">
				<?php echo $this->form->render('params', $fieldset->attributes('group')); ?>
             </div>

             <div class="clr"></div>
		</div>
		<?php endforeach; ?>

		<div class="sigSettingsDummyHeight"></div>
		<?php endif; ?>
	</div>
	<input type="hidden" name="id" value="<?php echo $this->id;?>" />
	<input type="hidden" name="component" value="com_sigpro" />
	<input type="hidden" name="option" value="com_sigpro" />
	<input type="hidden" name="view" value="settings" />
	<input type="hidden" id="task" name="task" value="" />
	<input type="hidden" name="return" value="<?php echo JRequest::getVar('return'); ?>" />
	<?php echo JHTML::_('form.token'); ?>
</form>

</div>
<div class="sigBtmWhiteFix"></div>
