<?php

use function Dev4Press\v55\Functions\panel;

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

?>

    <a href="<?php echo admin_url( 'admin.php?page=gd-topic-polls-polls' ); ?>" class="button-primary">
        <i aria-hidden="true" class="fa fa-file-text-o fa-fw"></i>
        <?php esc_html_e( 'List of polls', 'gd-topic-polls' ); ?>
    </a>
    <a href="<?php echo admin_url( 'admin.php?page=gd-topic-polls-settings' ); ?>" class="button-secondary" style="float: right;">
        <i aria-hidden="true" class="fa fa-cogs fa-fw"></i>
        <?php esc_html_e( 'Settings', 'gd-topic-polls' ); ?>
    </a>

    <input type="hidden" name="page" value="gd-topic-polls-votes"/>
    <input type="hidden" value="getback" name="gdpol_handler"/>

<?php

$_grid = panel()->get_table_object();
$_grid->prepare_table();
$_grid->prepare_items();
$_grid->display();

include( TOPICPOLLS_PATH . 'forms/dialogs/votes.php' );
