<?php
	$cssClasses = array(
		'standalone-buttons',
		$this->class,
	);
?>

<div class="<?php echo implode(' ', $cssClasses) ?>"<?php echo $this->cssID; ?>>

  <?php if ($this->headline): ?>
    <<?php echo $this->hl ?>>
      <?php echo $this->headline ?>
    </<?php echo $this->hl ?>>
  <?php endif ?>

  <div class="standalone-buttons-wrapper<?php if ($this->linkAlign): ?> <?= $this->linkAlign ?><?php endif; ?>">
    <?php foreach ($this->boxes as $index => $button): ?>
      <?php if ($button->linkLabel): ?>
        <a class="standalone-buttons-link<?= $button->altLayout ? ' '.$button->altLayout : ' '.$this->altLayout ?>" href="<?php echo $button->linkUrl ?>"<?php if ($button->newWindow): ?> target="_blank"<?php endif ?><?php if ($button->linkTitle): ?> title="<?= $button->linkTitle ?>"<?php endif ?><?php if ($button->attributes): ?> <?= $button->attributes ?><?php endif ?>><?php echo $button->linkLabel ?></a>
      <?php endif ?>
    <?php endforeach; ?>
  </div>

</div>
