<div style="float:none;" class="subsubsub"><?php echo $Html -> link(__('&larr; Back to Forms', 'wp-mailinglist'), admin_url('admin.php?page=' . $this -> sections -> forms)); ?></div>

<?php

$method = esc_html($_GET['method']);

?>

<div class="wp-filter">
    <ul class="filter-links">
        <li><a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> forms . '&method=save&id=' . (isset($form -> id) ? $form -> id : '')); ?>" data-sort="featured" <?php echo ($method == "save") ? 'class="current"' : ''; ?>><i class="fa-solid fa-pencil"></i> Form Builder</a></li>
        <li><a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> forms . '&method=settings&id=' . (isset($form -> id) ? $form -> id : '')); ?>" data-sort="popular" <?php echo ($method == "settings") ? 'class="current"' : ''; ?>><i class="fa-solid fa-gears"></i> Settings</a></li>
        <li><a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> forms . '&method=preview&id=' . (isset($form -> id) ? $form -> id : '')); ?>" <?php echo ($method == "preview") ? 'class="current"' : ''; ?>><i class="fa-solid fa-eye"></i> <?php _e('Preview', 'wp-mailinglist'); ?></a></li>
        <li><a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> forms . '&method=codes&id=' . (isset($form -> id) ? $form -> id : '')); ?>" <?php echo ($method == "codes") ? 'class="current"' : ''; ?>><i class="fa-solid fa-code"></i> <?php _e('Embed/Codes', 'wp-mailinglist'); ?></a></li>
        <li><a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> forms . '&method=subscriptions&id=' . (isset($form -> id) ? $form -> id : '')); ?>" <?php echo ($method == "subscriptions") ? 'class="current"' : ''; ?>><i class="fa-solid fa-users"></i> <?php _e('Subscriptions', 'wp-mailinglist'); ?></a></li>
    </ul>

    <div class="search-form" id="tableofcontentsdiv">
        <div class="inside">
            <?php $this -> render('forms' . DS . 'switch', false, true, 'admin'); ?>
        </div>
    </div>
</div>