<?php $this->extend('block_unsearchable'); ?>

<?php $this->block('content'); ?>

  <?php foreach($this->faq as $category): ?>
    <div class="<?php echo $category['class']; ?>">
      <h2><?php echo $category['headline']; ?></h2>

      <?php foreach ($category['items'] as $faq): ?>
        <div class="<?php echo $faq->class; ?>">
          <h3 id="<?php echo $faq->alias; ?>"><?php echo $faq->question; ?></h3>
          <div class="ce_text block">

            <?php if (!$faq->addBefore): ?>
              <?php echo $faq->answer; ?>
            <?php endif; ?>

            <?php if ($faq->addImage): ?>
              <div class="image_container<?php echo $faq->floatClass; ?>"<?php if ($faq->margin): ?> style="<?php echo $faq->margin; ?>"<?php endif; ?>>

                <?php if ($faq->href): ?>
                  <a href="<?php echo $faq->href; ?>"<?php echo $faq->attributes; ?> title="<?php echo $faq->alt; ?>">
                <?php endif; ?>

                <?php $this->insert('picture_default', $faq->picture); ?>

                <?php if ($faq->href): ?>
                  </a>
                <?php endif; ?>

                <?php if ($faq->caption): ?>
                  <div class="caption"><?php echo $faq->caption; ?></div>
                <?php endif; ?>

              </div>
            <?php endif; ?>

            <?php if ($faq->addBefore): ?>
              <?php echo $faq->answer; ?>
            <?php endif; ?>

          </div>

          <?php if ($faq->enclosure): ?>
            <div class="enclosure">
              <?php foreach ($faq->enclosure as $enclosure): ?>
                <p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
              <?php endforeach; ?>
            </div>
          <?php endif; ?>

          <p class="info"><?php echo $faq->info; ?></p>
        </div>
      <?php endforeach; ?>

      <p class="toplink"><a href="<?php echo $this->request; ?>#top"><?php echo $this->topLink; ?></a></p>
    </div>
  <?php endforeach; ?>

<?php $this->endblock(); ?>
