<h1 style="clear: both"><?= $this->escape($title) ?></h1>
<ul class="main-actions" data-base-target="_next">
<?php foreach ($actions as $a): ?>
<li>
  <a<?php
if (array_key_exists(4, $a)) {
  echo ' class="state-' . $a[4] . '"';
}
?> href="<?= $this->url($a[2]) ?>">
  <?= $this->icon($a[0]) ?>
  <?= $this->escape($a[1]) ?>
  <p><?= $a[3] ?></p>
  </a>
</li>
<?php endforeach ?>
</ul>

