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

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

  <?php if ($this->error): ?>
    <?php echo $this->error; ?>
  <?php else: ?>
    <h1><?php echo $this->question; ?></h1>
    <div class="ce_text block">

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

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

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

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

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

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

        </div>
      <?php endif; ?>

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

    </div>

    <?php if ($this->enclosure): ?>
      <div class="enclosure">
        <?php foreach ($this->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 $this->info; ?></p>

    <!-- indexer::stop -->
    <p class="back"><a href="<?php echo $this->referer; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
    <!-- indexer::continue -->
  <?php endif; ?>

  <?php if ($this->allowComments): ?>
    <div class="ce_comments block">
      <<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
      <?php echo implode('', $this->comments); ?>
      <?php echo $this->pagination; ?>
      <?php include $this->getTemplate('mod_comment_form', 'xhtml'); ?>
    </div>
  <?php endif; ?>

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