meta/old/Meta/views/outline.php

60 lines
1.2 KiB
PHP
Raw Normal View History

2012-09-13 19:16:51 -04:00
<p class="breadcrumbs">Outline</p>
2012-09-12 12:57:41 -04:00
<dl class="outline">
2012-09-12 10:36:43 -04:00
<dt>Genre</dt>
<dd>
<ul>
<li>Category
<ul>
<li>Section</li>
</ul>
</li>
</ul>
</dd>
</dl>
<hr />
2012-08-31 16:18:23 -04:00
<dl class="outline">
<?php if (isset($outline)): ?>
2012-08-31 16:18:23 -04:00
<?php foreach($outline as $genre_id => $genre_array): ?>
<!-- Genres -->
<?php foreach($genre_array as $genre => $cat_array): ?>
<dt>
<a href="<?= \Meta\Base\site_url("genre/detail/{$genre_id}") ?>"><?= $genre ?></a>
2012-08-31 16:18:23 -04:00
</dt>
<dd>
<?php foreach($cat_array as $cat_id => $cname_array): ?>
<ul>
<!-- Categories -->
<?php foreach($cname_array as $category => $sect_array): ?>
<li>
<a href="<?= \Meta\Base\site_url("category/detail/{$cat_id}") ?>"><?= $category ?></a>
2012-08-31 16:18:23 -04:00
<?php if ( ! empty($sect_array)): ?>
<ul>
<!-- Sections -->
<?php foreach($sect_array as $section_id => $section): ?>
<li>
<a href="<?= \Meta\Base\site_url("section/detail/{$section_id}") ?>">
2012-08-31 16:18:23 -04:00
<?= $section ?>
</a>
</li>
<?php endforeach ?>
<!-- / Sections -->
</ul>
<?php endif ?>
</li>
<?php endforeach ?>
<!-- / Categories -->
</ul>
<?php endforeach; ?>
</dd>
<?php endforeach ?>
2012-08-31 16:18:23 -04:00
<!-- / Genres -->
<?php endforeach ?>
<?php endif ?>
2012-08-31 16:18:23 -04:00
</dl>