removed gratuitous main div

This commit is contained in:
Jan-Christoph Borchardt 2011-08-08 17:52:29 +02:00
parent 90726b10c4
commit 4de7009014
2 changed files with 42 additions and 46 deletions

View File

@ -36,36 +36,34 @@
</ul> </ul>
</div> </div>
<div id="main"> <div id="navigation">
<div id="navigation"> <ul>
<ul> <?php foreach($_['settingsnavigation'] as $entry):?>
<?php foreach($_['settingsnavigation'] as $entry):?> <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li> <?php if( sizeof( $entry["subnavigation"] )): ?>
<?php if( sizeof( $entry["subnavigation"] )): ?> <?php foreach($entry["subnavigation"] as $subentry):?>
<?php foreach($entry["subnavigation"] as $subentry):?> <li><a href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry['active'] ): ?>class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li>
<li><a href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry['active'] ): ?>class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if(isset($_['adminnavigation'])):?>
<?php foreach($_['adminnavigation'] as $entry):?>
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a>
<?php if( sizeof( $entry["subnavigation"] )): ?>
<ul>
<?php foreach($entry["subnavigation"] as $subentry):?>
<li class="subentry"><a class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</ul> <?php endforeach; ?>
</div> <?php if(isset($_['adminnavigation'])):?>
<?php foreach($_['adminnavigation'] as $entry):?>
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a>
<?php if( sizeof( $entry["subnavigation"] )): ?>
<ul>
<?php foreach($entry["subnavigation"] as $subentry):?>
<li class="subentry"><a class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>
<div id="content"> <div id="content">
<?php echo $_['content']; ?> <?php echo $_['content']; ?>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -37,25 +37,23 @@
</ul> </ul>
</div> </div>
<div id="main"> <div id="navigation">
<div id="navigation"> <ul>
<ul> <?php foreach($_['navigation'] as $entry): ?>
<?php foreach($_['navigation'] as $entry): ?> <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>><?php echo $entry['name']; ?></a>
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>><?php echo $entry['name']; ?></a> <?php if( sizeof( $entry["subnavigation"] )): ?>
<?php if( sizeof( $entry["subnavigation"] )): ?> <ul>
<ul> <?php foreach($entry["subnavigation"] as $subentry):?>
<?php foreach($entry["subnavigation"] as $subentry):?> <li class="subentry"><a style="background-image:url(<?php echo $subentry['icon']; ?>)" href="<?php echo $subentry['href']; ?>" title="" class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>"><?php echo $subentry['name'] ?></a></li>
<li class="subentry"><a style="background-image:url(<?php echo $subentry['icon']; ?>)" href="<?php echo $subentry['href']; ?>" title="" class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>"><?php echo $subentry['name'] ?></a></li> <?php endforeach; ?>
<?php endforeach; ?> </ul>
</ul> <?php endif; ?>
<?php endif; ?> </li>
</li> <?php endforeach; ?>
<?php endforeach; ?> </ul>
</ul> </div>
</div> <div id="content">
<div id="content"> <?php echo $_['content']; ?>
<?php echo $_['content']; ?>
</div>
</div> </div>
</body> </body>
</html> </html>