File: //home/globfdxw/www/wp-content/plugins/wpforms-surveys-polls/templates/entries/legend.php
<?php
/**
* Legend template for chart-capable fields.
*
* Unlike likert/text containers (which always show answered/skipped counters),
* the chart legend renders EITHER pagination controls OR the info block —
* the info block starts hidden and JS populates it after data loads.
*
* @since 1.18.0
*
* @var bool $pagination Show pagination or not.
* @var string $all_result_page_url All result page URL.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wpforms-survey-graph-content-legend">
<div class="wpforms-survey-graph-content-legend-table-wrapper">
<table class="wpforms-survey-graph-content-legend-table wpforms-table-sorting">
<thead>
<tr>
<th><?php esc_html_e( 'Answers', 'wpforms-surveys-polls' ); ?></th>
<th data-sort="int" colspan="2"><span><?php esc_html_e( 'Responses', 'wpforms-surveys-polls' ); ?></span></th>
</tr>
</thead>
<tbody></tbody>
</table>
<?php if ( ! empty( $pagination ) ) : ?>
<div class="wpforms-survey-graph-content-legend-controls">
<a href="<?php echo esc_url( $all_result_page_url ); ?>" class="button wpforms-survey-graph-button wpforms-survey-graph-view-all">
<?php esc_html_e( 'View Survey Results', 'wpforms-surveys-polls' ); ?>
</a>
<div class="wpforms-survey-graph-pagination">
<button type="button" class="button wpforms-survey-graph-button wpforms-survey-graph-prev" aria-label="<?php esc_attr_e( 'Previous', 'wpforms-surveys-polls' ); ?>"></button>
<button type="button" class="button wpforms-survey-graph-button wpforms-survey-graph-next" aria-label="<?php esc_attr_e( 'Next', 'wpforms-surveys-polls' ); ?>"></button>
</div>
</div>
<?php else : ?>
<div class="wpforms-survey-graph-content-legend-info wpforms-hidden">
<div class="wpforms-survey-graph-content-legend-info-items">
<div class="wpforms-survey-graph-content-legend-info-item wpforms-survey-graph-info-answered"><span></span> <?php esc_html_e( 'Answered', 'wpforms-surveys-polls' ); ?></div>
<div class="wpforms-survey-graph-content-legend-info-item wpforms-survey-graph-info-skipped"><span></span> <?php esc_html_e( 'Skipped', 'wpforms-surveys-polls' ); ?></div>
</div>
</div>
<?php endif; ?>
</div>
</div>